Skip to content

Commit f9b7c8d

Browse files
committed
chore: housekeeping, improve developing workflow
1 parent e6828be commit f9b7c8d

File tree

8 files changed

+412
-446
lines changed

8 files changed

+412
-446
lines changed

.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
const tsNode = require('ts-node')
2-
3-
tsNode.register()
4-
51
module.exports = {
62
root: true,
73
extends: ['@1stg'],

.travis.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,37 +18,15 @@ before_install:
1818
install: yarn --frozen-lockfile
1919

2020
script:
21-
- yarn test
21+
- yarn build
2222
- yarn lint
23+
- yarn test
2324

2425
after_success:
2526
- yarn global add codecov codacy-coverage
2627
- codecov
2728
- cat ./coverage/lcov.info | codacy-coverage
2829

29-
before_deploy:
30-
- npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
31-
- git remote set-url origin https://user:[email protected]/$TRAVIS_REPO_SLUG.git
32-
- git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH
33-
- git checkout $TRAVIS_BRANCH
34-
- cp -f README.md packages/eslint-mdx
35-
- cp -f README.md packages/eslint-plugin-mdx
36-
- 'git add --all && git commit -m "docs: update README" || echo "nothing changed to commit"'
37-
- yarn global add lerna-changelog
38-
- lerna-changelog
39-
40-
deploy:
41-
# - provider: script
42-
# skip_cleanup: true
43-
# script: yarn lerna publish --create-release github --yes
44-
# on:
45-
# branch: master
46-
- provider: script
47-
skip_cleanup: true
48-
script: yarn lerna publish --canary --conventional-prerelease --force-publish --preid beta --pre-dist-tag beta --yes
49-
on:
50-
branch: develop
51-
5230
after_script:
5331
- yarn add -D @codechecks/client @codechecks/build-size-watcher typecov -W
5432
- yarn codechecks

package.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"scripts": {
1313
"build": "run-p build:*",
14-
"build:r": "r -p",
14+
"build:r": "r -f esm,es2015",
1515
"build:ts": "tsc -b",
1616
"clean": "rimraf packages/*/{lib,*.tsbuildinfo} node_modules/@1stg/eslint-config/node_modules",
1717
"lint": "run-p lint:*",
@@ -24,28 +24,26 @@
2424
"typecov": "type-coverage"
2525
},
2626
"devDependencies": {
27-
"@1stg/lib-config": "^1.2.7",
27+
"@1stg/lib-config": "^1.2.10",
2828
"@1stg/tslint-config": "^1.2.0",
29-
"@types/eslint": "^7.2.8",
29+
"@types/eslint": "^7.2.10",
3030
"@types/eslint-plugin-markdown": "^2.0.0",
31-
"@types/jest": "^26.0.22",
32-
"@types/node": "^14.14.37",
33-
"@types/react": "^17.0.3",
31+
"@types/jest": "^26.0.23",
32+
"@types/node": "^14.14.41",
33+
"@types/react": "^17.0.4",
3434
"@types/unist": "^2.0.3",
35-
"eslint-mdx": "link:packages/eslint-mdx/src",
36-
"eslint-plugin-mdx": "link:packages/eslint-plugin-mdx/src",
3735
"lerna": "^4.0.0",
3836
"npm-run-all": "^4.1.5",
3937
"react": "^17.0.2",
40-
"ts-jest": "^26.5.4",
38+
"ts-jest": "^26.5.5",
4139
"ts-node": "^9.1.1",
4240
"tslint": "^6.1.3",
43-
"type-coverage": "^2.17.0",
44-
"typescript": "^4.2.3",
41+
"type-coverage": "^2.17.3",
42+
"typescript": "^4.2.4",
4543
"yarn-deduplicate": "^3.1.0"
4644
},
4745
"resolutions": {
48-
"@babel/core": "^7.13.14",
46+
"@babel/core": "^7.13.16",
4947
"prettier": "^2.2.1",
5048
"tslib": "^2.2.0"
5149
},
@@ -65,6 +63,10 @@
6563
"setupFiles": [
6664
"eslint/lib/linter/linter"
6765
],
66+
"moduleNameMapper": {
67+
"^eslint-mdx$": "<rootDir>/packages/eslint-mdx/src",
68+
"^eslint-plugin-mdx$": "<rootDir>/packages/eslint-plugin-mdx/src"
69+
},
6870
"collectCoverage": true,
6971
"coverageThreshold": {
7072
"global": {

packages/eslint-mdx/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"engines": {
1414
"node": ">=10.0.0"
1515
},
16-
"main": "lib/cjs",
17-
"module": "lib",
16+
"main": "lib",
17+
"module": "lib/esm",
1818
"es2015": "lib/es2015",
1919
"fesm5": "lib/esm",
2020
"types": "lib",

packages/eslint-plugin-mdx/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"engines": {
1414
"node": ">=10.0.0"
1515
},
16-
"main": "lib/cjs",
17-
"module": "lib",
16+
"main": "lib",
17+
"module": "lib/esm",
1818
"es2015": "lib/es2015",
1919
"fesm5": "lib/esm",
2020
"types": "lib",
@@ -35,7 +35,7 @@
3535
"dependencies": {
3636
"cosmiconfig": "^7.0.0",
3737
"eslint-mdx": "^1.12.0",
38-
"eslint-plugin-markdown": "^2.0.1",
38+
"eslint-plugin-markdown": "^2.1.0",
3939
"remark-mdx": "^1.6.22",
4040
"remark-parse": "^8.0.3",
4141
"remark-stringify": "^8.1.1",

test/helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { RuleTester } from 'eslint'
33
export function noop<T extends unknown[] = unknown[], R = unknown>(
44
..._args: T
55
): R {
6-
// eslint-disable-next-line unicorn/no-useless-undefined
76
return undefined
87
}
98

tsconfig.base.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"extends": "./node_modules/@1stg/tsconfig/lib.json",
2+
"extends": "./node_modules/@1stg/tsconfig/node",
33
"compilerOptions": {
4-
"module": "CommonJS",
54
"strictFunctionTypes": false,
65
"strictNullChecks": false
76
}

0 commit comments

Comments
 (0)