Skip to content

Commit 8497d9a

Browse files
Keen Yee Liauvikerman
Keen Yee Liau
authored andcommitted
build: use import instead of require for fast-json-stable-stringify
1 parent c5869f5 commit 8497d9a

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"@types/clean-css": "^4.2.1",
9393
"@types/copy-webpack-plugin": "^4.4.1",
9494
"@types/express": "^4.16.0",
95+
"@types/fast-json-stable-stringify": "^2.0.0",
9596
"@types/find-cache-dir": "^2.0.0",
9697
"@types/glob": "^7.0.0",
9798
"@types/inquirer": "^0.0.44",

packages/angular_devkit/core/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ ts_library(
3535
deps = [
3636
"@npm//rxjs",
3737
"@npm//@types/node",
38+
"@npm//@types/fast-json-stable-stringify",
3839
"@npm//ajv",
3940
"@npm//magic-string",
4041
"@npm//source-map",

packages/angular_devkit/core/src/experimental/jobs/strategy.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
import * as stableStringify from 'fast-json-stable-stringify';
89
import { Observable, Subject, concat, of } from 'rxjs';
910
import { finalize, ignoreElements, share, shareReplay, tap } from 'rxjs/operators';
1011
import { JsonValue } from '../../json';
@@ -16,8 +17,6 @@ import {
1617
JobOutboundMessageKind,
1718
} from './api';
1819

19-
const stableStringify = require('fast-json-stable-stringify');
20-
2120
export namespace strategy {
2221

2322
export type JobStrategy<

packages/angular_devkit/core/src/workspace/json/utilities.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
import * as stableStringify from 'fast-json-stable-stringify';
89
import {
910
JsonAstArray,
1011
JsonAstKeyValue,
@@ -14,8 +15,6 @@ import {
1415
JsonValue,
1516
} from '../../json';
1617

17-
const stableStringify = require('fast-json-stable-stringify');
18-
1918
interface CacheEntry {
2019
value?: JsonValue;
2120
node?: JsonAstNode;

yarn.lock

+5-1
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,11 @@
10131013
"@types/express-serve-static-core" "*"
10141014
"@types/serve-static" "*"
10151015

1016+
"@types/fast-json-stable-stringify@^2.0.0":
1017+
version "2.0.0"
1018+
resolved "https://registry.yarnpkg.com/@types/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#40363bb847cb86b2c2e1599f1398d11e8329c921"
1019+
integrity sha512-mky/O83TXmGY39P1H9YbUpjV6l6voRYlufqfFCvel8l1phuy8HRjdWc1rrPuN53ITBJlbyMSV6z3niOySO5pgQ==
1020+
10161021
"@types/find-cache-dir@^2.0.0":
10171022
version "2.0.0"
10181023
resolved "https://registry.yarnpkg.com/@types/find-cache-dir/-/find-cache-dir-2.0.0.tgz#6ee79b947b8e51ce8c565fc8278822b2605609db"
@@ -9073,7 +9078,6 @@ sauce-connect-launcher@^1.2.4:
90739078

90749079
"sauce-connect-proxy@https://saucelabs.com/downloads/sc-4.5.4-linux.tar.gz":
90759080
version "0.0.0"
9076-
uid dc5efcd2be24ddb099a85b923d6e754754651fa8
90779081
resolved "https://saucelabs.com/downloads/sc-4.5.4-linux.tar.gz#dc5efcd2be24ddb099a85b923d6e754754651fa8"
90789082

90799083
saucelabs@^1.5.0:

0 commit comments

Comments
 (0)