Skip to content

Commit

Permalink
fix(npm): improve publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Mar 29, 2022
1 parent efbf508 commit 8a329ae
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
rm -rf ./publish && rsync -r --exclude publish ./* ./publish
rsync -r --exclude ./lib ./lib/* .
npx -p pinst -p semantic-release -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec -p semantic-release-github semantic-release --provider=github
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
rm -rf ./publish && rsync -r --exclude publish ./* ./publish
rsync -r --exclude ./lib ./lib/* .
npx -p pinst -p semantic-release -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec -p semantic-release-github semantic-release --provider=github
build-example:
Expand Down
42 changes: 41 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
/node_modules/*
.*.swp
._*
.DS_Store
.git
.hg
.npmrc
.lock-wscript
.svn
.wafpickle-*
config.gypi
CVS
npm-debug.log

*.iml
.idea
*.log*
.nuxt
.history
.reports
publish
.vscode/*
!.vscode/launch.json
.DS_Store
coverage
dist
.husky
.*
*.code-workspace
jsconfig.json
jest.config.js
CODE_OF_CONDUCT.md
CONTRIBUTING.md
README.md
commitlint.config.js
renovate.json
vetur.config.json

/docs
/lib
/example
/test
43 changes: 0 additions & 43 deletions install.js

This file was deleted.

2 changes: 0 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ module.exports = {
'^@@$': '<rootDir>',
'^@/(.*)$': '<rootDir>/lib/$1'
},
transformIgnorePatterns: [
`/node_modules/(?!${['@nuxt/i18m']})`],
testPathIgnorePatterns: [
// 'test/browser.test.js'
]
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
],
"main": "index.js",
"scripts": {
"postinstall": "node ./install.js",
"postversion": "cp -r ./package.json ..",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"dev": "nuxt example",
"generate": "nuxt generate --config-file example/nuxt.config.js",
"build": "nuxt build --config-file example/nuxt.config.js",
Expand Down

0 comments on commit 8a329ae

Please sign in to comment.