@@ -284,6 +284,7 @@ gulp.task('build', ['clean'], (cb) => {
284
284
runSequence ( 'compile' , 'npm-package' , 'rollup-bundle' , cb ) ;
285
285
} ) ;
286
286
287
+ // Build the schematics in dist
287
288
gulp . task ( 'build:schematics' , ( ) => {
288
289
// return execDemoCmd(`build --preserve-symlinks --prod --aot --build-optimizer`, {cwd: `${config.demoDir}`});
289
290
return execCmd ( 'tsc' , '-p src/schematics/tsconfig.json' ) . then ( exitCode => {
@@ -321,7 +322,7 @@ gulp.task('build:watch-fast', ['build-watch-no-tests'], () => {
321
322
/////////////////////////////////////////////////////////////////////////////
322
323
323
324
// Prepare 'dist' folder for publication to NPM
324
- gulp . task ( 'npm-package' , [ 'build:schematics' ] , ( cb ) => {
325
+ gulp . task ( 'npm-package' , ( cb ) => {
325
326
let pkgJson = JSON . parse ( fs . readFileSync ( './package.json' , 'utf8' ) ) ;
326
327
let targetPkgJson = { } ;
327
328
let fieldsToCopy = [ 'version' , 'description' , 'keywords' , 'author' , 'repository' , 'license' , 'bugs' , 'homepage' , 'schematics' ] ;
@@ -666,7 +667,7 @@ gulp.task('create-new-tag', (cb) => {
666
667
} ) ;
667
668
668
669
// Build and then Publish 'dist' folder to NPM
669
- gulp . task ( 'npm-publish' , [ 'build' ] , ( ) => {
670
+ gulp . task ( 'npm-publish' , [ 'build' , 'build:schematics' ] , ( ) => {
670
671
return execExternalCmd ( 'npm' , `publish ${ config . outputDir } --access public` )
671
672
} ) ;
672
673
0 commit comments