Skip to content

Commit

Permalink
chore: remove .npmignore from copying to package
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Ryazanov committed Jul 31, 2023
1 parent 49c0b80 commit 42e61d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Build
run: npm run build

- name: Copy declaration files
- name: Copy release files
run: npm run copy-release-files

- name: Release
Expand Down
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"release": true
},
"npm": {
"publishPath": "./build"
"publishPath": "build"
},
"plugins": {
"@release-it/conventional-changelog": {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"curry",
"performance"
],
"files": [
"build"
],
"sideEffects": false,
"license": "Apache-2.0",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion tools/copy-release-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const copyReleaseFiles = async () => {
);

await Promise.all(
['package.json', '.npmignore', 'README.md', 'LICENSE', 'CHANGELOG.md'].map(fileName =>
['package.json', 'README.md', 'LICENSE', 'CHANGELOG.md'].map(fileName =>
fsExtra.copy(
path.join(ROOT_PATH, fileName),
path.join(BUILD_PATH, fileName)
Expand Down

0 comments on commit 42e61d0

Please sign in to comment.