@nrwl/js 16.0.0-beta.0 → 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.d.ts +0 -10
- package/babel.js +1 -88
- package/babel.js.map +1 -1
- package/executors.json +12 -12
- package/generators.json +2 -50
- package/index.d.ts +1 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/package.json +8 -30
- package/README.md +0 -63
- package/migrations.json +0 -54
- package/src/executors/node/compat.d.ts +0 -2
- package/src/executors/node/compat.js +0 -6
- package/src/executors/node/compat.js.map +0 -1
- package/src/executors/node/node-with-require-overrides.d.ts +0 -5
- package/src/executors/node/node-with-require-overrides.js +0 -20
- package/src/executors/node/node-with-require-overrides.js.map +0 -1
- package/src/executors/node/node.impl.d.ts +0 -8
- package/src/executors/node/node.impl.js +0 -184
- package/src/executors/node/node.impl.js.map +0 -1
- package/src/executors/node/schema.d.ts +0 -16
- package/src/executors/node/schema.json +0 -74
- package/src/executors/swc/compat.d.ts +0 -2
- package/src/executors/swc/compat.js +0 -6
- package/src/executors/swc/compat.js.map +0 -1
- package/src/executors/swc/schema.json +0 -147
- package/src/executors/swc/swc.impl.d.ts +0 -11
- package/src/executors/swc/swc.impl.js +0 -126
- package/src/executors/swc/swc.impl.js.map +0 -1
- package/src/executors/tsc/compat.d.ts +0 -2
- package/src/executors/tsc/compat.js +0 -6
- package/src/executors/tsc/compat.js.map +0 -1
- package/src/executors/tsc/schema.json +0 -156
- package/src/executors/tsc/tsc.impl.d.ts +0 -7
- package/src/executors/tsc/tsc.impl.js +0 -106
- package/src/executors/tsc/tsc.impl.js.map +0 -1
- package/src/generators/convert-to-swc/convert-to-swc.d.ts +0 -5
- package/src/generators/convert-to-swc/convert-to-swc.js +0 -62
- package/src/generators/convert-to-swc/convert-to-swc.js.map +0 -1
- package/src/generators/convert-to-swc/schema.d.ts +0 -4
- package/src/generators/convert-to-swc/schema.json +0 -36
- package/src/generators/init/files/__fileName__ +0 -20
- package/src/generators/init/init.d.ts +0 -5
- package/src/generators/init/init.js +0 -67
- package/src/generators/init/init.js.map +0 -1
- package/src/generators/init/schema.d.ts +0 -6
- package/src/generators/init/schema.json +0 -30
- package/src/generators/library/files/jest-config/jest.config.__ext__ +0 -24
- package/src/generators/library/files/lib/README.md +0 -19
- package/src/generators/library/files/lib/src/index.ts__tmpl__ +0 -1
- package/src/generators/library/files/lib/src/lib/__fileName__.spec.ts__tmpl__ +0 -7
- package/src/generators/library/files/lib/src/lib/__fileName__.ts__tmpl__ +0 -3
- package/src/generators/library/files/lib/tsconfig.json__tmpl__ +0 -14
- package/src/generators/library/files/lib/tsconfig.lib.json__tmpl__ +0 -10
- package/src/generators/library/library.d.ts +0 -15
- package/src/generators/library/library.js +0 -382
- package/src/generators/library/library.js.map +0 -1
- package/src/generators/library/schema.json +0 -134
- package/src/index.d.ts +0 -15
- package/src/index.js +0 -24
- package/src/index.js.map +0 -1
- package/src/migrations/update-13-10-1/update-lib-swcrc-exclude.d.ts +0 -2
- package/src/migrations/update-13-10-1/update-lib-swcrc-exclude.js +0 -32
- package/src/migrations/update-13-10-1/update-lib-swcrc-exclude.js.map +0 -1
- package/src/migrations/update-13-8-5/update-node-executor.d.ts +0 -2
- package/src/migrations/update-13-8-5/update-node-executor.js +0 -28
- package/src/migrations/update-13-8-5/update-node-executor.js.map +0 -1
- package/src/migrations/update-13-8-5/update-swcrc.d.ts +0 -2
- package/src/migrations/update-13-8-5/update-swcrc.js +0 -35
- package/src/migrations/update-13-8-5/update-swcrc.js.map +0 -1
- package/src/migrations/update-14-0-0/exclude-jest-config-swcrc.d.ts +0 -3
- package/src/migrations/update-14-0-0/exclude-jest-config-swcrc.js +0 -27
- package/src/migrations/update-14-0-0/exclude-jest-config-swcrc.js.map +0 -1
- package/src/migrations/update-14-1-5/update-swcrc-path.d.ts +0 -3
- package/src/migrations/update-14-1-5/update-swcrc-path.js +0 -30
- package/src/migrations/update-14-1-5/update-swcrc-path.js.map +0 -1
- package/src/migrations/update-15-8-0/rename-swcrc-config.d.ts +0 -2
- package/src/migrations/update-15-8-0/rename-swcrc-config.js +0 -81
- package/src/migrations/update-15-8-0/rename-swcrc-config.js.map +0 -1
- package/src/utils/add-babel-inputs.d.ts +0 -2
- package/src/utils/add-babel-inputs.js +0 -23
- package/src/utils/add-babel-inputs.js.map +0 -1
- package/src/utils/assets/assets.d.ts +0 -10
- package/src/utils/assets/assets.js +0 -38
- package/src/utils/assets/assets.js.map +0 -1
- package/src/utils/assets/copy-assets-handler.d.ts +0 -28
- package/src/utils/assets/copy-assets-handler.js +0 -155
- package/src/utils/assets/copy-assets-handler.js.map +0 -1
- package/src/utils/assets/index.d.ts +0 -16
- package/src/utils/assets/index.js +0 -31
- package/src/utils/assets/index.js.map +0 -1
- package/src/utils/buildable-libs-utils.d.ts +0 -32
- package/src/utils/buildable-libs-utils.js +0 -309
- package/src/utils/buildable-libs-utils.js.map +0 -1
- package/src/utils/check-dependencies.d.ts +0 -8
- package/src/utils/check-dependencies.js +0 -24
- package/src/utils/check-dependencies.js.map +0 -1
- package/src/utils/code-frames/highlight.d.ts +0 -1
- package/src/utils/code-frames/highlight.js +0 -87
- package/src/utils/code-frames/highlight.js.map +0 -1
- package/src/utils/code-frames/identifiers.d.ts +0 -5
- package/src/utils/code-frames/identifiers.js +0 -53
- package/src/utils/code-frames/identifiers.js.map +0 -1
- package/src/utils/compiler-helper-dependency.d.ts +0 -17
- package/src/utils/compiler-helper-dependency.js +0 -111
- package/src/utils/compiler-helper-dependency.js.map +0 -1
- package/src/utils/generate-globs.d.ts +0 -6
- package/src/utils/generate-globs.js +0 -81
- package/src/utils/generate-globs.js.map +0 -1
- package/src/utils/inline.d.ts +0 -19
- package/src/utils/inline.js +0 -211
- package/src/utils/inline.js.map +0 -1
- package/src/utils/minimal-publish-script.d.ts +0 -2
- package/src/utils/minimal-publish-script.js +0 -76
- package/src/utils/minimal-publish-script.js.map +0 -1
- package/src/utils/package-json/index.d.ts +0 -13
- package/src/utils/package-json/index.js +0 -34
- package/src/utils/package-json/index.js.map +0 -1
- package/src/utils/package-json/update-package-json.d.ts +0 -20
- package/src/utils/package-json/update-package-json.js +0 -142
- package/src/utils/package-json/update-package-json.js.map +0 -1
- package/src/utils/prettier.d.ts +0 -6
- package/src/utils/prettier.js +0 -38
- package/src/utils/prettier.js.map +0 -1
- package/src/utils/schema.d.ts +0 -81
- package/src/utils/swc/add-swc-config.d.ts +0 -3
- package/src/utils/swc/add-swc-config.js +0 -44
- package/src/utils/swc/add-swc-config.js.map +0 -1
- package/src/utils/swc/add-swc-dependencies.d.ts +0 -2
- package/src/utils/swc/add-swc-dependencies.js +0 -15
- package/src/utils/swc/add-swc-dependencies.js.map +0 -1
- package/src/utils/swc/compile-swc.d.ts +0 -13
- package/src/utils/swc/compile-swc.js +0 -161
- package/src/utils/swc/compile-swc.js.map +0 -1
- package/src/utils/swc/get-swcrc-path.d.ts +0 -2
- package/src/utils/swc/get-swcrc-path.js +0 -14
- package/src/utils/swc/get-swcrc-path.js.map +0 -1
- package/src/utils/swc/inline.d.ts +0 -2
- package/src/utils/swc/inline.js +0 -13
- package/src/utils/swc/inline.js.map +0 -1
- package/src/utils/typescript/__mocks__/plugin-a.d.ts +0 -1
- package/src/utils/typescript/__mocks__/plugin-a.js +0 -6
- package/src/utils/typescript/__mocks__/plugin-a.js.map +0 -1
- package/src/utils/typescript/__mocks__/plugin-b.d.ts +0 -1
- package/src/utils/typescript/__mocks__/plugin-b.js +0 -6
- package/src/utils/typescript/__mocks__/plugin-b.js.map +0 -1
- package/src/utils/typescript/ast-utils.d.ts +0 -22
- package/src/utils/typescript/ast-utils.js +0 -199
- package/src/utils/typescript/ast-utils.js.map +0 -1
- package/src/utils/typescript/compile-typescript-files.d.ts +0 -10
- package/src/utils/typescript/compile-typescript-files.js +0 -45
- package/src/utils/typescript/compile-typescript-files.js.map +0 -1
- package/src/utils/typescript/create-ts-config.d.ts +0 -17
- package/src/utils/typescript/create-ts-config.js +0 -48
- package/src/utils/typescript/create-ts-config.js.map +0 -1
- package/src/utils/typescript/ensure-typescript.d.ts +0 -1
- package/src/utils/typescript/ensure-typescript.js +0 -10
- package/src/utils/typescript/ensure-typescript.js.map +0 -1
- package/src/utils/typescript/get-source-nodes.d.ts +0 -2
- package/src/utils/typescript/get-source-nodes.js +0 -19
- package/src/utils/typescript/get-source-nodes.js.map +0 -1
- package/src/utils/typescript/load-ts-transformers.d.ts +0 -5
- package/src/utils/typescript/load-ts-transformers.js +0 -63
- package/src/utils/typescript/load-ts-transformers.js.map +0 -1
- package/src/utils/typescript/print-diagnostics.d.ts +0 -1
- package/src/utils/typescript/print-diagnostics.js +0 -22
- package/src/utils/typescript/print-diagnostics.js.map +0 -1
- package/src/utils/typescript/run-type-check.d.ts +0 -32
- package/src/utils/typescript/run-type-check.js +0 -125
- package/src/utils/typescript/run-type-check.js.map +0 -1
- package/src/utils/typescript/ts-config.d.ts +0 -11
- package/src/utils/typescript/ts-config.js +0 -55
- package/src/utils/typescript/ts-config.js.map +0 -1
- package/src/utils/typescript/types.d.ts +0 -18
- package/src/utils/typescript/types.js +0 -3
- package/src/utils/typescript/types.js.map +0 -1
- package/src/utils/versions.d.ts +0 -8
- package/src/utils/versions.js +0 -13
- package/src/utils/versions.js.map +0 -1
- package/src/utils/watch-for-single-file-changes.d.ts +0 -1
- package/src/utils/watch-for-single-file-changes.js +0 -27
- package/src/utils/watch-for-single-file-changes.js.map +0 -1
package/babel.d.ts
CHANGED
package/babel.js
CHANGED
|
@@ -1,89 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const path_1 = require("path");
|
|
4
|
-
module.exports = function (api, options = {}) {
|
|
5
|
-
var _a, _b, _c;
|
|
6
|
-
api.assertVersion(7);
|
|
7
|
-
const isModern = api.caller((caller) => caller === null || caller === void 0 ? void 0 : caller.isModern);
|
|
8
|
-
// This is set by `@nrwl/web:rollup` executor
|
|
9
|
-
const isNxPackage = api.caller((caller) => caller === null || caller === void 0 ? void 0 : caller.isNxPackage);
|
|
10
|
-
const emitDecoratorMetadata = api.caller((caller) => { var _a; return (_a = caller === null || caller === void 0 ? void 0 : caller.emitDecoratorMetadata) !== null && _a !== void 0 ? _a : true; });
|
|
11
|
-
// Determine settings for `@babel/plugin-proposal-class-properties`,
|
|
12
|
-
// so that we can sync the `loose` option with `@babel/preset-env`.
|
|
13
|
-
const classProperties = (_a = options.classProperties) !== null && _a !== void 0 ? _a : { loose: true };
|
|
14
|
-
return {
|
|
15
|
-
presets: [
|
|
16
|
-
// Support module/nomodule pattern.
|
|
17
|
-
[
|
|
18
|
-
require.resolve('@babel/preset-env'),
|
|
19
|
-
// For Jest tests, NODE_ENV is set as 'test' and we only want to set target as Node.
|
|
20
|
-
// All other options will fail in Jest since Node does not support some ES features
|
|
21
|
-
// such as import syntax.
|
|
22
|
-
process.env.NODE_ENV === 'test'
|
|
23
|
-
? { targets: { node: 'current' }, loose: true }
|
|
24
|
-
: {
|
|
25
|
-
// Allow importing core-js in entrypoint and use browserslist to select polyfills.
|
|
26
|
-
useBuiltIns: (_b = options.useBuiltIns) !== null && _b !== void 0 ? _b : 'entry',
|
|
27
|
-
corejs: 3,
|
|
28
|
-
// Do not transform modules to CJS
|
|
29
|
-
modules: false,
|
|
30
|
-
targets: isModern ? { esmodules: 'intersect' } : undefined,
|
|
31
|
-
bugfixes: true,
|
|
32
|
-
// Exclude transforms that make all code slower
|
|
33
|
-
exclude: ['transform-typeof-symbol'],
|
|
34
|
-
// This must match the setting for `@babel/plugin-proposal-class-properties`
|
|
35
|
-
loose: classProperties.loose,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
[
|
|
39
|
-
require.resolve('@babel/preset-typescript'),
|
|
40
|
-
{
|
|
41
|
-
allowDeclareFields: true,
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
],
|
|
45
|
-
plugins: [
|
|
46
|
-
!isNxPackage
|
|
47
|
-
? [
|
|
48
|
-
require.resolve('@babel/plugin-transform-runtime'),
|
|
49
|
-
{
|
|
50
|
-
corejs: false,
|
|
51
|
-
helpers: true,
|
|
52
|
-
regenerator: true,
|
|
53
|
-
useESModules: isModern,
|
|
54
|
-
absoluteRuntime: (0, path_1.dirname)(require.resolve('@babel/runtime/package.json')),
|
|
55
|
-
},
|
|
56
|
-
]
|
|
57
|
-
: null,
|
|
58
|
-
require.resolve('babel-plugin-macros'),
|
|
59
|
-
emitDecoratorMetadata
|
|
60
|
-
? require.resolve('babel-plugin-transform-typescript-metadata')
|
|
61
|
-
: undefined,
|
|
62
|
-
// Must use legacy decorators to remain compatible with TypeScript.
|
|
63
|
-
[
|
|
64
|
-
require.resolve('@babel/plugin-proposal-decorators'),
|
|
65
|
-
(_c = options.decorators) !== null && _c !== void 0 ? _c : { legacy: true },
|
|
66
|
-
],
|
|
67
|
-
[
|
|
68
|
-
require.resolve('@babel/plugin-proposal-class-properties'),
|
|
69
|
-
classProperties,
|
|
70
|
-
],
|
|
71
|
-
].filter(Boolean),
|
|
72
|
-
overrides: [
|
|
73
|
-
// Convert `const enum` to `enum`. The former cannot be supported by babel
|
|
74
|
-
// but at least we can get it to not error out.
|
|
75
|
-
{
|
|
76
|
-
test: /\.tsx?$/,
|
|
77
|
-
plugins: [
|
|
78
|
-
[
|
|
79
|
-
require.resolve('babel-plugin-const-enum'),
|
|
80
|
-
{
|
|
81
|
-
transform: 'removeConst',
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
};
|
|
88
|
-
};
|
|
1
|
+
module.exports = require('@nx/js/babel');
|
|
89
2
|
//# sourceMappingURL=babel.js.map
|
package/babel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"babel.js","sourceRoot":"","sources":["../../../packages/js/babel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"babel.js","sourceRoot":"","sources":["../../../packages-legacy/js/babel.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC"}
|
package/executors.json
CHANGED
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"executors": {
|
|
4
4
|
"tsc": {
|
|
5
|
-
"implementation": "
|
|
6
|
-
"schema": "
|
|
5
|
+
"implementation": "@nx/js/src/executors/tsc/tsc.impl",
|
|
6
|
+
"schema": "@nx/js/src/executors/tsc/schema.json",
|
|
7
7
|
"description": "Build a project using TypeScript."
|
|
8
8
|
},
|
|
9
9
|
"swc": {
|
|
10
|
-
"implementation": "
|
|
11
|
-
"schema": "
|
|
10
|
+
"implementation": "@nx/js/src/executors/swc/swc.impl",
|
|
11
|
+
"schema": "@nx/js/src/executors/swc/schema.json",
|
|
12
12
|
"description": "Build a project using SWC."
|
|
13
13
|
},
|
|
14
14
|
"node": {
|
|
15
|
-
"implementation": "
|
|
16
|
-
"schema": "
|
|
15
|
+
"implementation": "@nx/js/src/executors/node/node.impl",
|
|
16
|
+
"schema": "@nx/js/src/executors/node/schema.json",
|
|
17
17
|
"description": "Execute a Node application."
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"builders": {
|
|
21
21
|
"tsc": {
|
|
22
|
-
"implementation": "
|
|
23
|
-
"schema": "
|
|
22
|
+
"implementation": "@nx/js/src/executors/tsc/compat",
|
|
23
|
+
"schema": "@nx/js/src/executors/tsc/schema.json",
|
|
24
24
|
"description": "Build a project using TypeScript."
|
|
25
25
|
},
|
|
26
26
|
"swc": {
|
|
27
|
-
"implementation": "
|
|
28
|
-
"schema": "
|
|
27
|
+
"implementation": "@nx/js/src/executors/swc/compat",
|
|
28
|
+
"schema": "@nx/js/src/executors/swc/schema.json",
|
|
29
29
|
"description": "Build a project using SWC."
|
|
30
30
|
},
|
|
31
31
|
"node": {
|
|
32
|
-
"implementation": "
|
|
33
|
-
"schema": "
|
|
32
|
+
"implementation": "@nx/js/src/executors/node/compat",
|
|
33
|
+
"schema": "@nx/js/src/executors/node/schema.json",
|
|
34
34
|
"description": "Execute a Node application."
|
|
35
35
|
}
|
|
36
36
|
}
|
package/generators.json
CHANGED
|
@@ -1,52 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"schematics": {
|
|
5
|
-
"library": {
|
|
6
|
-
"factory": "./src/generators/library/library#librarySchematic",
|
|
7
|
-
"schema": "./src/generators/library/schema.json",
|
|
8
|
-
"aliases": ["lib"],
|
|
9
|
-
"x-type": "library",
|
|
10
|
-
"description": "Create a library."
|
|
11
|
-
},
|
|
12
|
-
"init": {
|
|
13
|
-
"factory": "./src/generators/init/init#initSchematic",
|
|
14
|
-
"schema": "./src/generators/init/schema.json",
|
|
15
|
-
"aliases": ["lib"],
|
|
16
|
-
"x-type": "init",
|
|
17
|
-
"description": "Initialize a TS/JS workspace.",
|
|
18
|
-
"hidden": true
|
|
19
|
-
},
|
|
20
|
-
"convert-to-swc": {
|
|
21
|
-
"factory": "./src/generators/convert-to-swc/convert-to-swc#convertToSwcSchematic",
|
|
22
|
-
"schema": "./src/generators/convert-to-swc/schema.json",
|
|
23
|
-
"aliases": ["swc"],
|
|
24
|
-
"x-type": "library",
|
|
25
|
-
"description": "Convert a TypeScript library to compile with SWC."
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"generators": {
|
|
29
|
-
"library": {
|
|
30
|
-
"factory": "./src/generators/library/library#libraryGenerator",
|
|
31
|
-
"schema": "./src/generators/library/schema.json",
|
|
32
|
-
"aliases": ["lib"],
|
|
33
|
-
"x-type": "library",
|
|
34
|
-
"description": "Create a library"
|
|
35
|
-
},
|
|
36
|
-
"init": {
|
|
37
|
-
"factory": "./src/generators/init/init#initGenerator",
|
|
38
|
-
"schema": "./src/generators/init/schema.json",
|
|
39
|
-
"aliases": ["lib"],
|
|
40
|
-
"x-type": "init",
|
|
41
|
-
"description": "Initialize a TS/JS workspace.",
|
|
42
|
-
"hidden": true
|
|
43
|
-
},
|
|
44
|
-
"convert-to-swc": {
|
|
45
|
-
"factory": "./src/generators/convert-to-swc/convert-to-swc#convertToSwcGenerator",
|
|
46
|
-
"schema": "./src/generators/convert-to-swc/schema.json",
|
|
47
|
-
"aliases": ["swc"],
|
|
48
|
-
"x-type": "library",
|
|
49
|
-
"description": "Convert a TypeScript library to compile with SWC."
|
|
50
|
-
}
|
|
51
|
-
}
|
|
2
|
+
"extends": ["@nx/js"],
|
|
3
|
+
"schematics": {}
|
|
52
4
|
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@nx/js';
|
package/index.js
ADDED
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages-legacy/js/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/js",
|
|
3
|
-
"version": "16.0.0-beta.
|
|
3
|
+
"version": "16.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/nrwl/nx.git",
|
|
9
|
-
"directory": "packages/js"
|
|
9
|
+
"directory": "packages-legacy/js"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"Monorepo",
|
|
@@ -23,41 +23,19 @@
|
|
|
23
23
|
"url": "https://github.com/nrwl/nx/issues"
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://nx.dev",
|
|
26
|
-
"ng-update": {
|
|
27
|
-
"requirements": {},
|
|
28
|
-
"migrations": "./migrations.json"
|
|
29
|
-
},
|
|
30
26
|
"generators": "./generators.json",
|
|
31
27
|
"schematics": "./generators.json",
|
|
32
28
|
"executors": "./executors.json",
|
|
33
29
|
"builders": "./executors.json",
|
|
34
30
|
"dependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
37
|
-
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
38
|
-
"@babel/plugin-transform-runtime": "^7.15.0",
|
|
39
|
-
"@babel/preset-env": "^7.15.0",
|
|
40
|
-
"@babel/preset-typescript": "^7.15.0",
|
|
41
|
-
"@babel/runtime": "^7.14.8",
|
|
42
|
-
"@nrwl/devkit": "16.0.0-beta.0",
|
|
43
|
-
"@nrwl/workspace": "16.0.0-beta.0",
|
|
44
|
-
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
45
|
-
"babel-plugin-const-enum": "^1.0.1",
|
|
46
|
-
"babel-plugin-macros": "^2.8.0",
|
|
47
|
-
"babel-plugin-transform-typescript-metadata": "^0.3.1",
|
|
48
|
-
"chalk": "^4.1.0",
|
|
49
|
-
"fast-glob": "3.2.7",
|
|
50
|
-
"fs-extra": "^11.1.0",
|
|
51
|
-
"ignore": "^5.0.4",
|
|
52
|
-
"js-tokens": "^4.0.0",
|
|
53
|
-
"minimatch": "3.0.5",
|
|
54
|
-
"source-map-support": "0.5.19",
|
|
55
|
-
"tree-kill": "1.2.2",
|
|
56
|
-
"tslib": "^2.3.0"
|
|
31
|
+
"@nx/js": "16.0.0-beta.1"
|
|
57
32
|
},
|
|
58
33
|
"publishConfig": {
|
|
59
34
|
"access": "public"
|
|
60
35
|
},
|
|
61
|
-
"
|
|
62
|
-
|
|
36
|
+
"nx-migrations": {
|
|
37
|
+
"migrations": "@nx/js/migrations.json"
|
|
38
|
+
},
|
|
39
|
+
"types": "./index.d.ts",
|
|
40
|
+
"gitHead": "abf534c265f5aa3aac146e55bb31de598ea281d7"
|
|
63
41
|
}
|
package/README.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
|
|
2
|
-
|
|
3
|
-
<div style="text-align: center;">
|
|
4
|
-
|
|
5
|
-
[](https://circleci.com/gh/nrwl/nx)
|
|
6
|
-
[]()
|
|
7
|
-
[](https://www.npmjs.com/@nrwl/workspace)
|
|
8
|
-
[]()
|
|
9
|
-
[](http://commitizen.github.io/cz-cli/)
|
|
10
|
-
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
11
|
-
[](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
|
|
12
|
-
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<hr>
|
|
17
|
-
|
|
18
|
-
# Nx: Smart, Fast and Extensible Build System
|
|
19
|
-
|
|
20
|
-
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
21
|
-
|
|
22
|
-
This package is a [JavaScript/TypeScript plugin for Nx](https://nx.dev/js/overview).
|
|
23
|
-
|
|
24
|
-
## Getting Started
|
|
25
|
-
|
|
26
|
-
### Creating an Nx Workspace
|
|
27
|
-
|
|
28
|
-
**Using `npx`**
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npx create-nx-workspace
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Using `npm init`**
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm init nx-workspace
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Using `yarn create`**
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
yarn create nx-workspace
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Adding Nx to an Existing Repository
|
|
47
|
-
|
|
48
|
-
Run:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npx nx@latest init
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Documentation & Resources
|
|
55
|
-
|
|
56
|
-
- [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
|
|
57
|
-
- [Intro to Nx](https://nx.dev/getting-started/intro)
|
|
58
|
-
- [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
|
|
59
|
-
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
60
|
-
|
|
61
|
-
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
62
|
-
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
63
|
-
|
package/migrations.json
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"generators": {
|
|
3
|
-
"update-node-executor": {
|
|
4
|
-
"cli": "nx",
|
|
5
|
-
"version": "13.8.5-beta.1",
|
|
6
|
-
"description": "Renames @nrwl/js:node to @nrwl/node:node",
|
|
7
|
-
"factory": "./src/migrations/update-13-8-5/update-node-executor"
|
|
8
|
-
},
|
|
9
|
-
"update-swcrc": {
|
|
10
|
-
"cli": "nx",
|
|
11
|
-
"version": "13.8.5-beta.1",
|
|
12
|
-
"description": "Adjust .swcrc to .lib.swcrc",
|
|
13
|
-
"factory": "./src/migrations/update-13-8-5/update-swcrc"
|
|
14
|
-
},
|
|
15
|
-
"update-swcrc-exclude": {
|
|
16
|
-
"cli": "nx",
|
|
17
|
-
"version": "13.10.1-beta.1",
|
|
18
|
-
"description": "Update .lib.swcrc to exclude missing test files",
|
|
19
|
-
"factory": "./src/migrations/update-13-10-1/update-lib-swcrc-exclude"
|
|
20
|
-
},
|
|
21
|
-
"exclude-jest-config-swcrc": {
|
|
22
|
-
"cli": "nx",
|
|
23
|
-
"version": "14.0.0-beta.2",
|
|
24
|
-
"description": "Exclude jest config from .lib.swcrc",
|
|
25
|
-
"factory": "./src/migrations/update-14-0-0/exclude-jest-config-swcrc"
|
|
26
|
-
},
|
|
27
|
-
"update-swcrc-path": {
|
|
28
|
-
"cli": "nx",
|
|
29
|
-
"version": "14.1.5-beta.0",
|
|
30
|
-
"description": "Rename option swcrcPath to swcrc, and resolve relative to workspace root",
|
|
31
|
-
"factory": "./src/migrations/update-14-1-5/update-swcrc-path"
|
|
32
|
-
},
|
|
33
|
-
"rename-swcrc-config": {
|
|
34
|
-
"cli": "nx",
|
|
35
|
-
"version": "15.8.0-beta.0",
|
|
36
|
-
"description": "Rename .lib.swcrc to .swcrc for better SWC support throughout the workspace",
|
|
37
|
-
"factory": "./src/migrations/update-15-8-0/rename-swcrc-config"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"packageJsonUpdates": {
|
|
41
|
-
"15.8.0": {
|
|
42
|
-
"version": "15.8.0-beta.2",
|
|
43
|
-
"x-prompt": "Do you want to update to TypeScript v4.9?",
|
|
44
|
-
"requires": {
|
|
45
|
-
"typescript": ">=4.8.2 <4.9.0"
|
|
46
|
-
},
|
|
47
|
-
"packages": {
|
|
48
|
-
"typescript": {
|
|
49
|
-
"version": "~4.9.5"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
4
|
-
const node_impl_1 = require("./node.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(node_impl_1.default);
|
|
6
|
-
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../packages/js/src/executors/node/compat.ts"],"names":[],"mappings":";;AAAA,yCAAiD;AACjD,2CAAuC;AAEvC,kBAAe,IAAA,0BAAiB,EAAC,mBAAY,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const Module = require('module');
|
|
2
|
-
const originalLoader = Module._load;
|
|
3
|
-
const mappings = JSON.parse(process.env.NX_MAPPINGS);
|
|
4
|
-
const keys = Object.keys(mappings);
|
|
5
|
-
const fileToRun = process.env.NX_FILE_TO_RUN;
|
|
6
|
-
Module._load = function (request, parent) {
|
|
7
|
-
if (!parent)
|
|
8
|
-
return originalLoader.apply(this, arguments);
|
|
9
|
-
const match = keys.find((k) => request === k);
|
|
10
|
-
if (match) {
|
|
11
|
-
const newArguments = [...arguments];
|
|
12
|
-
newArguments[0] = mappings[match];
|
|
13
|
-
return originalLoader.apply(this, newArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return originalLoader.apply(this, arguments);
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
require(fileToRun);
|
|
20
|
-
//# sourceMappingURL=node-with-require-overrides.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-with-require-overrides.js","sourceRoot":"","sources":["../../../../../../packages/js/src/executors/node/node-with-require-overrides.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjC,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC;AAEpC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACrD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACnC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;AAE7C,MAAM,CAAC,KAAK,GAAG,UAAU,OAAO,EAAE,MAAM;IACtC,IAAI,CAAC,MAAM;QAAE,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC1D,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC;IAC9C,IAAI,KAAK,EAAE;QACT,MAAM,YAAY,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;QACpC,YAAY,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClC,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACjD;SAAM;QACL,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;KAC9C;AACH,CAAC,CAAC;AAEF,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nrwl/devkit';
|
|
2
|
-
import { NodeExecutorOptions } from './schema';
|
|
3
|
-
export interface ExecutorEvent {
|
|
4
|
-
outfile: string;
|
|
5
|
-
success: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function nodeExecutor(options: NodeExecutorOptions, context: ExecutorContext): AsyncGenerator<ExecutorEvent, void, unknown>;
|
|
8
|
-
export default nodeExecutor;
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nodeExecutor = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
const buildable_libs_utils_1 = require("../../utils/buildable-libs-utils");
|
|
7
|
-
const child_process_1 = require("child_process");
|
|
8
|
-
const crypto_1 = require("crypto");
|
|
9
|
-
const hashing_impl_1 = require("nx/src/hasher/hashing-impl");
|
|
10
|
-
const treeKill = require("tree-kill");
|
|
11
|
-
const util_1 = require("util");
|
|
12
|
-
const hasher = new hashing_impl_1.HashingImpl();
|
|
13
|
-
const processMap = new Map();
|
|
14
|
-
const hashedMap = new Map();
|
|
15
|
-
function nodeExecutor(options, context) {
|
|
16
|
-
return tslib_1.__asyncGenerator(this, arguments, function* nodeExecutor_1() {
|
|
17
|
-
var _a, e_1, _b, _c;
|
|
18
|
-
const uniqueKey = (0, crypto_1.randomUUID)();
|
|
19
|
-
process.on('SIGTERM', () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
yield killCurrentProcess(uniqueKey, options, 'SIGTERM');
|
|
21
|
-
process.exit(128 + 15);
|
|
22
|
-
}));
|
|
23
|
-
process.on('SIGINT', () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
yield killCurrentProcess(uniqueKey, options, 'SIGINT');
|
|
25
|
-
process.exit(128 + 2);
|
|
26
|
-
}));
|
|
27
|
-
process.on('SIGHUP', () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
yield killCurrentProcess(uniqueKey, options, 'SIGHUP');
|
|
29
|
-
process.exit(128 + 1);
|
|
30
|
-
}));
|
|
31
|
-
if (options.waitUntilTargets && options.waitUntilTargets.length > 0) {
|
|
32
|
-
const results = yield tslib_1.__await(runWaitUntilTargets(options, context));
|
|
33
|
-
for (const [i, result] of results.entries()) {
|
|
34
|
-
if (!result.success) {
|
|
35
|
-
throw new Error(`Wait until target failed: ${options.waitUntilTargets[i]}.`);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const mappings = calculateResolveMappings(context, options);
|
|
40
|
-
try {
|
|
41
|
-
for (var _d = true, _e = tslib_1.__asyncValues(startBuild(options, context)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a;) {
|
|
42
|
-
_c = _f.value;
|
|
43
|
-
_d = false;
|
|
44
|
-
try {
|
|
45
|
-
const event = _c;
|
|
46
|
-
if (!event.success) {
|
|
47
|
-
devkit_1.logger.error('There was an error with the build. See above.');
|
|
48
|
-
devkit_1.logger.info(`${event.outfile} was not restarted.`);
|
|
49
|
-
}
|
|
50
|
-
yield tslib_1.__await(handleBuildEvent(uniqueKey, event, options, mappings));
|
|
51
|
-
yield yield tslib_1.__await(event);
|
|
52
|
-
}
|
|
53
|
-
finally {
|
|
54
|
-
_d = true;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
59
|
-
finally {
|
|
60
|
-
try {
|
|
61
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
62
|
-
}
|
|
63
|
-
finally { if (e_1) throw e_1.error; }
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
exports.nodeExecutor = nodeExecutor;
|
|
68
|
-
function calculateResolveMappings(context, options) {
|
|
69
|
-
const parsed = (0, devkit_1.parseTargetString)(options.buildTarget, context.projectGraph);
|
|
70
|
-
const { dependencies } = (0, buildable_libs_utils_1.calculateProjectDependencies)(context.projectGraph, context.root, parsed.project, parsed.target, parsed.configuration);
|
|
71
|
-
return dependencies.reduce((m, c) => {
|
|
72
|
-
if (c.node.type !== 'npm' && c.outputs[0] != null) {
|
|
73
|
-
m[c.name] = (0, devkit_1.joinPathFragments)(context.root, c.outputs[0]);
|
|
74
|
-
}
|
|
75
|
-
return m;
|
|
76
|
-
}, {});
|
|
77
|
-
}
|
|
78
|
-
function runProcess(uniqueKey, event, options, mappings) {
|
|
79
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
const execArgv = getExecArgv(options);
|
|
81
|
-
const hashedKey = JSON.stringify([uniqueKey, ...options.args]);
|
|
82
|
-
const hashed = hasher.hashArray(execArgv.concat(hashedKey));
|
|
83
|
-
hashedMap.set(hashedKey, hashed);
|
|
84
|
-
const subProcess = (0, child_process_1.fork)((0, devkit_1.joinPathFragments)(__dirname, 'node-with-require-overrides'), options.args, {
|
|
85
|
-
execArgv,
|
|
86
|
-
stdio: 'inherit',
|
|
87
|
-
env: Object.assign(Object.assign({}, process.env), { NX_FILE_TO_RUN: event.outfile, NX_MAPPINGS: JSON.stringify(mappings) }),
|
|
88
|
-
});
|
|
89
|
-
processMap.set(hashed, subProcess);
|
|
90
|
-
if (!options.watch) {
|
|
91
|
-
return new Promise((resolve, reject) => {
|
|
92
|
-
subProcess.on('exit', (code) => {
|
|
93
|
-
if (code === 0) {
|
|
94
|
-
resolve(undefined);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
reject();
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function getExecArgv(options) {
|
|
105
|
-
const args = [
|
|
106
|
-
'-r',
|
|
107
|
-
require.resolve('source-map-support/register'),
|
|
108
|
-
...options.runtimeArgs,
|
|
109
|
-
];
|
|
110
|
-
if (options.inspect === true) {
|
|
111
|
-
options.inspect = "inspect" /* InspectType.Inspect */;
|
|
112
|
-
}
|
|
113
|
-
if (options.inspect) {
|
|
114
|
-
args.push(`--${options.inspect}=${options.host}:${options.port}`);
|
|
115
|
-
}
|
|
116
|
-
return args;
|
|
117
|
-
}
|
|
118
|
-
function handleBuildEvent(uniqueKey, event, options, mappings) {
|
|
119
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
// Don't kill previous run unless new build is successful.
|
|
121
|
-
if (options.watch && event.success) {
|
|
122
|
-
yield killCurrentProcess(uniqueKey, options);
|
|
123
|
-
}
|
|
124
|
-
if (event.success) {
|
|
125
|
-
yield runProcess(uniqueKey, event, options, mappings);
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
const promisifiedTreeKill = (0, util_1.promisify)(treeKill);
|
|
130
|
-
function killCurrentProcess(uniqueKey, options, signal = 'SIGTERM') {
|
|
131
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
132
|
-
const hashedKey = JSON.stringify([uniqueKey, ...options.args]);
|
|
133
|
-
const currentProcessKey = hashedMap.get(hashedKey);
|
|
134
|
-
if (!currentProcessKey)
|
|
135
|
-
return;
|
|
136
|
-
const currentProcess = processMap.get(currentProcessKey);
|
|
137
|
-
if (!currentProcess)
|
|
138
|
-
return;
|
|
139
|
-
try {
|
|
140
|
-
yield promisifiedTreeKill(currentProcess.pid, signal);
|
|
141
|
-
// if the currentProcess.killed is false, invoke kill()
|
|
142
|
-
// to properly send the signal to the process
|
|
143
|
-
if (!currentProcess.killed) {
|
|
144
|
-
currentProcess.kill(signal);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
catch (err) {
|
|
148
|
-
if (Array.isArray(err) && err[0] && err[2]) {
|
|
149
|
-
const errorMessage = err[2];
|
|
150
|
-
devkit_1.logger.error(errorMessage);
|
|
151
|
-
}
|
|
152
|
-
else if (err.message) {
|
|
153
|
-
devkit_1.logger.error(err.message);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
finally {
|
|
157
|
-
processMap.delete(currentProcessKey);
|
|
158
|
-
hashedMap.delete(hashedKey);
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
function startBuild(options, context) {
|
|
163
|
-
return tslib_1.__asyncGenerator(this, arguments, function* startBuild_1() {
|
|
164
|
-
const buildTarget = (0, devkit_1.parseTargetString)(options.buildTarget, context.projectGraph);
|
|
165
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(yield tslib_1.__await((0, devkit_1.runExecutor)(buildTarget, Object.assign(Object.assign({}, options.buildTargetOptions), { watch: options.watch }), context)))));
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
function runWaitUntilTargets(options, context) {
|
|
169
|
-
return Promise.all(options.waitUntilTargets.map((waitUntilTarget) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
170
|
-
const target = (0, devkit_1.parseTargetString)(waitUntilTarget, context.projectGraph);
|
|
171
|
-
const output = yield (0, devkit_1.runExecutor)(target, {}, context);
|
|
172
|
-
return new Promise((resolve) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
173
|
-
let event = yield output.next();
|
|
174
|
-
// Resolve after first event
|
|
175
|
-
resolve(event.value);
|
|
176
|
-
// Continue iterating
|
|
177
|
-
while (!event.done) {
|
|
178
|
-
event = yield output.next();
|
|
179
|
-
}
|
|
180
|
-
}));
|
|
181
|
-
})));
|
|
182
|
-
}
|
|
183
|
-
exports.default = nodeExecutor;
|
|
184
|
-
//# sourceMappingURL=node.impl.js.map
|