Skip to content

Commit 9ded1af

Browse files
authored
fix: use @arethetypeswrong/cli to auto add source exports (#43)
eggjs/egg#5257 (comment)
1 parent dcb8e8a commit 9ded1af

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: CI
33
on:
44
push:
55
branches: [ master ]
6-
76
pull_request:
87
branches: [ master ]
98

@@ -13,4 +12,6 @@ jobs:
1312
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
1413
with:
1514
os: 'ubuntu-latest, macos-latest'
16-
version: '16, 18, 20'
15+
version: '16, 18, 20, 22'
16+
secrets:
17+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@ jobs:
1111
secrets:
1212
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1313
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
14-
with:
15-
checkTest: false

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
"lint": "eslint src test --ext .ts",
77
"pretest": "npm run lint -- --fix && npm run prepublishOnly",
88
"test": "egg-bin test",
9-
"preci": "npm run prepublishOnly",
9+
"preci": "npm run lint && npm run prepublishOnly && attw --pack --ignore-rules no-resolution",
1010
"ci": "egg-bin cov",
1111
"contributor": "git-contributor",
1212
"prepublishOnly": "tshy && tshy-after"
1313
},
1414
"devDependencies": {
15+
"@arethetypeswrong/cli": "*",
1516
"@eggjs/tsconfig": "^1.3.3",
1617
"@types/mocha": "^10.0.1",
1718
"@types/node": "^20.6.3",
@@ -56,20 +57,24 @@
5657
"./package.json": "./package.json",
5758
"./promises": {
5859
"import": {
60+
"source": "./src/promises.ts",
5961
"types": "./dist/esm/promises.d.ts",
6062
"default": "./dist/esm/promises.js"
6163
},
6264
"require": {
65+
"source": "./src/promises.ts",
6366
"types": "./dist/commonjs/promises.d.ts",
6467
"default": "./dist/commonjs/promises.js"
6568
}
6669
},
6770
".": {
6871
"import": {
72+
"source": "./src/index.ts",
6973
"types": "./dist/esm/index.d.ts",
7074
"default": "./dist/esm/index.js"
7175
},
7276
"require": {
77+
"source": "./src/index.ts",
7378
"types": "./dist/commonjs/index.d.ts",
7479
"default": "./dist/commonjs/index.js"
7580
}

0 commit comments

Comments
 (0)