Skip to content

Commit

Permalink
fix(build): flatten published package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrom committed Oct 1, 2024
1 parent 3c65875 commit ac57f3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Build
run: npm run build
run: npm run package
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
24 changes: 8 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,23 @@
"twitter"
],
"license": "ISC",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"type": "commonjs",
"main": "index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./extensions/fileWriter": {
"types": "./dist/extensions/fileWriter.d.ts",
"default": "./dist/extensions/fileWriter.js"
},
"./extensions/bubbleTail": {
"types": "./dist/extensions/bubbleTail.d.ts",
"default": "./dist/extensions/bubbleTail.js"
}
"./extensions/fileWriter": "./extensions/fileWriter.js",
"./extensions/bubbleTail": "./extensions/bubbleTail.js"
},
"scripts": {
"prepare": "husky",
"clean": "rimraf dist",
"build": "npm run clean && tsc --build",
"package": "npm run build && cp package.json README.md LICENSE dist/",
"test": "jest",
"semantic-release": "semantic-release"
},
"release": {
"pkgRoot": "dist"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
Expand Down

0 comments on commit ac57f3b

Please sign in to comment.