Skip to content

Commit

Permalink
build: Copy the package.json _after_ semantic-release pre runs (other…
Browse files Browse the repository at this point in the history
…wise the version would not be s
  • Loading branch information
lthompson committed Apr 29, 2017
1 parent 2170aaf commit e94932c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ node_modules
typings
typings.json

package
*.tgz

npm-debug.log

*.tgz
*.iml
.idea/
.idea_modules/
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/*.yml
/*.sh
node_modules
dist/node_modules
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ $ROLLUP build/index.js -o dist/index.js -f umd -n angular2-materialize -u angula
rsync -a build/ dist

# Copy package.json and other resources to dist
cp package.json dist
cp README.md dist
cp LICENSE dist
cp .npmignore dist
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"commit": "git-cz",
"build": "sh build.sh",
"presemantic-release": "semantic-release pre",
"semantic-release": "npm publish dist",
"semantic-release": "cp package.json dist && npm publish dist",
"postsemantic-release": "semantic-release post"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@angular/platform-browser": "^4.0.2",
"@angular/platform-browser-dynamic": "^4.0.2",
"@angular/router": "^4.0.2",
"angular2-materialize": "^9.0.1",
"core-js": "^2.4.1",
"hammerjs": "^2.0.8",
"intl": "1.2.5",
Expand Down
2 changes: 1 addition & 1 deletion sample/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"outDir": "./dist/out-tsc",
"baseUrl": "src",
"paths": {
// "angular2-materialize": ["../lib/index"]
"angular2-materialize": ["../lib"]
},
"sourceMap": true,
"declaration": false,
Expand Down

0 comments on commit e94932c

Please sign in to comment.