diff --git a/.gitignore b/.gitignore index 72a6938..4cadde6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,9 +6,11 @@ node_modules typings typings.json +package +*.tgz + npm-debug.log -*.tgz *.iml .idea/ .idea_modules/ diff --git a/.npmignore b/.npmignore index 1791739..6390639 100644 --- a/.npmignore +++ b/.npmignore @@ -4,3 +4,4 @@ /*.yml /*.sh node_modules +dist/node_modules diff --git a/build.sh b/build.sh index 3cbee4a..5ff9502 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/package.json b/package.json index 966597a..5aff902 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/sample/package.json b/sample/package.json index 56d298e..6b3432e 100644 --- a/sample/package.json +++ b/sample/package.json @@ -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", diff --git a/sample/tsconfig.json b/sample/tsconfig.json index a31f295..41eddf8 100644 --- a/sample/tsconfig.json +++ b/sample/tsconfig.json @@ -4,7 +4,7 @@ "outDir": "./dist/out-tsc", "baseUrl": "src", "paths": { - // "angular2-materialize": ["../lib/index"] + "angular2-materialize": ["../lib"] }, "sourceMap": true, "declaration": false,