Skip to content

Commit 29b4237

Browse files
author
Matt Lewis
committed
build: fix individual module imports
1 parent d9c7f3a commit 29b4237

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
"build:demos": "webpack --env=production",
88
"build:ngc": "ngc -p tsconfig-ngc.json",
99
"build:package": "ng-packagr -p package.json",
10-
"build:dist": "npm run build:package && npm run build:ngc && npm run build:styles",
10+
"build:dist": "npm run build:package && npm run build:ngc && npm run build:styles && npm run copyfiles",
1111
"build:styles": "node-sass src/angular-calendar.scss | postcss --output dist/css/angular-calendar.css",
1212
"build:clean": "rm -rf dist",
1313
"test": "karma start --single-run && npm run build:dist && npm run build:clean",
1414
"test:watch": "karma start --auto-watch",
1515
"commit": "git-cz",
1616
"compodoc": "compodoc -p tsconfig-compodoc.json -d docs --disableGraph --disableCoverage --disablePrivate --disableInternal --disableLifeCycleHooks --disableProtected",
1717
"gh-pages": "git checkout gh-pages && git merge master --no-edit && rm -rf *.js *.js.map && npm run build:demos && npm run compodoc && git add . && git commit -m 'docs: build demos and docs' && git push && git checkout master",
18-
"copyfiles": "copyfiles CHANGELOG.md dist && copyfiles -u 1 src/**/*.scss dist/scss",
18+
"copyfiles": "copyfiles CHANGELOG.md dist && copyfiles -u 1 src/modules/**/package.json dist && copyfiles -u 1 src/**/*.scss dist/scss",
1919
"prerelease": "npm test",
2020
"release:git": "git add package.json package-lock.json && git commit -m 'chore: bump version number' && standard-version --first-release && git push --follow-tags origin master",
21-
"release:npm": "npm run build:dist && npm run copyfiles && npm publish dist",
21+
"release:npm": "npm run build:dist && npm publish dist",
2222
"release": "npm run release:git && npm run release:npm",
2323
"postrelease": "npm run build:clean && npm run gh-pages",
2424
"codecov": "cat coverage/lcov.info | codecov",

src/modules/common/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "angular-calendar/common",
3+
"module": "./index.js",
4+
"typings": "./index.d.ts"
5+
}

src/modules/day/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "angular-calendar/day",
3+
"module": "./index.js",
4+
"typings": "./index.d.ts"
5+
}

src/modules/month/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "angular-calendar/month",
3+
"module": "./index.js",
4+
"typings": "./index.d.ts"
5+
}

src/modules/week/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "angular-calendar/week",
3+
"module": "./index.js",
4+
"typings": "./index.d.ts"
5+
}

0 commit comments

Comments
 (0)