Skip to content

Instantly share code, notes, and snippets.

@brandonroberts
Created May 24, 2021 14:41
Show Gist options
  • Save brandonroberts/8395d878038baca023f07c38dc0b42c4 to your computer and use it in GitHub Desktop.
Save brandonroberts/8395d878038baca023f07c38dc0b42c4 to your computer and use it in GitHub Desktop.
Schematic package.json
{
"name": "my-lib",
"version": "0.0.1",
"scripts": {
"prebuild": "../../node_modules/.bin/rimraf dist/my-lib && mkdir -p ../../dist/my-lib/schematics && cp -R schematics/ ../../dist/my-lib/schematics/",
"build": "../../node_modules/.bin/tsc -p tsconfig.schematics.json",
"postbuild": "../../node_modules/.bin/rimraf --glob ../../dist/my-lib/schematics/**/*.ts"
},
"peerDependencies": {
"@angular/common": "^12.0.0",
"@angular/core": "^12.0.0"
},
"schematics": "./schematics/collection.json"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment