Skip to content

Commit

Permalink
fix(release): ensure correct folder will be published to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
uittorio committed May 31, 2020
1 parent ef97ae5 commit 9664b3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
[
"@semantic-release/npm",
{
"npmPublish": true
"npmPublish": true,
"pkgRoot": "dist"
}
],
[
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"test:features": "cross-env CACHE=true FEATURES=true karma start config/karma/karma.config.features.js",
"test:playground": "karma start config/karma/karma.config.transformer.playground.js",
"test:playground:build": "karma start config/karma/karma.config.transformer.playground.build.js",
"release": "semantic-release",
"release": "cp -r package.json package-lock.json README.md CHANGELOG.md dist && semantic-release",
"postpublish": "cp -r dist/package.json . && cp -r dist/package-lock.json . && cp -r dist/CHANGELOG.md .",
"cz": "git-cz",
"commit": "npm run cz"
},
Expand Down

0 comments on commit 9664b3d

Please sign in to comment.