Skip to content

Commit

Permalink
fix(schematics): fix error on install
Browse files Browse the repository at this point in the history
Fixes #1253
  • Loading branch information
mattlewis92 committed May 14, 2020
1 parent 19588d6 commit 4afe3ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ yarn-error.log
testem.log
/typings
projects/angular-calendar/package.json
projects/angular-calendar/schematics/ng-add/package.json

# System Files
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"scripts": {
"start": "node --max_old_space_size=8192 ./node_modules/.bin/ng serve --open",
"build:copy-package-json": "copyfiles package.json projects/angular-calendar",
"build:copy-package-json": "copyfiles package.json projects/angular-calendar & copyfiles package.json projects/angular-calendar/schematics/ng-add",
"build:lib": "ng build angular-calendar --prod",
"build:date-adapters": "tsc -p tsconfig-date-adapters.json",
"build:styles": "node-sass projects/angular-calendar/src/angular-calendar.scss | postcss --output dist/angular-calendar/css/angular-calendar.css",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const packageJson = require('../../package.json'); // tslint:disable-line no-var-requires
const packageJson = require('./package.json'); // tslint:disable-line no-var-requires

export const angularCalendarVersion = `^${packageJson.version}`;
export const momentVersion = packageJson.devDependencies.moment;
Expand Down

0 comments on commit 4afe3ae

Please sign in to comment.