File tree Expand file tree Collapse file tree 5 files changed +3
-55
lines changed Expand file tree Collapse file tree 5 files changed +3
-55
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export interface Config {
9
9
scope : string ;
10
10
}
11
11
12
- export const modulesDir = './modules/' ;
12
+ const modulesDir = './modules/' ;
13
13
export const packages : PackageDescription [ ] = fs
14
14
. readdirSync ( modulesDir )
15
15
. filter ( path => {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { Config , modulesDir } from './config' ;
1
+ import { Config } from './config' ;
2
2
import * as util from './util' ;
3
- import * as fs from 'fs' ;
4
- import { ncp } from 'ncp' ;
5
-
6
- /**
7
- *
8
- * Copies the schematics-core package into any package that provides
9
- * schematics or migrations
10
- */
11
- export async function copySchematicsCore ( config : Config ) {
12
- ( ncp as any ) . limit = 1 ;
13
- for ( let pkg of util . getTopLevelPackages ( config ) ) {
14
- const packageJson = fs
15
- . readFileSync ( `${ modulesDir } ${ pkg } /package.json` )
16
- . toString ( 'utf-8' ) ;
17
- const pkgConfig = JSON . parse ( packageJson ) ;
18
-
19
- if ( pkgConfig . schematics || pkgConfig [ 'ng-update' ] . migrations ) {
20
- ncp (
21
- `${ modulesDir } /schematics-core` ,
22
- `${ modulesDir } /${ pkg } /src/schematics-core` ,
23
- function ( err : any ) {
24
- if ( err ) {
25
- return console . error ( err ) ;
26
- }
27
- }
28
- ) ;
29
- }
30
- }
31
- }
32
3
33
4
/**
34
5
* Deploy build artifacts to repos
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"precommit" : " lint-staged" ,
7
7
"bootstrap" : " lerna bootstrap" ,
8
- "prebuild" : " yarn copy:schematics" ,
9
8
"build" : " bazel build ..." ,
10
9
"deploy:builds" : " ts-node ./build/deploy-build.ts" ,
11
10
"test:unit" : " node ./tests.js" ,
27
26
"codegen" : " ts-node modules/codegen/src/index.ts" ,
28
27
"prebuildifier" : " bazel build --noshow_progress @com_github_bazelbuild_buildtools//buildifier" ,
29
28
"buildifier" : " find . -type f \\ ( -name BUILD -or -name BUILD.bazel \\ ) ! -path \" */node_modules/*\" | xargs $(bazel info bazel-bin)/external/com_github_bazelbuild_buildtools/buildifier/buildifier" ,
30
- "copy:schematics" : " ts-node ./build/copy- schematics-core.ts "
29
+ "copy:schematics" : " ncp modules/schematics-core/ modules/schematics/src/ schematics-core/ "
31
30
},
32
31
"engines" : {
33
32
"node" : " >=8.9.0" ,
95
94
"@types/jasminewd2" : " ^2.0.2" ,
96
95
"@types/jest" : " ^20.0.2" ,
97
96
"@types/lodash" : " ^4.14.80" ,
98
- "@types/ncp" : " ^2.0.1" ,
99
97
"@types/node" : " ^7.0.5" ,
100
98
"@types/ora" : " ^1.3.1" ,
101
99
"@types/rimraf" : " ^0.0.28" ,
Original file line number Diff line number Diff line change 279
279
version "3.0.3"
280
280
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
281
281
282
- " @types/ncp@^2.0.1 " :
283
- version "2.0.1"
284
- resolved "https://registry.yarnpkg.com/@types/ncp/-/ncp-2.0.1.tgz#749432511f6ad747d04e98837b18cca9045567fb"
285
- dependencies :
286
- " @types/node" " *"
287
-
288
282
" @types/node@* " :
289
283
version "10.0.6"
290
284
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.0.6.tgz#c0bce8e539bf34c1b850c13ff46bead2fecc2e58"
You can’t perform that action at this time.
0 commit comments