Skip to content

Commit 2d9c2f3

Browse files
committed
fixup! build: move build scripts to dedicated directory
1 parent e54ee35 commit 2d9c2f3

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

scripts/build-package-dist.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env node
2+
/**
3+
* @license
4+
* Copyright Google Inc. All Rights Reserved.
5+
*
6+
* Use of this source code is governed by an MIT-style license that can be
7+
* found in the LICENSE file at https://angular.io/license
8+
*/
9+
10+
// The build script used to be here but has been moved to `scripts/build/` in PR
11+
// https://github.com/angular/angular/pull/35780. This is a temporary placeholder script for people
12+
// that are not aware of the change and expect to find the script here.
13+
//
14+
// TODO: This script can be removed early May 2020.
15+
'use strict';
16+
17+
const {red} = require('chalk');
18+
const {relative, resolve} = require('path');
19+
20+
21+
const absoluteScriptPath = resolve(`${__dirname}/build/build-packages-dist.js`);
22+
const relativeScriptPath = relative(process.cwd(), absoluteScriptPath);
23+
24+
console.error(red('ERROR: The build script has been moved to \'scripts/build/\'.'));
25+
console.error(red(` Run: node ${relativeScriptPath}`));
26+
27+
process.exit(1);

0 commit comments

Comments
 (0)