Skip to content

Commit 92c13fd

Browse files
Revert "build: Add script to copy schematics-core to supported packages (#1052)" (#1055)
This reverts commit ed31bf1.
1 parent ed31bf1 commit 92c13fd

File tree

5 files changed

+3
-55
lines changed

5 files changed

+3
-55
lines changed

build/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface Config {
99
scope: string;
1010
}
1111

12-
export const modulesDir = './modules/';
12+
const modulesDir = './modules/';
1313
export const packages: PackageDescription[] = fs
1414
.readdirSync(modulesDir)
1515
.filter(path => {

build/copy-schematics-core.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

build/tasks.ts

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,5 @@
1-
import { Config, modulesDir } from './config';
1+
import { Config } from './config';
22
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-
}
323

334
/**
345
* Deploy build artifacts to repos

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"scripts": {
66
"precommit": "lint-staged",
77
"bootstrap": "lerna bootstrap",
8-
"prebuild": "yarn copy:schematics",
98
"build": "bazel build ...",
109
"deploy:builds": "ts-node ./build/deploy-build.ts",
1110
"test:unit": "node ./tests.js",
@@ -27,7 +26,7 @@
2726
"codegen": "ts-node modules/codegen/src/index.ts",
2827
"prebuildifier": "bazel build --noshow_progress @com_github_bazelbuild_buildtools//buildifier",
2928
"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/"
3130
},
3231
"engines": {
3332
"node": ">=8.9.0",
@@ -95,7 +94,6 @@
9594
"@types/jasminewd2": "^2.0.2",
9695
"@types/jest": "^20.0.2",
9796
"@types/lodash": "^4.14.80",
98-
"@types/ncp": "^2.0.1",
9997
"@types/node": "^7.0.5",
10098
"@types/ora": "^1.3.1",
10199
"@types/rimraf": "^0.0.28",

yarn.lock

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,6 @@
279279
version "3.0.3"
280280
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
281281

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-
288282
"@types/node@*":
289283
version "10.0.6"
290284
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.0.6.tgz#c0bce8e539bf34c1b850c13ff46bead2fecc2e58"

0 commit comments

Comments
 (0)