Skip to content

Commit

Permalink
fix: use files instead of npmignore, avoid publish unused files to npm (
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng authored Sep 20, 2023
1 parent f2c7812 commit 5ff9680
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 110 deletions.
7 changes: 7 additions & 0 deletions .changeset/fresh-bikes-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@modern-js/swc-react-const-elements-plugin": patch
"@modern-js/swc-plugin-import": patch
"@modern-js/swc-plugins": patch
---

fix: use files instead of npmignore
15 changes: 0 additions & 15 deletions .npmignore

This file was deleted.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,10 @@
},
"publishConfig": {
"access": "public"
}
},
"files": [
"types/",
"binding.js",
"index.js"
]
}
46 changes: 0 additions & 46 deletions packages/plugin-import/.npmignore

This file was deleted.

21 changes: 21 additions & 0 deletions packages/plugin-import/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022-present Bytedance Inc and its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 4 additions & 1 deletion packages/plugin-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
},
"publishConfig": {
"access": "public"
}
},
"files": [
"*.wasm"
]
}
46 changes: 0 additions & 46 deletions packages/react-const-elements/.npmignore

This file was deleted.

21 changes: 21 additions & 0 deletions packages/react-const-elements/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022-present Bytedance Inc and its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 4 additions & 1 deletion packages/react-const-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
},
"publishConfig": {
"access": "public"
}
},
"files": [
"*.wasm"
]
}

0 comments on commit 5ff9680

Please sign in to comment.