Skip to content

Commit

Permalink
fix: use @arethetypeswrong/cli to auto add source exports (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Jun 19, 2024
1 parent dcb8e8a commit 9ded1af
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: CI
on:
push:
branches: [ master ]

pull_request:
branches: [ master ]

Expand All @@ -13,4 +12,6 @@ jobs:
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest, macos-latest'
version: '16, 18, 20'
version: '16, 18, 20, 22'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ jobs:
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"lint": "eslint src test --ext .ts",
"pretest": "npm run lint -- --fix && npm run prepublishOnly",
"test": "egg-bin test",
"preci": "npm run prepublishOnly",
"preci": "npm run lint && npm run prepublishOnly && attw --pack --ignore-rules no-resolution",
"ci": "egg-bin cov",
"contributor": "git-contributor",
"prepublishOnly": "tshy && tshy-after"
},
"devDependencies": {
"@arethetypeswrong/cli": "*",
"@eggjs/tsconfig": "^1.3.3",
"@types/mocha": "^10.0.1",
"@types/node": "^20.6.3",
Expand Down Expand Up @@ -56,20 +57,24 @@
"./package.json": "./package.json",
"./promises": {
"import": {
"source": "./src/promises.ts",
"types": "./dist/esm/promises.d.ts",
"default": "./dist/esm/promises.js"
},
"require": {
"source": "./src/promises.ts",
"types": "./dist/commonjs/promises.d.ts",
"default": "./dist/commonjs/promises.js"
}
},
".": {
"import": {
"source": "./src/index.ts",
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"source": "./src/index.ts",
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
Expand Down

0 comments on commit 9ded1af

Please sign in to comment.