Skip to content

Commit

Permalink
chore: npm pack fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
omarluq committed Jan 31, 2024
1 parent 51468fb commit 921057f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
node_modules
*.log
src
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"homepage": "https://github.com/omarluq/stimulus-store#readme",
"files": [
"dist/"
"dist/**/*"
],
"husky": {
"hooks": {
Expand All @@ -32,7 +32,10 @@
"code-size": "npx size-limit",
"changelog": "git-chglog -o docs/CHANGELOG.md",
"husky:prepare": "husky install",
"docs": "docsify serve docs"
"docs": "docsify serve docs",
"prepack": "cp docs/README.md . && cp docs/CHANGELOG.md . && cp docs/LICENSE.md . && cp -r dist/* .",
"postpack": "git clean -f -d"

},
"keywords": [
"stimulus",
Expand Down
8 changes: 0 additions & 8 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ export default {
targets: [{ src: 'src/**/*.d.ts', dest: 'dist' }],
flatten: false
}),
copy({
targets: [
{ src: 'docs/README.md', dest: 'dist' },
{ src: 'docs/CHANGELOG.md', dest: 'dist' },
{ src: 'docs/LICENSE.md', dest: 'dist' }
],
flatten: true
}),
commonjs(), // CommonJS support
resolve(), // Node.js module resolution
production &&
Expand Down

0 comments on commit 921057f

Please sign in to comment.