Skip to content

Commit

Permalink
fix: properly copy compiled files on pre publish
Browse files Browse the repository at this point in the history
  • Loading branch information
fmal committed Oct 12, 2019
1 parent b9a21d3 commit c4a8849
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@fmal/http-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"build:cjs": "cross-env BABEL_ENV=cjs npm run _babel -- -d ../../node_modules/@fmal/http-service/dist/cjs",
"build:es": "cross-env BABEL_ENV=es npm run _babel -- -d ../../node_modules/@fmal/http-service/dist/es",
"build": "cross-env NODE_ENV=production run-p build:*",
"prepublishOnly": "rimraf dist && cpy ../../node_modules/@fmal/http-service/dist/**/* dist"
"prepublishOnly": "rimraf dist && cpy '@fmal/http-service/dist/**/*' .. --cwd=../../node_modules --parents"
},
"devDependencies": {
"@babel/cli": "7.6.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/@fmal/test-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"build:cjs": "cross-env BABEL_ENV=cjs npm run _babel -- -d ../../node_modules/@fmal/test-lib/dist/cjs",
"build:es": "cross-env BABEL_ENV=es npm run _babel -- -d ../../node_modules/@fmal/test-lib/dist/es",
"build": "cross-env NODE_ENV=production run-p build:*",
"prepublishOnly": "rimraf dist && cpy ../../node_modules/@fmal/test-lib/dist/**/* dist"
"prepublishOnly": "rimraf dist && cpy '@fmal/test-lib/dist/**/*' .. --cwd=../../node_modules --parents"
},
"devDependencies": {
"@babel/cli": "7.6.4",
Expand Down
2 changes: 1 addition & 1 deletion plop-templates/package/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"build:cjs": "cross-env BABEL_ENV=cjs npm run _babel -- -d ../../node_modules/@fmal/{{kebabCase name}}/dist/cjs",
"build:es": "cross-env BABEL_ENV=es npm run _babel -- -d ../../node_modules/@fmal/{{kebabCase name}}/dist/es",
"build": "cross-env NODE_ENV=production run-p build:*",
"prepublishOnly": "rimraf dist && cpy ../../node_modules/@fmal/{{kebabCase name}}/dist/**/* dist"
"prepublishOnly": "rimraf dist && cpy '@fmal/{{kebabCase name}}/dist/**/*' .. --cwd=../../node_modules --parents"
},
"devDependencies": {
"@babel/cli": "7.6.4",
Expand Down

0 comments on commit c4a8849

Please sign in to comment.