()
| 299 | } |
| 300 | |
| 301 | async function compileSchematics() { |
| 302 | await esbuild.build({ |
| 303 | entryPoints: [ |
| 304 | src('schematics', "update", "index.ts"), |
| 305 | src('schematics', "deploy", "actions.ts"), |
| 306 | src('schematics', "deploy", "builder.ts"), |
| 307 | src('schematics', "add", "index.ts"), |
| 308 | src('schematics', "setup", "index.ts"), |
| 309 | src('schematics', "update", "v7", "index.ts"), |
| 310 | ], |
| 311 | format: "cjs", |
| 312 | // turns out schematics don't support ESM, need to use webpack or shim these |
| 313 | // format: "esm", |
| 314 | // splitting: true, |
| 315 | // outExtension: {".js": ".mjs"}, |
| 316 | bundle: true, |
| 317 | minify: true, |
| 318 | platform: "node", |
| 319 | target: "es2016", |
| 320 | external: [ |
| 321 | "@angular-devkit/schematics", |
| 322 | "@angular-devkit/architect", |
| 323 | "@angular-devkit/core", |
| 324 | "rxjs", |
| 325 | "@schematics/angular", |
| 326 | "jsonc-parser", |
| 327 | "firebase-tools" |
| 328 | ], |
| 329 | outdir: dest('schematics'), |
| 330 | }); |
| 331 | await Promise.all([ |
| 332 | copy(src('schematics', 'versions.json'), dest('schematics', 'versions.json')), |
| 333 | copy(src('schematics', 'builders.json'), dest('schematics', 'builders.json')), |
| 334 | copy(src('schematics', 'collection.json'), dest('schematics', 'collection.json')), |
| 335 | copy(src('schematics', 'migration.json'), dest('schematics', 'migration.json')), |
| 336 | copy(src('schematics', 'deploy', 'schema.json'), dest('schematics', 'deploy', 'schema.json')), |
| 337 | copy(src('schematics', 'add', 'schema.json'), dest('schematics', 'add', 'schema.json')), |
| 338 | copy(src('schematics', 'setup', 'schema.json'), dest('schematics', 'setup', 'schema.json')), |
| 339 | ]); |
| 340 | await replaceSchematicVersions(); |
| 341 | } |
| 342 | |
| 343 | async function buildLibrary() { |
| 344 | await zoneWrapExports(); |
no test coverage detected