@storm-software/workspace-tools 1.23.1 → 1.24.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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/config/nx.json +8 -5
- package/index.js +164 -1893
- package/meta.json +1 -1
- package/package.json +2 -1
- package/src/executors/tsup/executor.js +582 -2126
- package/src/executors/tsup/get-config.js +17 -17
- package/src/executors/tsup-neutral/executor.js +582 -2126
- package/src/executors/tsup-node/executor.js +582 -2126
- package/src/generators/config-schema/generator.js +44 -44
- package/src/generators/init/init.js +44 -44
- package/src/generators/node-library/generator.js +423 -2152
- package/src/generators/preset/generator.js +44 -44
package/index.js
CHANGED
|
@@ -8830,9 +8830,9 @@ var require_src = __commonJS({
|
|
|
8830
8830
|
}
|
|
8831
8831
|
});
|
|
8832
8832
|
|
|
8833
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
8833
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/nx.js
|
|
8834
8834
|
var require_nx = __commonJS({
|
|
8835
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
8835
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/nx.js"(exports) {
|
|
8836
8836
|
"use strict";
|
|
8837
8837
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8838
8838
|
exports.requireNx = void 0;
|
|
@@ -8852,9 +8852,9 @@ var require_nx = __commonJS({
|
|
|
8852
8852
|
}
|
|
8853
8853
|
});
|
|
8854
8854
|
|
|
8855
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
8855
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/format-files.js
|
|
8856
8856
|
var require_format_files = __commonJS({
|
|
8857
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
8857
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/format-files.js"(exports) {
|
|
8858
8858
|
"use strict";
|
|
8859
8859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8860
8860
|
exports.formatFiles = void 0;
|
|
@@ -8940,9 +8940,9 @@ var require_format_files = __commonJS({
|
|
|
8940
8940
|
}
|
|
8941
8941
|
});
|
|
8942
8942
|
|
|
8943
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
8943
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/binary-extensions.js
|
|
8944
8944
|
var require_binary_extensions = __commonJS({
|
|
8945
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
8945
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/binary-extensions.js"(exports) {
|
|
8946
8946
|
"use strict";
|
|
8947
8947
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8948
8948
|
exports.isBinaryPath = void 0;
|
|
@@ -9940,9 +9940,9 @@ var require_ejs = __commonJS({
|
|
|
9940
9940
|
}
|
|
9941
9941
|
});
|
|
9942
9942
|
|
|
9943
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
9943
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/generate-files.js
|
|
9944
9944
|
var require_generate_files = __commonJS({
|
|
9945
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
9945
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/generate-files.js"(exports) {
|
|
9946
9946
|
"use strict";
|
|
9947
9947
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9948
9948
|
exports.generateFiles = void 0;
|
|
@@ -10011,9 +10011,9 @@ var require_generate_files = __commonJS({
|
|
|
10011
10011
|
}
|
|
10012
10012
|
});
|
|
10013
10013
|
|
|
10014
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
10014
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/versions.js
|
|
10015
10015
|
var require_versions = __commonJS({
|
|
10016
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
10016
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/versions.js"(exports) {
|
|
10017
10017
|
"use strict";
|
|
10018
10018
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10019
10019
|
exports.typescriptVersion = void 0;
|
|
@@ -12449,9 +12449,9 @@ var require_semver2 = __commonJS({
|
|
|
12449
12449
|
}
|
|
12450
12450
|
});
|
|
12451
12451
|
|
|
12452
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
12452
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/tasks/install-packages-task.js
|
|
12453
12453
|
var require_install_packages_task = __commonJS({
|
|
12454
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
12454
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/tasks/install-packages-task.js"(exports) {
|
|
12455
12455
|
"use strict";
|
|
12456
12456
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12457
12457
|
exports.installPackagesTask = void 0;
|
|
@@ -15470,9 +15470,9 @@ var require_tmp = __commonJS({
|
|
|
15470
15470
|
}
|
|
15471
15471
|
});
|
|
15472
15472
|
|
|
15473
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
15473
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/package-json.js
|
|
15474
15474
|
var require_package_json = __commonJS({
|
|
15475
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
15475
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/package-json.js"(exports) {
|
|
15476
15476
|
"use strict";
|
|
15477
15477
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15478
15478
|
exports.NX_VERSION = exports.ensurePackage = exports.removeDependenciesFromPackageJson = exports.addDependenciesToPackageJson = void 0;
|
|
@@ -15749,9 +15749,9 @@ var require_package_json = __commonJS({
|
|
|
15749
15749
|
}
|
|
15750
15750
|
});
|
|
15751
15751
|
|
|
15752
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
15752
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/to-js.js
|
|
15753
15753
|
var require_to_js = __commonJS({
|
|
15754
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
15754
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/to-js.js"(exports) {
|
|
15755
15755
|
"use strict";
|
|
15756
15756
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15757
15757
|
exports.toJS = void 0;
|
|
@@ -15774,9 +15774,9 @@ var require_to_js = __commonJS({
|
|
|
15774
15774
|
}
|
|
15775
15775
|
});
|
|
15776
15776
|
|
|
15777
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
15777
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js
|
|
15778
15778
|
var require_update_ts_configs_to_js = __commonJS({
|
|
15779
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
15779
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js"(exports) {
|
|
15780
15780
|
"use strict";
|
|
15781
15781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15782
15782
|
exports.updateTsConfigsToJs = void 0;
|
|
@@ -15828,9 +15828,9 @@ var require_update_ts_configs_to_js = __commonJS({
|
|
|
15828
15828
|
}
|
|
15829
15829
|
});
|
|
15830
15830
|
|
|
15831
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
15831
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js
|
|
15832
15832
|
var require_run_tasks_in_serial = __commonJS({
|
|
15833
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
15833
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js"(exports) {
|
|
15834
15834
|
"use strict";
|
|
15835
15835
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15836
15836
|
exports.runTasksInSerial = void 0;
|
|
@@ -16218,9 +16218,9 @@ var require_ignore = __commonJS({
|
|
|
16218
16218
|
}
|
|
16219
16219
|
});
|
|
16220
16220
|
|
|
16221
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16221
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js
|
|
16222
16222
|
var require_visit_not_ignored_files = __commonJS({
|
|
16223
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16223
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js"(exports) {
|
|
16224
16224
|
"use strict";
|
|
16225
16225
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16226
16226
|
exports.visitNotIgnoredFiles = void 0;
|
|
@@ -16260,9 +16260,9 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
16260
16260
|
}
|
|
16261
16261
|
});
|
|
16262
16262
|
|
|
16263
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16263
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/executors/parse-target-string.js
|
|
16264
16264
|
var require_parse_target_string = __commonJS({
|
|
16265
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16265
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/executors/parse-target-string.js"(exports) {
|
|
16266
16266
|
"use strict";
|
|
16267
16267
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16268
16268
|
exports.targetToTargetString = exports.parseTargetString = void 0;
|
|
@@ -16301,9 +16301,9 @@ var require_parse_target_string = __commonJS({
|
|
|
16301
16301
|
}
|
|
16302
16302
|
});
|
|
16303
16303
|
|
|
16304
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16304
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/executors/read-target-options.js
|
|
16305
16305
|
var require_read_target_options = __commonJS({
|
|
16306
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16306
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/executors/read-target-options.js"(exports) {
|
|
16307
16307
|
"use strict";
|
|
16308
16308
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16309
16309
|
exports.readTargetOptions = void 0;
|
|
@@ -16333,9 +16333,9 @@ var require_read_target_options = __commonJS({
|
|
|
16333
16333
|
}
|
|
16334
16334
|
});
|
|
16335
16335
|
|
|
16336
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16336
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/names.js
|
|
16337
16337
|
var require_names = __commonJS({
|
|
16338
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16338
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/names.js"(exports) {
|
|
16339
16339
|
"use strict";
|
|
16340
16340
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16341
16341
|
exports.names = void 0;
|
|
@@ -16368,9 +16368,9 @@ var require_names = __commonJS({
|
|
|
16368
16368
|
}
|
|
16369
16369
|
});
|
|
16370
16370
|
|
|
16371
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16371
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/get-workspace-layout.js
|
|
16372
16372
|
var require_get_workspace_layout = __commonJS({
|
|
16373
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16373
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/get-workspace-layout.js"(exports) {
|
|
16374
16374
|
"use strict";
|
|
16375
16375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16376
16376
|
exports.extractLayoutDirectory = exports.getWorkspaceLayout = void 0;
|
|
@@ -16410,9 +16410,9 @@ var require_get_workspace_layout = __commonJS({
|
|
|
16410
16410
|
}
|
|
16411
16411
|
});
|
|
16412
16412
|
|
|
16413
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16413
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/string-change.js
|
|
16414
16414
|
var require_string_change = __commonJS({
|
|
16415
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16415
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/string-change.js"(exports) {
|
|
16416
16416
|
"use strict";
|
|
16417
16417
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16418
16418
|
exports.applyChangesToString = exports.ChangeType = void 0;
|
|
@@ -16489,9 +16489,9 @@ var require_string_change = __commonJS({
|
|
|
16489
16489
|
}
|
|
16490
16490
|
});
|
|
16491
16491
|
|
|
16492
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16492
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/offset-from-root.js
|
|
16493
16493
|
var require_offset_from_root = __commonJS({
|
|
16494
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16494
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/offset-from-root.js"(exports) {
|
|
16495
16495
|
"use strict";
|
|
16496
16496
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16497
16497
|
exports.offsetFromRoot = void 0;
|
|
@@ -16512,9 +16512,9 @@ var require_offset_from_root = __commonJS({
|
|
|
16512
16512
|
}
|
|
16513
16513
|
});
|
|
16514
16514
|
|
|
16515
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16515
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js
|
|
16516
16516
|
var require_invoke_nx_generator = __commonJS({
|
|
16517
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
16517
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js"(exports) {
|
|
16518
16518
|
"use strict";
|
|
16519
16519
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16520
16520
|
exports.convertNxGenerator = void 0;
|
|
@@ -26268,9 +26268,9 @@ var require_cjs = __commonJS({
|
|
|
26268
26268
|
}
|
|
26269
26269
|
});
|
|
26270
26270
|
|
|
26271
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
26271
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/convert-nx-executor.js
|
|
26272
26272
|
var require_convert_nx_executor = __commonJS({
|
|
26273
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
26273
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/convert-nx-executor.js"(exports) {
|
|
26274
26274
|
"use strict";
|
|
26275
26275
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26276
26276
|
exports.convertNxExecutor = void 0;
|
|
@@ -26349,9 +26349,9 @@ var require_convert_nx_executor = __commonJS({
|
|
|
26349
26349
|
}
|
|
26350
26350
|
});
|
|
26351
26351
|
|
|
26352
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
26352
|
+
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/move-dir.js
|
|
26353
26353
|
var require_move_dir = __commonJS({
|
|
26354
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.
|
|
26354
|
+
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/move-dir.js"(exports) {
|
|
26355
26355
|
"use strict";
|
|
26356
26356
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26357
26357
|
exports.moveFilesToNewDirectory = void 0;
|
|
@@ -26378,1632 +26378,48 @@ var require_move_dir = __commonJS({
|
|
|
26378
26378
|
}
|
|
26379
26379
|
});
|
|
26380
26380
|
|
|
26381
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.1.3/node_modules/@nx/devkit/public-api.js
|
|
26382
|
-
var require_public_api = __commonJS({
|
|
26383
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.1.3/node_modules/@nx/devkit/public-api.js"(exports) {
|
|
26384
|
-
"use strict";
|
|
26385
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26386
|
-
exports.moveFilesToNewDirectory = exports.convertNxExecutor = exports.convertNxGenerator = exports.offsetFromRoot = exports.ChangeType = exports.applyChangesToString = exports.extractLayoutDirectory = exports.getWorkspaceLayout = exports.names = exports.installPackagesTask = exports.NX_VERSION = exports.removeDependenciesFromPackageJson = exports.ensurePackage = exports.addDependenciesToPackageJson = exports.readTargetOptions = exports.targetToTargetString = exports.parseTargetString = exports.visitNotIgnoredFiles = exports.runTasksInSerial = exports.updateTsConfigsToJs = exports.toJS = exports.generateFiles = exports.formatFiles = void 0;
|
|
26387
|
-
var format_files_1 = require_format_files();
|
|
26388
|
-
Object.defineProperty(exports, "formatFiles", { enumerable: true, get: function() {
|
|
26389
|
-
return format_files_1.formatFiles;
|
|
26390
|
-
} });
|
|
26391
|
-
var generate_files_1 = require_generate_files();
|
|
26392
|
-
Object.defineProperty(exports, "generateFiles", { enumerable: true, get: function() {
|
|
26393
|
-
return generate_files_1.generateFiles;
|
|
26394
|
-
} });
|
|
26395
|
-
var to_js_1 = require_to_js();
|
|
26396
|
-
Object.defineProperty(exports, "toJS", { enumerable: true, get: function() {
|
|
26397
|
-
return to_js_1.toJS;
|
|
26398
|
-
} });
|
|
26399
|
-
var update_ts_configs_to_js_1 = require_update_ts_configs_to_js();
|
|
26400
|
-
Object.defineProperty(exports, "updateTsConfigsToJs", { enumerable: true, get: function() {
|
|
26401
|
-
return update_ts_configs_to_js_1.updateTsConfigsToJs;
|
|
26402
|
-
} });
|
|
26403
|
-
var run_tasks_in_serial_1 = require_run_tasks_in_serial();
|
|
26404
|
-
Object.defineProperty(exports, "runTasksInSerial", { enumerable: true, get: function() {
|
|
26405
|
-
return run_tasks_in_serial_1.runTasksInSerial;
|
|
26406
|
-
} });
|
|
26407
|
-
var visit_not_ignored_files_1 = require_visit_not_ignored_files();
|
|
26408
|
-
Object.defineProperty(exports, "visitNotIgnoredFiles", { enumerable: true, get: function() {
|
|
26409
|
-
return visit_not_ignored_files_1.visitNotIgnoredFiles;
|
|
26410
|
-
} });
|
|
26411
|
-
var parse_target_string_1 = require_parse_target_string();
|
|
26412
|
-
Object.defineProperty(exports, "parseTargetString", { enumerable: true, get: function() {
|
|
26413
|
-
return parse_target_string_1.parseTargetString;
|
|
26414
|
-
} });
|
|
26415
|
-
Object.defineProperty(exports, "targetToTargetString", { enumerable: true, get: function() {
|
|
26416
|
-
return parse_target_string_1.targetToTargetString;
|
|
26417
|
-
} });
|
|
26418
|
-
var read_target_options_1 = require_read_target_options();
|
|
26419
|
-
Object.defineProperty(exports, "readTargetOptions", { enumerable: true, get: function() {
|
|
26420
|
-
return read_target_options_1.readTargetOptions;
|
|
26421
|
-
} });
|
|
26422
|
-
var package_json_1 = require_package_json();
|
|
26423
|
-
Object.defineProperty(exports, "addDependenciesToPackageJson", { enumerable: true, get: function() {
|
|
26424
|
-
return package_json_1.addDependenciesToPackageJson;
|
|
26425
|
-
} });
|
|
26426
|
-
Object.defineProperty(exports, "ensurePackage", { enumerable: true, get: function() {
|
|
26427
|
-
return package_json_1.ensurePackage;
|
|
26428
|
-
} });
|
|
26429
|
-
Object.defineProperty(exports, "removeDependenciesFromPackageJson", { enumerable: true, get: function() {
|
|
26430
|
-
return package_json_1.removeDependenciesFromPackageJson;
|
|
26431
|
-
} });
|
|
26432
|
-
Object.defineProperty(exports, "NX_VERSION", { enumerable: true, get: function() {
|
|
26433
|
-
return package_json_1.NX_VERSION;
|
|
26434
|
-
} });
|
|
26435
|
-
var install_packages_task_1 = require_install_packages_task();
|
|
26436
|
-
Object.defineProperty(exports, "installPackagesTask", { enumerable: true, get: function() {
|
|
26437
|
-
return install_packages_task_1.installPackagesTask;
|
|
26438
|
-
} });
|
|
26439
|
-
var names_1 = require_names();
|
|
26440
|
-
Object.defineProperty(exports, "names", { enumerable: true, get: function() {
|
|
26441
|
-
return names_1.names;
|
|
26442
|
-
} });
|
|
26443
|
-
var get_workspace_layout_1 = require_get_workspace_layout();
|
|
26444
|
-
Object.defineProperty(exports, "getWorkspaceLayout", { enumerable: true, get: function() {
|
|
26445
|
-
return get_workspace_layout_1.getWorkspaceLayout;
|
|
26446
|
-
} });
|
|
26447
|
-
Object.defineProperty(exports, "extractLayoutDirectory", { enumerable: true, get: function() {
|
|
26448
|
-
return get_workspace_layout_1.extractLayoutDirectory;
|
|
26449
|
-
} });
|
|
26450
|
-
var string_change_1 = require_string_change();
|
|
26451
|
-
Object.defineProperty(exports, "applyChangesToString", { enumerable: true, get: function() {
|
|
26452
|
-
return string_change_1.applyChangesToString;
|
|
26453
|
-
} });
|
|
26454
|
-
Object.defineProperty(exports, "ChangeType", { enumerable: true, get: function() {
|
|
26455
|
-
return string_change_1.ChangeType;
|
|
26456
|
-
} });
|
|
26457
|
-
var offset_from_root_1 = require_offset_from_root();
|
|
26458
|
-
Object.defineProperty(exports, "offsetFromRoot", { enumerable: true, get: function() {
|
|
26459
|
-
return offset_from_root_1.offsetFromRoot;
|
|
26460
|
-
} });
|
|
26461
|
-
var invoke_nx_generator_1 = require_invoke_nx_generator();
|
|
26462
|
-
Object.defineProperty(exports, "convertNxGenerator", { enumerable: true, get: function() {
|
|
26463
|
-
return invoke_nx_generator_1.convertNxGenerator;
|
|
26464
|
-
} });
|
|
26465
|
-
var convert_nx_executor_1 = require_convert_nx_executor();
|
|
26466
|
-
Object.defineProperty(exports, "convertNxExecutor", { enumerable: true, get: function() {
|
|
26467
|
-
return convert_nx_executor_1.convertNxExecutor;
|
|
26468
|
-
} });
|
|
26469
|
-
var move_dir_1 = require_move_dir();
|
|
26470
|
-
Object.defineProperty(exports, "moveFilesToNewDirectory", { enumerable: true, get: function() {
|
|
26471
|
-
return move_dir_1.moveFilesToNewDirectory;
|
|
26472
|
-
} });
|
|
26473
|
-
}
|
|
26474
|
-
});
|
|
26475
|
-
|
|
26476
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.1.3/node_modules/@nx/devkit/index.js
|
|
26477
|
-
var require_devkit = __commonJS({
|
|
26478
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.1.3/node_modules/@nx/devkit/index.js"(exports) {
|
|
26479
|
-
"use strict";
|
|
26480
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26481
|
-
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
26482
|
-
tslib_1.__exportStar(require("nx/src/devkit-exports"), exports);
|
|
26483
|
-
tslib_1.__exportStar(require_public_api(), exports);
|
|
26484
|
-
}
|
|
26485
|
-
});
|
|
26486
|
-
|
|
26487
|
-
// node_modules/.pnpm/@nx+esbuild@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.10.4_esbuild@0.19_5m2o64i233qrdrxmr3y2ud6p74/node_modules/@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies.js
|
|
26488
|
-
var require_get_extra_dependencies = __commonJS({
|
|
26489
|
-
"node_modules/.pnpm/@nx+esbuild@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.10.4_esbuild@0.19_5m2o64i233qrdrxmr3y2ud6p74/node_modules/@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies.js"(exports) {
|
|
26490
|
-
"use strict";
|
|
26491
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26492
|
-
exports.getExtraDependencies = void 0;
|
|
26493
|
-
function getExtraDependencies2(projectName, graph) {
|
|
26494
|
-
const deps = /* @__PURE__ */ new Map();
|
|
26495
|
-
recur(projectName);
|
|
26496
|
-
function recur(currProjectName) {
|
|
26497
|
-
const allDeps = graph.dependencies[currProjectName];
|
|
26498
|
-
const externalDeps = allDeps.reduce((acc, node) => {
|
|
26499
|
-
const found = graph.externalNodes[node.target];
|
|
26500
|
-
if (found)
|
|
26501
|
-
acc.push(found);
|
|
26502
|
-
return acc;
|
|
26503
|
-
}, []);
|
|
26504
|
-
const internalDeps = allDeps.reduce((acc, node) => {
|
|
26505
|
-
const found = graph.nodes[node.target];
|
|
26506
|
-
if (found)
|
|
26507
|
-
acc.push(found);
|
|
26508
|
-
return acc;
|
|
26509
|
-
}, []);
|
|
26510
|
-
for (const externalDep of externalDeps) {
|
|
26511
|
-
deps.set(externalDep.name, {
|
|
26512
|
-
name: externalDep.name,
|
|
26513
|
-
outputs: [],
|
|
26514
|
-
node: externalDep
|
|
26515
|
-
});
|
|
26516
|
-
}
|
|
26517
|
-
for (const internalDep of internalDeps) {
|
|
26518
|
-
recur(internalDep.name);
|
|
26519
|
-
}
|
|
26520
|
-
}
|
|
26521
|
-
return Array.from(deps.values());
|
|
26522
|
-
}
|
|
26523
|
-
exports.getExtraDependencies = getExtraDependencies2;
|
|
26524
|
-
}
|
|
26525
|
-
});
|
|
26526
|
-
|
|
26527
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/nx.js
|
|
26528
|
-
var require_nx2 = __commonJS({
|
|
26529
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/nx.js"(exports) {
|
|
26530
|
-
"use strict";
|
|
26531
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26532
|
-
exports.requireNx = void 0;
|
|
26533
|
-
function requireNx() {
|
|
26534
|
-
let result = { ...require("nx/src/devkit-exports") };
|
|
26535
|
-
try {
|
|
26536
|
-
result = {
|
|
26537
|
-
...result,
|
|
26538
|
-
// Remove in Nx v18, devkit should not support Nx v16.0.2 at that point.
|
|
26539
|
-
...require("nx/src/devkit-internals")
|
|
26540
|
-
};
|
|
26541
|
-
} catch {
|
|
26542
|
-
}
|
|
26543
|
-
return result;
|
|
26544
|
-
}
|
|
26545
|
-
exports.requireNx = requireNx;
|
|
26546
|
-
}
|
|
26547
|
-
});
|
|
26548
|
-
|
|
26549
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/format-files.js
|
|
26550
|
-
var require_format_files2 = __commonJS({
|
|
26551
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/format-files.js"(exports) {
|
|
26552
|
-
"use strict";
|
|
26553
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26554
|
-
exports.formatFiles = void 0;
|
|
26555
|
-
var path3 = require("path");
|
|
26556
|
-
var nx_1 = require_nx2();
|
|
26557
|
-
var { updateJson: updateJson3, readJson: readJson2, sortObjectByKeys } = (0, nx_1.requireNx)();
|
|
26558
|
-
sortObjectByKeys = sortObjectByKeys ?? require("nx/src/utils/object-sort").sortObjectByKeys;
|
|
26559
|
-
async function formatFiles6(tree) {
|
|
26560
|
-
let prettier;
|
|
26561
|
-
try {
|
|
26562
|
-
prettier = await Promise.resolve().then(() => require("prettier"));
|
|
26563
|
-
} catch {
|
|
26564
|
-
}
|
|
26565
|
-
sortTsConfig(tree);
|
|
26566
|
-
if (!prettier)
|
|
26567
|
-
return;
|
|
26568
|
-
const files = new Set(tree.listChanges().filter((file) => file.type !== "DELETE"));
|
|
26569
|
-
const changedPrettierInTree = getChangedPrettierConfigInTree(tree);
|
|
26570
|
-
await Promise.all(Array.from(files).map(async (file) => {
|
|
26571
|
-
try {
|
|
26572
|
-
const systemPath = path3.join(tree.root, file.path);
|
|
26573
|
-
const resolvedOptions = await prettier.resolveConfig(systemPath, {
|
|
26574
|
-
editorconfig: true
|
|
26575
|
-
});
|
|
26576
|
-
const options = {
|
|
26577
|
-
...resolvedOptions,
|
|
26578
|
-
...changedPrettierInTree,
|
|
26579
|
-
filepath: systemPath
|
|
26580
|
-
};
|
|
26581
|
-
if (file.path.endsWith(".swcrc")) {
|
|
26582
|
-
options.parser = "json";
|
|
26583
|
-
}
|
|
26584
|
-
const support = await prettier.getFileInfo(systemPath, options);
|
|
26585
|
-
if (support.ignored || !support.inferredParser) {
|
|
26586
|
-
return;
|
|
26587
|
-
}
|
|
26588
|
-
tree.write(
|
|
26589
|
-
file.path,
|
|
26590
|
-
// In prettier v3 the format result is a promise
|
|
26591
|
-
await prettier.format(file.content.toString("utf-8"), options)
|
|
26592
|
-
);
|
|
26593
|
-
} catch (e) {
|
|
26594
|
-
console.warn(`Could not format ${file.path}. Error: "${e.message}"`);
|
|
26595
|
-
}
|
|
26596
|
-
}));
|
|
26597
|
-
}
|
|
26598
|
-
exports.formatFiles = formatFiles6;
|
|
26599
|
-
function sortTsConfig(tree) {
|
|
26600
|
-
try {
|
|
26601
|
-
const tsConfigPath = getRootTsConfigPath(tree);
|
|
26602
|
-
if (!tsConfigPath) {
|
|
26603
|
-
return;
|
|
26604
|
-
}
|
|
26605
|
-
updateJson3(tree, tsConfigPath, (tsconfig) => ({
|
|
26606
|
-
...tsconfig,
|
|
26607
|
-
compilerOptions: {
|
|
26608
|
-
...tsconfig.compilerOptions,
|
|
26609
|
-
paths: sortObjectByKeys(tsconfig.compilerOptions.paths)
|
|
26610
|
-
}
|
|
26611
|
-
}));
|
|
26612
|
-
} catch (e) {
|
|
26613
|
-
}
|
|
26614
|
-
}
|
|
26615
|
-
function getRootTsConfigPath(tree) {
|
|
26616
|
-
for (const path4 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
26617
|
-
if (tree.exists(path4)) {
|
|
26618
|
-
return path4;
|
|
26619
|
-
}
|
|
26620
|
-
}
|
|
26621
|
-
return null;
|
|
26622
|
-
}
|
|
26623
|
-
function getChangedPrettierConfigInTree(tree) {
|
|
26624
|
-
if (tree.listChanges().find((file) => file.path === ".prettierrc")) {
|
|
26625
|
-
try {
|
|
26626
|
-
return readJson2(tree, ".prettierrc");
|
|
26627
|
-
} catch {
|
|
26628
|
-
return null;
|
|
26629
|
-
}
|
|
26630
|
-
} else {
|
|
26631
|
-
return null;
|
|
26632
|
-
}
|
|
26633
|
-
}
|
|
26634
|
-
}
|
|
26635
|
-
});
|
|
26636
|
-
|
|
26637
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/binary-extensions.js
|
|
26638
|
-
var require_binary_extensions2 = __commonJS({
|
|
26639
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/binary-extensions.js"(exports) {
|
|
26640
|
-
"use strict";
|
|
26641
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26642
|
-
exports.isBinaryPath = void 0;
|
|
26643
|
-
var path_1 = require("path");
|
|
26644
|
-
var binaryExtensions = /* @__PURE__ */ new Set([
|
|
26645
|
-
// types originally from https://github.com/sindresorhus/binary-extensions/blob/40e44b510d87a63dcf42300bc8fbcb105f45a61c/binary-extensions.json
|
|
26646
|
-
".3dm",
|
|
26647
|
-
".3ds",
|
|
26648
|
-
".3g2",
|
|
26649
|
-
".3gp",
|
|
26650
|
-
".7z",
|
|
26651
|
-
".a",
|
|
26652
|
-
".aac",
|
|
26653
|
-
".adp",
|
|
26654
|
-
".ai",
|
|
26655
|
-
".aif",
|
|
26656
|
-
".aiff",
|
|
26657
|
-
".alz",
|
|
26658
|
-
".ape",
|
|
26659
|
-
".apk",
|
|
26660
|
-
".appimage",
|
|
26661
|
-
".ar",
|
|
26662
|
-
".arj",
|
|
26663
|
-
".asf",
|
|
26664
|
-
".au",
|
|
26665
|
-
".avi",
|
|
26666
|
-
".bak",
|
|
26667
|
-
".baml",
|
|
26668
|
-
".bh",
|
|
26669
|
-
".bin",
|
|
26670
|
-
".bk",
|
|
26671
|
-
".bmp",
|
|
26672
|
-
".btif",
|
|
26673
|
-
".bz2",
|
|
26674
|
-
".bzip2",
|
|
26675
|
-
".cab",
|
|
26676
|
-
".caf",
|
|
26677
|
-
".cgm",
|
|
26678
|
-
".class",
|
|
26679
|
-
".cmx",
|
|
26680
|
-
".cpio",
|
|
26681
|
-
".cr2",
|
|
26682
|
-
".cur",
|
|
26683
|
-
".dat",
|
|
26684
|
-
".dcm",
|
|
26685
|
-
".deb",
|
|
26686
|
-
".dex",
|
|
26687
|
-
".djvu",
|
|
26688
|
-
".dll",
|
|
26689
|
-
".dmg",
|
|
26690
|
-
".dng",
|
|
26691
|
-
".doc",
|
|
26692
|
-
".docm",
|
|
26693
|
-
".docx",
|
|
26694
|
-
".dot",
|
|
26695
|
-
".dotm",
|
|
26696
|
-
".dra",
|
|
26697
|
-
".DS_Store",
|
|
26698
|
-
".dsk",
|
|
26699
|
-
".dts",
|
|
26700
|
-
".dtshd",
|
|
26701
|
-
".dvb",
|
|
26702
|
-
".dwg",
|
|
26703
|
-
".dxf",
|
|
26704
|
-
".ecelp4800",
|
|
26705
|
-
".ecelp7470",
|
|
26706
|
-
".ecelp9600",
|
|
26707
|
-
".egg",
|
|
26708
|
-
".eol",
|
|
26709
|
-
".eot",
|
|
26710
|
-
".epub",
|
|
26711
|
-
".exe",
|
|
26712
|
-
".f4v",
|
|
26713
|
-
".fbs",
|
|
26714
|
-
".fh",
|
|
26715
|
-
".fla",
|
|
26716
|
-
".flac",
|
|
26717
|
-
".flatpak",
|
|
26718
|
-
".fli",
|
|
26719
|
-
".flv",
|
|
26720
|
-
".fpx",
|
|
26721
|
-
".fst",
|
|
26722
|
-
".fvt",
|
|
26723
|
-
".g3",
|
|
26724
|
-
".gh",
|
|
26725
|
-
".gif",
|
|
26726
|
-
".glb",
|
|
26727
|
-
".graffle",
|
|
26728
|
-
".gz",
|
|
26729
|
-
".gzip",
|
|
26730
|
-
".h261",
|
|
26731
|
-
".h263",
|
|
26732
|
-
".h264",
|
|
26733
|
-
".icns",
|
|
26734
|
-
".ico",
|
|
26735
|
-
".ief",
|
|
26736
|
-
".img",
|
|
26737
|
-
".ipa",
|
|
26738
|
-
".iso",
|
|
26739
|
-
".jar",
|
|
26740
|
-
".jpeg",
|
|
26741
|
-
".jpg",
|
|
26742
|
-
".jpgv",
|
|
26743
|
-
".jpm",
|
|
26744
|
-
".jxr",
|
|
26745
|
-
".key",
|
|
26746
|
-
".keystore",
|
|
26747
|
-
".ktx",
|
|
26748
|
-
".lha",
|
|
26749
|
-
".lib",
|
|
26750
|
-
".lvp",
|
|
26751
|
-
".lz",
|
|
26752
|
-
".lzh",
|
|
26753
|
-
".lzma",
|
|
26754
|
-
".lzo",
|
|
26755
|
-
".m3u",
|
|
26756
|
-
".m4a",
|
|
26757
|
-
".m4v",
|
|
26758
|
-
".mar",
|
|
26759
|
-
".mdi",
|
|
26760
|
-
".mht",
|
|
26761
|
-
".mid",
|
|
26762
|
-
".midi",
|
|
26763
|
-
".mj2",
|
|
26764
|
-
".mka",
|
|
26765
|
-
".mkv",
|
|
26766
|
-
".mmr",
|
|
26767
|
-
".mng",
|
|
26768
|
-
".mobi",
|
|
26769
|
-
".mov",
|
|
26770
|
-
".movie",
|
|
26771
|
-
".mp3",
|
|
26772
|
-
".mp4",
|
|
26773
|
-
".mp4a",
|
|
26774
|
-
".mpeg",
|
|
26775
|
-
".mpg",
|
|
26776
|
-
".mpga",
|
|
26777
|
-
".msi",
|
|
26778
|
-
".mxu",
|
|
26779
|
-
".nef",
|
|
26780
|
-
".npx",
|
|
26781
|
-
".numbers",
|
|
26782
|
-
".nupkg",
|
|
26783
|
-
".o",
|
|
26784
|
-
".odp",
|
|
26785
|
-
".ods",
|
|
26786
|
-
".odt",
|
|
26787
|
-
".oga",
|
|
26788
|
-
".ogg",
|
|
26789
|
-
".ogv",
|
|
26790
|
-
".otf",
|
|
26791
|
-
".ott",
|
|
26792
|
-
".pages",
|
|
26793
|
-
".pbm",
|
|
26794
|
-
".pbf",
|
|
26795
|
-
".pcx",
|
|
26796
|
-
".pdb",
|
|
26797
|
-
".pdf",
|
|
26798
|
-
".pea",
|
|
26799
|
-
".pgm",
|
|
26800
|
-
".pic",
|
|
26801
|
-
".png",
|
|
26802
|
-
".pnm",
|
|
26803
|
-
".pot",
|
|
26804
|
-
".potm",
|
|
26805
|
-
".potx",
|
|
26806
|
-
".ppa",
|
|
26807
|
-
".ppam",
|
|
26808
|
-
".ppm",
|
|
26809
|
-
".pps",
|
|
26810
|
-
".ppsm",
|
|
26811
|
-
".ppsx",
|
|
26812
|
-
".ppt",
|
|
26813
|
-
".pptm",
|
|
26814
|
-
".pptx",
|
|
26815
|
-
".psd",
|
|
26816
|
-
".pxd",
|
|
26817
|
-
".pxz",
|
|
26818
|
-
".pya",
|
|
26819
|
-
".pyc",
|
|
26820
|
-
".pyo",
|
|
26821
|
-
".pyv",
|
|
26822
|
-
".qt",
|
|
26823
|
-
".rar",
|
|
26824
|
-
".ras",
|
|
26825
|
-
".raw",
|
|
26826
|
-
".resources",
|
|
26827
|
-
".rgb",
|
|
26828
|
-
".rip",
|
|
26829
|
-
".rlc",
|
|
26830
|
-
".rmf",
|
|
26831
|
-
".rmvb",
|
|
26832
|
-
".rpm",
|
|
26833
|
-
".rtf",
|
|
26834
|
-
".rz",
|
|
26835
|
-
".s3m",
|
|
26836
|
-
".s7z",
|
|
26837
|
-
".scpt",
|
|
26838
|
-
".sgi",
|
|
26839
|
-
".shar",
|
|
26840
|
-
".snap",
|
|
26841
|
-
".sil",
|
|
26842
|
-
".sketch",
|
|
26843
|
-
".slk",
|
|
26844
|
-
".smv",
|
|
26845
|
-
".snk",
|
|
26846
|
-
".so",
|
|
26847
|
-
".stl",
|
|
26848
|
-
".suo",
|
|
26849
|
-
".sub",
|
|
26850
|
-
".swf",
|
|
26851
|
-
".tar",
|
|
26852
|
-
".tbz",
|
|
26853
|
-
".tbz2",
|
|
26854
|
-
".tga",
|
|
26855
|
-
".tgz",
|
|
26856
|
-
".thmx",
|
|
26857
|
-
".tif",
|
|
26858
|
-
".tiff",
|
|
26859
|
-
".tlz",
|
|
26860
|
-
".ttc",
|
|
26861
|
-
".ttf",
|
|
26862
|
-
".txz",
|
|
26863
|
-
".udf",
|
|
26864
|
-
".uvh",
|
|
26865
|
-
".uvi",
|
|
26866
|
-
".uvm",
|
|
26867
|
-
".uvp",
|
|
26868
|
-
".uvs",
|
|
26869
|
-
".uvu",
|
|
26870
|
-
".viv",
|
|
26871
|
-
".vob",
|
|
26872
|
-
".war",
|
|
26873
|
-
".wav",
|
|
26874
|
-
".wax",
|
|
26875
|
-
".wbmp",
|
|
26876
|
-
".wdp",
|
|
26877
|
-
".weba",
|
|
26878
|
-
".webm",
|
|
26879
|
-
".webp",
|
|
26880
|
-
".whl",
|
|
26881
|
-
".wim",
|
|
26882
|
-
".wm",
|
|
26883
|
-
".wma",
|
|
26884
|
-
".wmv",
|
|
26885
|
-
".wmx",
|
|
26886
|
-
".woff",
|
|
26887
|
-
".woff2",
|
|
26888
|
-
".wrm",
|
|
26889
|
-
".wvx",
|
|
26890
|
-
".xbm",
|
|
26891
|
-
".xif",
|
|
26892
|
-
".xla",
|
|
26893
|
-
".xlam",
|
|
26894
|
-
".xls",
|
|
26895
|
-
".xlsb",
|
|
26896
|
-
".xlsm",
|
|
26897
|
-
".xlsx",
|
|
26898
|
-
".xlt",
|
|
26899
|
-
".xltm",
|
|
26900
|
-
".xltx",
|
|
26901
|
-
".xm",
|
|
26902
|
-
".xmind",
|
|
26903
|
-
".xpi",
|
|
26904
|
-
".xpm",
|
|
26905
|
-
".xwd",
|
|
26906
|
-
".xz",
|
|
26907
|
-
".z",
|
|
26908
|
-
".zip",
|
|
26909
|
-
".zipx"
|
|
26910
|
-
]);
|
|
26911
|
-
function isBinaryPath(path3) {
|
|
26912
|
-
return binaryExtensions.has((0, path_1.extname)(path3).toLowerCase());
|
|
26913
|
-
}
|
|
26914
|
-
exports.isBinaryPath = isBinaryPath;
|
|
26915
|
-
}
|
|
26916
|
-
});
|
|
26917
|
-
|
|
26918
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/generate-files.js
|
|
26919
|
-
var require_generate_files2 = __commonJS({
|
|
26920
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/generate-files.js"(exports) {
|
|
26921
|
-
"use strict";
|
|
26922
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26923
|
-
exports.generateFiles = void 0;
|
|
26924
|
-
var fs_1 = require("fs");
|
|
26925
|
-
var path3 = require("path");
|
|
26926
|
-
var nx_1 = require_nx2();
|
|
26927
|
-
var binary_extensions_1 = require_binary_extensions2();
|
|
26928
|
-
var { logger } = (0, nx_1.requireNx)();
|
|
26929
|
-
function generateFiles3(tree, srcFolder, target, substitutions) {
|
|
26930
|
-
const ejs = require_ejs();
|
|
26931
|
-
const files = allFilesInDir(srcFolder);
|
|
26932
|
-
if (files.length === 0) {
|
|
26933
|
-
throw new Error(`generateFiles: No files found in "${srcFolder}". Are you sure you specified the correct path?`);
|
|
26934
|
-
} else {
|
|
26935
|
-
files.forEach((filePath) => {
|
|
26936
|
-
let newContent;
|
|
26937
|
-
const computedPath = computePath(srcFolder, target, filePath, substitutions);
|
|
26938
|
-
if ((0, binary_extensions_1.isBinaryPath)(filePath)) {
|
|
26939
|
-
newContent = (0, fs_1.readFileSync)(filePath);
|
|
26940
|
-
} else {
|
|
26941
|
-
const template = (0, fs_1.readFileSync)(filePath, "utf-8");
|
|
26942
|
-
try {
|
|
26943
|
-
newContent = ejs.render(template, substitutions, {
|
|
26944
|
-
filename: filePath
|
|
26945
|
-
});
|
|
26946
|
-
} catch (e) {
|
|
26947
|
-
logger.error(`Error in ${filePath.replace(`${tree.root}/`, "")}:`);
|
|
26948
|
-
throw e;
|
|
26949
|
-
}
|
|
26950
|
-
}
|
|
26951
|
-
tree.write(computedPath, newContent);
|
|
26952
|
-
});
|
|
26953
|
-
}
|
|
26954
|
-
}
|
|
26955
|
-
exports.generateFiles = generateFiles3;
|
|
26956
|
-
function computePath(srcFolder, target, filePath, substitutions) {
|
|
26957
|
-
const relativeFromSrcFolder = path3.relative(srcFolder, filePath);
|
|
26958
|
-
let computedPath = path3.join(target, relativeFromSrcFolder);
|
|
26959
|
-
if (computedPath.endsWith(".template")) {
|
|
26960
|
-
computedPath = computedPath.substring(0, computedPath.length - 9);
|
|
26961
|
-
}
|
|
26962
|
-
Object.entries(substitutions).forEach(([propertyName, value]) => {
|
|
26963
|
-
computedPath = computedPath.split(`__${propertyName}__`).join(value);
|
|
26964
|
-
});
|
|
26965
|
-
return computedPath;
|
|
26966
|
-
}
|
|
26967
|
-
function allFilesInDir(parent) {
|
|
26968
|
-
let res = [];
|
|
26969
|
-
try {
|
|
26970
|
-
(0, fs_1.readdirSync)(parent).forEach((c) => {
|
|
26971
|
-
const child = path3.join(parent, c);
|
|
26972
|
-
try {
|
|
26973
|
-
const s = (0, fs_1.statSync)(child);
|
|
26974
|
-
if (!s.isDirectory()) {
|
|
26975
|
-
res.push(child);
|
|
26976
|
-
} else if (s.isDirectory()) {
|
|
26977
|
-
res = [...res, ...allFilesInDir(child)];
|
|
26978
|
-
}
|
|
26979
|
-
} catch {
|
|
26980
|
-
}
|
|
26981
|
-
});
|
|
26982
|
-
} catch {
|
|
26983
|
-
}
|
|
26984
|
-
return res;
|
|
26985
|
-
}
|
|
26986
|
-
}
|
|
26987
|
-
});
|
|
26988
|
-
|
|
26989
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/versions.js
|
|
26990
|
-
var require_versions2 = __commonJS({
|
|
26991
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/versions.js"(exports) {
|
|
26992
|
-
"use strict";
|
|
26993
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26994
|
-
exports.typescriptVersion = void 0;
|
|
26995
|
-
exports.typescriptVersion = "~5.1.3";
|
|
26996
|
-
}
|
|
26997
|
-
});
|
|
26998
|
-
|
|
26999
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/tasks/install-packages-task.js
|
|
27000
|
-
var require_install_packages_task2 = __commonJS({
|
|
27001
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/tasks/install-packages-task.js"(exports) {
|
|
27002
|
-
"use strict";
|
|
27003
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27004
|
-
exports.installPackagesTask = void 0;
|
|
27005
|
-
var child_process_1 = require("child_process");
|
|
27006
|
-
var path_1 = require("path");
|
|
27007
|
-
var nx_1 = require_nx2();
|
|
27008
|
-
var { detectPackageManager, getPackageManagerCommand, joinPathFragments: joinPathFragments5 } = (0, nx_1.requireNx)();
|
|
27009
|
-
function installPackagesTask(tree, alwaysRun = false, cwd = "", packageManager = detectPackageManager(cwd)) {
|
|
27010
|
-
if (!tree.listChanges().find((f) => f.path === joinPathFragments5(cwd, "package.json")) && !alwaysRun) {
|
|
27011
|
-
return;
|
|
27012
|
-
}
|
|
27013
|
-
const packageJsonValue = tree.read(joinPathFragments5(cwd, "package.json"), "utf-8");
|
|
27014
|
-
let storedPackageJsonValue = global["__packageJsonInstallCache__"];
|
|
27015
|
-
if (storedPackageJsonValue != packageJsonValue || alwaysRun) {
|
|
27016
|
-
global["__packageJsonInstallCache__"] = packageJsonValue;
|
|
27017
|
-
const pmc = getPackageManagerCommand(packageManager);
|
|
27018
|
-
const execSyncOptions = {
|
|
27019
|
-
cwd: (0, path_1.join)(tree.root, cwd),
|
|
27020
|
-
stdio: process.env.NX_GENERATE_QUIET === "true" ? "ignore" : "inherit"
|
|
27021
|
-
};
|
|
27022
|
-
if (process.env.npm_config_registry && process.env.npm_config_registry.match(/^https:\/\/registry\.(npmjs\.org|yarnpkg\.com)/)) {
|
|
27023
|
-
delete process.env.npm_config_registry;
|
|
27024
|
-
}
|
|
27025
|
-
(0, child_process_1.execSync)(pmc.install, execSyncOptions);
|
|
27026
|
-
}
|
|
27027
|
-
}
|
|
27028
|
-
exports.installPackagesTask = installPackagesTask;
|
|
27029
|
-
}
|
|
27030
|
-
});
|
|
27031
|
-
|
|
27032
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/package-json.js
|
|
27033
|
-
var require_package_json2 = __commonJS({
|
|
27034
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/package-json.js"(exports) {
|
|
27035
|
-
"use strict";
|
|
27036
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27037
|
-
exports.NX_VERSION = exports.ensurePackage = exports.removeDependenciesFromPackageJson = exports.addDependenciesToPackageJson = void 0;
|
|
27038
|
-
var child_process_1 = require("child_process");
|
|
27039
|
-
var module_1 = require("module");
|
|
27040
|
-
var semver_1 = require_semver2();
|
|
27041
|
-
var install_packages_task_1 = require_install_packages_task2();
|
|
27042
|
-
var nx_1 = require_nx2();
|
|
27043
|
-
var tmp_1 = require_tmp();
|
|
27044
|
-
var path_1 = require("path");
|
|
27045
|
-
var fs_1 = require("fs");
|
|
27046
|
-
var { readJson: readJson2, updateJson: updateJson3, getPackageManagerCommand, workspaceRoot, detectPackageManager, createTempNpmDirectory, getPackageManagerVersion } = (0, nx_1.requireNx)();
|
|
27047
|
-
var UNIDENTIFIED_VERSION = "UNIDENTIFIED_VERSION";
|
|
27048
|
-
var NON_SEMVER_TAGS = {
|
|
27049
|
-
"*": 2,
|
|
27050
|
-
[UNIDENTIFIED_VERSION]: 2,
|
|
27051
|
-
next: 1,
|
|
27052
|
-
latest: 0,
|
|
27053
|
-
previous: -1,
|
|
27054
|
-
legacy: -2
|
|
27055
|
-
};
|
|
27056
|
-
function filterExistingDependencies(dependencies, existingAltDependencies) {
|
|
27057
|
-
if (!existingAltDependencies) {
|
|
27058
|
-
return dependencies;
|
|
27059
|
-
}
|
|
27060
|
-
return Object.keys(dependencies ?? {}).filter((d) => !existingAltDependencies[d]).reduce((acc, d) => ({ ...acc, [d]: dependencies[d] }), {});
|
|
27061
|
-
}
|
|
27062
|
-
function cleanSemver(version) {
|
|
27063
|
-
return (0, semver_1.clean)(version) ?? (0, semver_1.coerce)(version);
|
|
27064
|
-
}
|
|
27065
|
-
function isIncomingVersionGreater(incomingVersion, existingVersion) {
|
|
27066
|
-
const incomingVersionCompareBy = incomingVersion in NON_SEMVER_TAGS ? incomingVersion : cleanSemver(incomingVersion)?.toString() ?? UNIDENTIFIED_VERSION;
|
|
27067
|
-
const existingVersionCompareBy = existingVersion in NON_SEMVER_TAGS ? existingVersion : cleanSemver(existingVersion)?.toString() ?? UNIDENTIFIED_VERSION;
|
|
27068
|
-
if (incomingVersionCompareBy in NON_SEMVER_TAGS && existingVersionCompareBy in NON_SEMVER_TAGS) {
|
|
27069
|
-
return NON_SEMVER_TAGS[incomingVersionCompareBy] > NON_SEMVER_TAGS[existingVersionCompareBy];
|
|
27070
|
-
}
|
|
27071
|
-
if (incomingVersionCompareBy in NON_SEMVER_TAGS || existingVersionCompareBy in NON_SEMVER_TAGS) {
|
|
27072
|
-
return true;
|
|
27073
|
-
}
|
|
27074
|
-
return (0, semver_1.gt)(cleanSemver(incomingVersion), cleanSemver(existingVersion));
|
|
27075
|
-
}
|
|
27076
|
-
function updateExistingAltDependenciesVersion(dependencies, existingAltDependencies) {
|
|
27077
|
-
return Object.keys(existingAltDependencies || {}).filter((d) => {
|
|
27078
|
-
if (!dependencies[d]) {
|
|
27079
|
-
return false;
|
|
27080
|
-
}
|
|
27081
|
-
const incomingVersion = dependencies[d];
|
|
27082
|
-
const existingVersion = existingAltDependencies[d];
|
|
27083
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
27084
|
-
}).reduce((acc, d) => ({ ...acc, [d]: dependencies[d] }), {});
|
|
27085
|
-
}
|
|
27086
|
-
function updateExistingDependenciesVersion(dependencies, existingDependencies = {}) {
|
|
27087
|
-
return Object.keys(dependencies).filter((d) => {
|
|
27088
|
-
if (!existingDependencies[d]) {
|
|
27089
|
-
return true;
|
|
27090
|
-
}
|
|
27091
|
-
const incomingVersion = dependencies[d];
|
|
27092
|
-
const existingVersion = existingDependencies[d];
|
|
27093
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
27094
|
-
}).reduce((acc, d) => ({ ...acc, [d]: dependencies[d] }), {});
|
|
27095
|
-
}
|
|
27096
|
-
function addDependenciesToPackageJson4(tree, dependencies, devDependencies, packageJsonPath = "package.json") {
|
|
27097
|
-
const currentPackageJson = readJson2(tree, packageJsonPath);
|
|
27098
|
-
let filteredDependencies = filterExistingDependencies(dependencies, currentPackageJson.devDependencies);
|
|
27099
|
-
let filteredDevDependencies = filterExistingDependencies(devDependencies, currentPackageJson.dependencies);
|
|
27100
|
-
filteredDependencies = {
|
|
27101
|
-
...updateExistingDependenciesVersion(filteredDependencies, currentPackageJson.dependencies),
|
|
27102
|
-
...updateExistingAltDependenciesVersion(devDependencies, currentPackageJson.dependencies)
|
|
27103
|
-
};
|
|
27104
|
-
filteredDevDependencies = {
|
|
27105
|
-
...updateExistingDependenciesVersion(filteredDevDependencies, currentPackageJson.devDependencies),
|
|
27106
|
-
...updateExistingAltDependenciesVersion(dependencies, currentPackageJson.devDependencies)
|
|
27107
|
-
};
|
|
27108
|
-
filteredDependencies = removeLowerVersions(filteredDependencies, currentPackageJson.dependencies);
|
|
27109
|
-
filteredDevDependencies = removeLowerVersions(filteredDevDependencies, currentPackageJson.devDependencies);
|
|
27110
|
-
if (requiresAddingOfPackages(currentPackageJson, filteredDependencies, filteredDevDependencies)) {
|
|
27111
|
-
updateJson3(tree, packageJsonPath, (json) => {
|
|
27112
|
-
json.dependencies = {
|
|
27113
|
-
...json.dependencies || {},
|
|
27114
|
-
...filteredDependencies
|
|
27115
|
-
};
|
|
27116
|
-
json.devDependencies = {
|
|
27117
|
-
...json.devDependencies || {},
|
|
27118
|
-
...filteredDevDependencies
|
|
27119
|
-
};
|
|
27120
|
-
json.dependencies = sortObjectByKeys(json.dependencies);
|
|
27121
|
-
json.devDependencies = sortObjectByKeys(json.devDependencies);
|
|
27122
|
-
return json;
|
|
27123
|
-
});
|
|
27124
|
-
return () => {
|
|
27125
|
-
(0, install_packages_task_1.installPackagesTask)(tree);
|
|
27126
|
-
};
|
|
27127
|
-
}
|
|
27128
|
-
return () => {
|
|
27129
|
-
};
|
|
27130
|
-
}
|
|
27131
|
-
exports.addDependenciesToPackageJson = addDependenciesToPackageJson4;
|
|
27132
|
-
function removeLowerVersions(incomingDeps, existingDeps) {
|
|
27133
|
-
return Object.keys(incomingDeps).reduce((acc, d) => {
|
|
27134
|
-
if (existingDeps?.[d] && !isIncomingVersionGreater(incomingDeps[d], existingDeps[d])) {
|
|
27135
|
-
return acc;
|
|
27136
|
-
}
|
|
27137
|
-
return { ...acc, [d]: incomingDeps[d] };
|
|
27138
|
-
}, {});
|
|
27139
|
-
}
|
|
27140
|
-
function removeDependenciesFromPackageJson(tree, dependencies, devDependencies, packageJsonPath = "package.json") {
|
|
27141
|
-
const currentPackageJson = readJson2(tree, packageJsonPath);
|
|
27142
|
-
if (requiresRemovingOfPackages(currentPackageJson, dependencies, devDependencies)) {
|
|
27143
|
-
updateJson3(tree, packageJsonPath, (json) => {
|
|
27144
|
-
for (const dep of dependencies) {
|
|
27145
|
-
delete json.dependencies[dep];
|
|
27146
|
-
}
|
|
27147
|
-
for (const devDep of devDependencies) {
|
|
27148
|
-
delete json.devDependencies[devDep];
|
|
27149
|
-
}
|
|
27150
|
-
json.dependencies = sortObjectByKeys(json.dependencies);
|
|
27151
|
-
json.devDependencies = sortObjectByKeys(json.devDependencies);
|
|
27152
|
-
return json;
|
|
27153
|
-
});
|
|
27154
|
-
}
|
|
27155
|
-
return () => {
|
|
27156
|
-
(0, install_packages_task_1.installPackagesTask)(tree);
|
|
27157
|
-
};
|
|
27158
|
-
}
|
|
27159
|
-
exports.removeDependenciesFromPackageJson = removeDependenciesFromPackageJson;
|
|
27160
|
-
function sortObjectByKeys(obj) {
|
|
27161
|
-
if (!obj || typeof obj !== "object" || Array.isArray(obj)) {
|
|
27162
|
-
return obj;
|
|
27163
|
-
}
|
|
27164
|
-
return Object.keys(obj).sort().reduce((result, key) => {
|
|
27165
|
-
return {
|
|
27166
|
-
...result,
|
|
27167
|
-
[key]: obj[key]
|
|
27168
|
-
};
|
|
27169
|
-
}, {});
|
|
27170
|
-
}
|
|
27171
|
-
function requiresAddingOfPackages(packageJsonFile, deps, devDeps) {
|
|
27172
|
-
let needsDepsUpdate = false;
|
|
27173
|
-
let needsDevDepsUpdate = false;
|
|
27174
|
-
packageJsonFile.dependencies = packageJsonFile.dependencies || {};
|
|
27175
|
-
packageJsonFile.devDependencies = packageJsonFile.devDependencies || {};
|
|
27176
|
-
if (Object.keys(deps).length > 0) {
|
|
27177
|
-
needsDepsUpdate = Object.keys(deps).some((entry) => {
|
|
27178
|
-
const incomingVersion = deps[entry];
|
|
27179
|
-
if (packageJsonFile.dependencies[entry]) {
|
|
27180
|
-
const existingVersion = packageJsonFile.dependencies[entry];
|
|
27181
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
27182
|
-
}
|
|
27183
|
-
if (packageJsonFile.devDependencies[entry]) {
|
|
27184
|
-
const existingVersion = packageJsonFile.devDependencies[entry];
|
|
27185
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
27186
|
-
}
|
|
27187
|
-
return true;
|
|
27188
|
-
});
|
|
27189
|
-
}
|
|
27190
|
-
if (Object.keys(devDeps).length > 0) {
|
|
27191
|
-
needsDevDepsUpdate = Object.keys(devDeps).some((entry) => {
|
|
27192
|
-
const incomingVersion = devDeps[entry];
|
|
27193
|
-
if (packageJsonFile.devDependencies[entry]) {
|
|
27194
|
-
const existingVersion = packageJsonFile.devDependencies[entry];
|
|
27195
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
27196
|
-
}
|
|
27197
|
-
if (packageJsonFile.dependencies[entry]) {
|
|
27198
|
-
const existingVersion = packageJsonFile.dependencies[entry];
|
|
27199
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
27200
|
-
}
|
|
27201
|
-
return true;
|
|
27202
|
-
});
|
|
27203
|
-
}
|
|
27204
|
-
return needsDepsUpdate || needsDevDepsUpdate;
|
|
27205
|
-
}
|
|
27206
|
-
function requiresRemovingOfPackages(packageJsonFile, deps, devDeps) {
|
|
27207
|
-
let needsDepsUpdate = false;
|
|
27208
|
-
let needsDevDepsUpdate = false;
|
|
27209
|
-
packageJsonFile.dependencies = packageJsonFile.dependencies || {};
|
|
27210
|
-
packageJsonFile.devDependencies = packageJsonFile.devDependencies || {};
|
|
27211
|
-
if (deps.length > 0) {
|
|
27212
|
-
needsDepsUpdate = deps.some((entry) => packageJsonFile.dependencies[entry]);
|
|
27213
|
-
}
|
|
27214
|
-
if (devDeps.length > 0) {
|
|
27215
|
-
needsDevDepsUpdate = devDeps.some((entry) => packageJsonFile.devDependencies[entry]);
|
|
27216
|
-
}
|
|
27217
|
-
return needsDepsUpdate || needsDevDepsUpdate;
|
|
27218
|
-
}
|
|
27219
|
-
var packageMapCache = /* @__PURE__ */ new Map();
|
|
27220
|
-
function ensurePackage2(pkgOrTree, requiredVersionOrPackage, maybeRequiredVersion, _) {
|
|
27221
|
-
let pkg;
|
|
27222
|
-
let requiredVersion;
|
|
27223
|
-
if (typeof pkgOrTree === "string") {
|
|
27224
|
-
pkg = pkgOrTree;
|
|
27225
|
-
requiredVersion = requiredVersionOrPackage;
|
|
27226
|
-
} else {
|
|
27227
|
-
pkg = requiredVersionOrPackage;
|
|
27228
|
-
requiredVersion = maybeRequiredVersion;
|
|
27229
|
-
}
|
|
27230
|
-
if (packageMapCache.has(pkg)) {
|
|
27231
|
-
return packageMapCache.get(pkg);
|
|
27232
|
-
}
|
|
27233
|
-
try {
|
|
27234
|
-
return require(pkg);
|
|
27235
|
-
} catch (e) {
|
|
27236
|
-
if (e.code === "ERR_REQUIRE_ESM") {
|
|
27237
|
-
return null;
|
|
27238
|
-
} else if (e.code !== "MODULE_NOT_FOUND") {
|
|
27239
|
-
throw e;
|
|
27240
|
-
}
|
|
27241
|
-
}
|
|
27242
|
-
if (process.env.NX_DRY_RUN && process.env.NX_DRY_RUN !== "false") {
|
|
27243
|
-
throw new Error('NOTE: This generator does not support --dry-run. If you are running this in Nx Console, it should execute fine once you hit the "Run" button.\n');
|
|
27244
|
-
}
|
|
27245
|
-
const { dir: tempDir } = createTempNpmDirectory?.() ?? {
|
|
27246
|
-
dir: (0, tmp_1.dirSync)().name
|
|
27247
|
-
};
|
|
27248
|
-
console.log(`Fetching ${pkg}...`);
|
|
27249
|
-
const packageManager = detectPackageManager();
|
|
27250
|
-
const isVerbose = process.env.NX_VERBOSE_LOGGING === "true";
|
|
27251
|
-
generatePackageManagerFiles(tempDir, packageManager);
|
|
27252
|
-
const preInstallCommand = getPackageManagerCommand(packageManager).preInstall;
|
|
27253
|
-
if (preInstallCommand) {
|
|
27254
|
-
(0, child_process_1.execSync)(preInstallCommand, {
|
|
27255
|
-
cwd: tempDir,
|
|
27256
|
-
stdio: isVerbose ? "inherit" : "ignore"
|
|
27257
|
-
});
|
|
27258
|
-
}
|
|
27259
|
-
let addCommand = getPackageManagerCommand(packageManager).addDev;
|
|
27260
|
-
if (packageManager === "pnpm") {
|
|
27261
|
-
addCommand = "pnpm add -D";
|
|
27262
|
-
}
|
|
27263
|
-
(0, child_process_1.execSync)(`${addCommand} ${pkg}@${requiredVersion}`, {
|
|
27264
|
-
cwd: tempDir,
|
|
27265
|
-
stdio: isVerbose ? "inherit" : "ignore"
|
|
27266
|
-
});
|
|
27267
|
-
addToNodePath((0, path_1.join)(workspaceRoot, "node_modules"));
|
|
27268
|
-
addToNodePath((0, path_1.join)(tempDir, "node_modules"));
|
|
27269
|
-
module_1.Module._initPaths();
|
|
27270
|
-
try {
|
|
27271
|
-
const result = require(require.resolve(pkg, {
|
|
27272
|
-
paths: [tempDir]
|
|
27273
|
-
}));
|
|
27274
|
-
packageMapCache.set(pkg, result);
|
|
27275
|
-
return result;
|
|
27276
|
-
} catch (e) {
|
|
27277
|
-
if (e.code === "ERR_REQUIRE_ESM") {
|
|
27278
|
-
packageMapCache.set(pkg, null);
|
|
27279
|
-
return null;
|
|
27280
|
-
}
|
|
27281
|
-
throw e;
|
|
27282
|
-
}
|
|
27283
|
-
}
|
|
27284
|
-
exports.ensurePackage = ensurePackage2;
|
|
27285
|
-
function generatePackageManagerFiles(root, packageManager = detectPackageManager()) {
|
|
27286
|
-
const [pmMajor] = getPackageManagerVersion(packageManager).split(".");
|
|
27287
|
-
switch (packageManager) {
|
|
27288
|
-
case "yarn":
|
|
27289
|
-
if (+pmMajor >= 2) {
|
|
27290
|
-
(0, fs_1.writeFileSync)((0, path_1.join)(root, ".yarnrc.yml"), "nodeLinker: node-modules\nenableScripts: false");
|
|
27291
|
-
}
|
|
27292
|
-
break;
|
|
27293
|
-
}
|
|
27294
|
-
}
|
|
27295
|
-
function addToNodePath(dir) {
|
|
27296
|
-
const delimiter = require("os").platform() === "win32" ? ";" : ":";
|
|
27297
|
-
const paths = process.env.NODE_PATH ? process.env.NODE_PATH.split(delimiter) : [];
|
|
27298
|
-
if (paths.includes(dir)) {
|
|
27299
|
-
return;
|
|
27300
|
-
}
|
|
27301
|
-
paths.push(dir);
|
|
27302
|
-
process.env.NODE_PATH = paths.join(delimiter);
|
|
27303
|
-
}
|
|
27304
|
-
function getPackageVersion(pkg) {
|
|
27305
|
-
return require((0, path_1.join)(pkg, "package.json")).version;
|
|
27306
|
-
}
|
|
27307
|
-
exports.NX_VERSION = getPackageVersion("nx");
|
|
27308
|
-
}
|
|
27309
|
-
});
|
|
27310
|
-
|
|
27311
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/to-js.js
|
|
27312
|
-
var require_to_js2 = __commonJS({
|
|
27313
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/to-js.js"(exports) {
|
|
27314
|
-
"use strict";
|
|
27315
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27316
|
-
exports.toJS = void 0;
|
|
27317
|
-
var versions_1 = require_versions2();
|
|
27318
|
-
var package_json_1 = require_package_json2();
|
|
27319
|
-
function toJS(tree) {
|
|
27320
|
-
const { JsxEmit, ScriptTarget, transpile } = (0, package_json_1.ensurePackage)("typescript", versions_1.typescriptVersion);
|
|
27321
|
-
for (const c of tree.listChanges()) {
|
|
27322
|
-
if ((c.path.endsWith(".ts") || c.path.endsWith("tsx")) && c.type === "CREATE") {
|
|
27323
|
-
tree.write(c.path, transpile(c.content.toString("utf-8"), {
|
|
27324
|
-
allowJs: true,
|
|
27325
|
-
jsx: JsxEmit.Preserve,
|
|
27326
|
-
target: ScriptTarget.ESNext
|
|
27327
|
-
}));
|
|
27328
|
-
tree.rename(c.path, c.path.replace(/\.tsx?$/, ".js"));
|
|
27329
|
-
}
|
|
27330
|
-
}
|
|
27331
|
-
}
|
|
27332
|
-
exports.toJS = toJS;
|
|
27333
|
-
}
|
|
27334
|
-
});
|
|
27335
|
-
|
|
27336
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js
|
|
27337
|
-
var require_update_ts_configs_to_js2 = __commonJS({
|
|
27338
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js"(exports) {
|
|
27339
|
-
"use strict";
|
|
27340
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27341
|
-
exports.updateTsConfigsToJs = void 0;
|
|
27342
|
-
var nx_1 = require_nx2();
|
|
27343
|
-
var { updateJson: updateJson3 } = (0, nx_1.requireNx)();
|
|
27344
|
-
function updateTsConfigsToJs(tree, options) {
|
|
27345
|
-
let updateConfigPath;
|
|
27346
|
-
const paths = {
|
|
27347
|
-
tsConfig: `${options.projectRoot}/tsconfig.json`,
|
|
27348
|
-
tsConfigLib: `${options.projectRoot}/tsconfig.lib.json`,
|
|
27349
|
-
tsConfigApp: `${options.projectRoot}/tsconfig.app.json`
|
|
27350
|
-
};
|
|
27351
|
-
const getProjectType = (tree2) => {
|
|
27352
|
-
if (tree2.exists(paths.tsConfigApp)) {
|
|
27353
|
-
return "application";
|
|
27354
|
-
}
|
|
27355
|
-
if (tree2.exists(paths.tsConfigLib)) {
|
|
27356
|
-
return "library";
|
|
27357
|
-
}
|
|
27358
|
-
throw new Error(`project is missing tsconfig.lib.json or tsconfig.app.json`);
|
|
27359
|
-
};
|
|
27360
|
-
updateJson3(tree, paths.tsConfig, (json) => {
|
|
27361
|
-
if (json.compilerOptions) {
|
|
27362
|
-
json.compilerOptions.allowJs = true;
|
|
27363
|
-
} else {
|
|
27364
|
-
json.compilerOptions = { allowJs: true };
|
|
27365
|
-
}
|
|
27366
|
-
return json;
|
|
27367
|
-
});
|
|
27368
|
-
const projectType = getProjectType(tree);
|
|
27369
|
-
if (projectType === "library") {
|
|
27370
|
-
updateConfigPath = paths.tsConfigLib;
|
|
27371
|
-
}
|
|
27372
|
-
if (projectType === "application") {
|
|
27373
|
-
updateConfigPath = paths.tsConfigApp;
|
|
27374
|
-
}
|
|
27375
|
-
updateJson3(tree, updateConfigPath, (json) => {
|
|
27376
|
-
json.include = uniq([...json.include, "src/**/*.js"]);
|
|
27377
|
-
json.exclude = uniq([
|
|
27378
|
-
...json.exclude,
|
|
27379
|
-
"src/**/*.spec.js",
|
|
27380
|
-
"src/**/*.test.js"
|
|
27381
|
-
]);
|
|
27382
|
-
return json;
|
|
27383
|
-
});
|
|
27384
|
-
}
|
|
27385
|
-
exports.updateTsConfigsToJs = updateTsConfigsToJs;
|
|
27386
|
-
var uniq = (value) => [...new Set(value)];
|
|
27387
|
-
}
|
|
27388
|
-
});
|
|
27389
|
-
|
|
27390
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js
|
|
27391
|
-
var require_run_tasks_in_serial2 = __commonJS({
|
|
27392
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js"(exports) {
|
|
27393
|
-
"use strict";
|
|
27394
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27395
|
-
exports.runTasksInSerial = void 0;
|
|
27396
|
-
function runTasksInSerial(...tasks) {
|
|
27397
|
-
return async () => {
|
|
27398
|
-
for (const task of tasks) {
|
|
27399
|
-
await task();
|
|
27400
|
-
}
|
|
27401
|
-
};
|
|
27402
|
-
}
|
|
27403
|
-
exports.runTasksInSerial = runTasksInSerial;
|
|
27404
|
-
}
|
|
27405
|
-
});
|
|
27406
|
-
|
|
27407
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js
|
|
27408
|
-
var require_visit_not_ignored_files2 = __commonJS({
|
|
27409
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js"(exports) {
|
|
27410
|
-
"use strict";
|
|
27411
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27412
|
-
exports.visitNotIgnoredFiles = void 0;
|
|
27413
|
-
var ignore_1 = require_ignore();
|
|
27414
|
-
var path_1 = require("path");
|
|
27415
|
-
function visitNotIgnoredFiles(tree, dirPath = tree.root, visitor) {
|
|
27416
|
-
let ig;
|
|
27417
|
-
if (tree.exists(".gitignore")) {
|
|
27418
|
-
ig = (0, ignore_1.default)();
|
|
27419
|
-
ig.add(".git");
|
|
27420
|
-
ig.add(tree.read(".gitignore", "utf-8"));
|
|
27421
|
-
}
|
|
27422
|
-
if (tree.exists(".nxignore")) {
|
|
27423
|
-
ig ??= (0, ignore_1.default)();
|
|
27424
|
-
ig.add(tree.read(".nxignore", "utf-8"));
|
|
27425
|
-
}
|
|
27426
|
-
dirPath = normalizePathRelativeToRoot(dirPath, tree.root);
|
|
27427
|
-
if (dirPath !== "" && ig?.ignores(dirPath)) {
|
|
27428
|
-
return;
|
|
27429
|
-
}
|
|
27430
|
-
for (const child of tree.children(dirPath)) {
|
|
27431
|
-
const fullPath = (0, path_1.join)(dirPath, child);
|
|
27432
|
-
if (ig?.ignores(fullPath)) {
|
|
27433
|
-
continue;
|
|
27434
|
-
}
|
|
27435
|
-
if (tree.isFile(fullPath)) {
|
|
27436
|
-
visitor(fullPath);
|
|
27437
|
-
} else {
|
|
27438
|
-
visitNotIgnoredFiles(tree, fullPath, visitor);
|
|
27439
|
-
}
|
|
27440
|
-
}
|
|
27441
|
-
}
|
|
27442
|
-
exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
27443
|
-
function normalizePathRelativeToRoot(path3, root) {
|
|
27444
|
-
return (0, path_1.relative)(root, (0, path_1.join)(root, path3)).split(path_1.sep).join("/");
|
|
27445
|
-
}
|
|
27446
|
-
}
|
|
27447
|
-
});
|
|
27448
|
-
|
|
27449
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/executors/parse-target-string.js
|
|
27450
|
-
var require_parse_target_string2 = __commonJS({
|
|
27451
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/executors/parse-target-string.js"(exports) {
|
|
27452
|
-
"use strict";
|
|
27453
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27454
|
-
exports.targetToTargetString = exports.parseTargetString = void 0;
|
|
27455
|
-
var nx_1 = require_nx2();
|
|
27456
|
-
var { readCachedProjectGraph: readCachedProjectGraph2, splitTarget, splitByColons } = (0, nx_1.requireNx)();
|
|
27457
|
-
splitTarget = splitTarget ?? require("nx/src/utils/split-target").splitTarget;
|
|
27458
|
-
splitByColons = splitByColons ?? ((s) => s.split(":"));
|
|
27459
|
-
function parseTargetString(targetString, projectGraphOrCtx) {
|
|
27460
|
-
let projectGraph = projectGraphOrCtx && "projectGraph" in projectGraphOrCtx ? projectGraphOrCtx.projectGraph : projectGraphOrCtx;
|
|
27461
|
-
if (!projectGraph) {
|
|
27462
|
-
try {
|
|
27463
|
-
projectGraph = readCachedProjectGraph2();
|
|
27464
|
-
} catch (e) {
|
|
27465
|
-
projectGraph = { nodes: {} };
|
|
27466
|
-
}
|
|
27467
|
-
}
|
|
27468
|
-
const [maybeProject] = splitByColons(targetString);
|
|
27469
|
-
if (!projectGraph.nodes[maybeProject] && projectGraphOrCtx && "projectName" in projectGraphOrCtx) {
|
|
27470
|
-
targetString = `${projectGraphOrCtx.projectName}:${targetString}`;
|
|
27471
|
-
}
|
|
27472
|
-
const [project, target, configuration] = splitTarget(targetString, projectGraph);
|
|
27473
|
-
if (!project || !target) {
|
|
27474
|
-
throw new Error(`Invalid Target String: ${targetString}`);
|
|
27475
|
-
}
|
|
27476
|
-
return {
|
|
27477
|
-
project,
|
|
27478
|
-
target,
|
|
27479
|
-
configuration
|
|
27480
|
-
};
|
|
27481
|
-
}
|
|
27482
|
-
exports.parseTargetString = parseTargetString;
|
|
27483
|
-
function targetToTargetString({ project, target, configuration }) {
|
|
27484
|
-
return `${project}:${target.indexOf(":") > -1 ? `"${target}"` : target}${configuration !== void 0 ? ":" + configuration : ""}`;
|
|
27485
|
-
}
|
|
27486
|
-
exports.targetToTargetString = targetToTargetString;
|
|
27487
|
-
}
|
|
27488
|
-
});
|
|
27489
|
-
|
|
27490
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/executors/read-target-options.js
|
|
27491
|
-
var require_read_target_options2 = __commonJS({
|
|
27492
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/executors/read-target-options.js"(exports) {
|
|
27493
|
-
"use strict";
|
|
27494
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27495
|
-
exports.readTargetOptions = void 0;
|
|
27496
|
-
var nx_1 = require_nx2();
|
|
27497
|
-
var path_1 = require("path");
|
|
27498
|
-
var { Workspaces, getExecutorInformation, calculateDefaultProjectName, combineOptionsForExecutor } = (0, nx_1.requireNx)();
|
|
27499
|
-
combineOptionsForExecutor = combineOptionsForExecutor ?? require("nx/src/utils/params").combineOptionsForExecutor;
|
|
27500
|
-
function readTargetOptions({ project, target, configuration }, context) {
|
|
27501
|
-
const projectConfiguration = (context.workspace || context.projectsConfigurations).projects[project];
|
|
27502
|
-
if (!projectConfiguration) {
|
|
27503
|
-
throw new Error(`Unable to find project ${project}`);
|
|
27504
|
-
}
|
|
27505
|
-
const targetConfiguration = projectConfiguration.targets[target];
|
|
27506
|
-
const ws = new Workspaces(context.root);
|
|
27507
|
-
const [nodeModule, executorName] = targetConfiguration.executor.split(":");
|
|
27508
|
-
const { schema } = getExecutorInformation ? getExecutorInformation(nodeModule, executorName, context.root) : (
|
|
27509
|
-
// TODO(v18): remove readExecutor. This is to be backwards compatible with Nx 16.5 and below.
|
|
27510
|
-
ws.readExecutor(nodeModule, executorName)
|
|
27511
|
-
);
|
|
27512
|
-
const defaultProject = calculateDefaultProjectName ? calculateDefaultProjectName(context.cwd, context.root, { version: 2, projects: context.projectsConfigurations.projects }, context.nxJsonConfiguration) : (
|
|
27513
|
-
// TODO(v18): remove calculateDefaultProjectName. This is to be backwards compatible with Nx 16.5 and below.
|
|
27514
|
-
ws.calculateDefaultProjectName(context.cwd, { version: 2, projects: context.projectsConfigurations.projects }, context.nxJsonConfiguration)
|
|
27515
|
-
);
|
|
27516
|
-
return combineOptionsForExecutor({}, configuration ?? targetConfiguration.defaultConfiguration ?? "", targetConfiguration, schema, defaultProject, (0, path_1.relative)(context.root, context.cwd));
|
|
27517
|
-
}
|
|
27518
|
-
exports.readTargetOptions = readTargetOptions;
|
|
27519
|
-
}
|
|
27520
|
-
});
|
|
27521
|
-
|
|
27522
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/names.js
|
|
27523
|
-
var require_names2 = __commonJS({
|
|
27524
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/names.js"(exports) {
|
|
27525
|
-
"use strict";
|
|
27526
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27527
|
-
exports.names = void 0;
|
|
27528
|
-
function names3(name) {
|
|
27529
|
-
return {
|
|
27530
|
-
name,
|
|
27531
|
-
className: toClassName(name),
|
|
27532
|
-
propertyName: toPropertyName(name),
|
|
27533
|
-
constantName: toConstantName(name),
|
|
27534
|
-
fileName: toFileName(name)
|
|
27535
|
-
};
|
|
27536
|
-
}
|
|
27537
|
-
exports.names = names3;
|
|
27538
|
-
function toClassName(str) {
|
|
27539
|
-
return toCapitalCase(toPropertyName(str));
|
|
27540
|
-
}
|
|
27541
|
-
function toPropertyName(s) {
|
|
27542
|
-
return s.replace(/([^a-zA-Z0-9])+(.)?/g, (_, __, chr) => chr ? chr.toUpperCase() : "").replace(/[^a-zA-Z\d]/g, "").replace(/^([A-Z])/, (m) => m.toLowerCase());
|
|
27543
|
-
}
|
|
27544
|
-
function toConstantName(s) {
|
|
27545
|
-
const normalizedS = s.toUpperCase() === s ? s.toLowerCase() : s;
|
|
27546
|
-
return toFileName(toPropertyName(normalizedS)).replace(/([^a-zA-Z0-9])/g, "_").toUpperCase();
|
|
27547
|
-
}
|
|
27548
|
-
function toFileName(s) {
|
|
27549
|
-
return s.replace(/([a-z\d])([A-Z])/g, "$1_$2").toLowerCase().replace(/(?!^[_])[ _]/g, "-");
|
|
27550
|
-
}
|
|
27551
|
-
function toCapitalCase(s) {
|
|
27552
|
-
return s.charAt(0).toUpperCase() + s.slice(1);
|
|
27553
|
-
}
|
|
27554
|
-
}
|
|
27555
|
-
});
|
|
27556
|
-
|
|
27557
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/get-workspace-layout.js
|
|
27558
|
-
var require_get_workspace_layout2 = __commonJS({
|
|
27559
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/get-workspace-layout.js"(exports) {
|
|
27560
|
-
"use strict";
|
|
27561
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27562
|
-
exports.extractLayoutDirectory = exports.getWorkspaceLayout = void 0;
|
|
27563
|
-
var nx_1 = require_nx2();
|
|
27564
|
-
var { readNxJson } = (0, nx_1.requireNx)();
|
|
27565
|
-
function getWorkspaceLayout(tree) {
|
|
27566
|
-
const nxJson = readNxJson(tree);
|
|
27567
|
-
return {
|
|
27568
|
-
appsDir: nxJson?.workspaceLayout?.appsDir ?? inOrderOfPreference(tree, ["apps", "packages"], "."),
|
|
27569
|
-
libsDir: nxJson?.workspaceLayout?.libsDir ?? inOrderOfPreference(tree, ["libs", "packages"], "."),
|
|
27570
|
-
standaloneAsDefault: true
|
|
27571
|
-
};
|
|
27572
|
-
}
|
|
27573
|
-
exports.getWorkspaceLayout = getWorkspaceLayout;
|
|
27574
|
-
function extractLayoutDirectory(directory) {
|
|
27575
|
-
if (directory) {
|
|
27576
|
-
directory = directory.startsWith("/") ? directory.substring(1) : directory;
|
|
27577
|
-
for (let dir of ["apps", "libs", "packages"]) {
|
|
27578
|
-
if (directory.startsWith(dir + "/") || directory === dir) {
|
|
27579
|
-
return {
|
|
27580
|
-
layoutDirectory: dir,
|
|
27581
|
-
projectDirectory: directory.substring(dir.length + 1)
|
|
27582
|
-
};
|
|
27583
|
-
}
|
|
27584
|
-
}
|
|
27585
|
-
}
|
|
27586
|
-
return { layoutDirectory: null, projectDirectory: directory };
|
|
27587
|
-
}
|
|
27588
|
-
exports.extractLayoutDirectory = extractLayoutDirectory;
|
|
27589
|
-
function inOrderOfPreference(tree, selectedFolders, defaultChoice) {
|
|
27590
|
-
for (let i = 0; i < selectedFolders.length; ++i) {
|
|
27591
|
-
if (tree.exists(selectedFolders[i]))
|
|
27592
|
-
return selectedFolders[i];
|
|
27593
|
-
}
|
|
27594
|
-
return defaultChoice;
|
|
27595
|
-
}
|
|
27596
|
-
}
|
|
27597
|
-
});
|
|
27598
|
-
|
|
27599
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/string-change.js
|
|
27600
|
-
var require_string_change2 = __commonJS({
|
|
27601
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/string-change.js"(exports) {
|
|
27602
|
-
"use strict";
|
|
27603
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27604
|
-
exports.applyChangesToString = exports.ChangeType = void 0;
|
|
27605
|
-
var ChangeType;
|
|
27606
|
-
(function(ChangeType2) {
|
|
27607
|
-
ChangeType2["Delete"] = "Delete";
|
|
27608
|
-
ChangeType2["Insert"] = "Insert";
|
|
27609
|
-
})(ChangeType || (exports.ChangeType = ChangeType = {}));
|
|
27610
|
-
function applyChangesToString(text, changes) {
|
|
27611
|
-
assertChangesValid(changes);
|
|
27612
|
-
const sortedChanges = changes.sort((a, b) => {
|
|
27613
|
-
const diff = getChangeIndex(a) - getChangeIndex(b);
|
|
27614
|
-
if (diff === 0) {
|
|
27615
|
-
if (a.type === b.type) {
|
|
27616
|
-
return 0;
|
|
27617
|
-
} else {
|
|
27618
|
-
return isStringInsertion(a) ? -1 : 1;
|
|
27619
|
-
}
|
|
27620
|
-
}
|
|
27621
|
-
return diff;
|
|
27622
|
-
});
|
|
27623
|
-
let offset = 0;
|
|
27624
|
-
for (const change of sortedChanges) {
|
|
27625
|
-
const index = getChangeIndex(change) + offset;
|
|
27626
|
-
if (isStringInsertion(change)) {
|
|
27627
|
-
text = text.slice(0, index) + change.text + text.slice(index);
|
|
27628
|
-
offset += change.text.length;
|
|
27629
|
-
} else {
|
|
27630
|
-
text = text.slice(0, index) + text.slice(index + change.length);
|
|
27631
|
-
offset -= change.length;
|
|
27632
|
-
}
|
|
27633
|
-
}
|
|
27634
|
-
return text;
|
|
27635
|
-
}
|
|
27636
|
-
exports.applyChangesToString = applyChangesToString;
|
|
27637
|
-
function assertChangesValid(changes) {
|
|
27638
|
-
for (const change of changes) {
|
|
27639
|
-
if (isStringInsertion(change)) {
|
|
27640
|
-
if (!Number.isInteger(change.index)) {
|
|
27641
|
-
throw new TypeError(`${change.index} must be an integer.`);
|
|
27642
|
-
}
|
|
27643
|
-
if (change.index < 0) {
|
|
27644
|
-
throw new Error(`${change.index} must be a positive integer.`);
|
|
27645
|
-
}
|
|
27646
|
-
if (typeof change.text !== "string") {
|
|
27647
|
-
throw new Error(`${change.text} must be a string.`);
|
|
27648
|
-
}
|
|
27649
|
-
} else {
|
|
27650
|
-
if (!Number.isInteger(change.start)) {
|
|
27651
|
-
throw new TypeError(`${change.start} must be an integer.`);
|
|
27652
|
-
}
|
|
27653
|
-
if (change.start < 0) {
|
|
27654
|
-
throw new Error(`${change.start} must be a positive integer.`);
|
|
27655
|
-
}
|
|
27656
|
-
if (!Number.isInteger(change.length)) {
|
|
27657
|
-
throw new TypeError(`${change.length} must be an integer.`);
|
|
27658
|
-
}
|
|
27659
|
-
if (change.length < 0) {
|
|
27660
|
-
throw new Error(`${change.length} must be a positive integer.`);
|
|
27661
|
-
}
|
|
27662
|
-
}
|
|
27663
|
-
}
|
|
27664
|
-
}
|
|
27665
|
-
function getChangeIndex(change) {
|
|
27666
|
-
if (isStringInsertion(change)) {
|
|
27667
|
-
return change.index;
|
|
27668
|
-
} else {
|
|
27669
|
-
return change.start;
|
|
27670
|
-
}
|
|
27671
|
-
}
|
|
27672
|
-
function isStringInsertion(change) {
|
|
27673
|
-
return change.type === ChangeType.Insert;
|
|
27674
|
-
}
|
|
27675
|
-
}
|
|
27676
|
-
});
|
|
27677
|
-
|
|
27678
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/offset-from-root.js
|
|
27679
|
-
var require_offset_from_root2 = __commonJS({
|
|
27680
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/offset-from-root.js"(exports) {
|
|
27681
|
-
"use strict";
|
|
27682
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27683
|
-
exports.offsetFromRoot = void 0;
|
|
27684
|
-
var path_1 = require("path");
|
|
27685
|
-
function offsetFromRoot3(fullPathToDir) {
|
|
27686
|
-
if (fullPathToDir === ".")
|
|
27687
|
-
return "./";
|
|
27688
|
-
const parts = (0, path_1.normalize)(fullPathToDir).split(path_1.sep);
|
|
27689
|
-
let offset = "";
|
|
27690
|
-
for (let i = 0; i < parts.length; ++i) {
|
|
27691
|
-
if (parts[i].length > 0) {
|
|
27692
|
-
offset += "../";
|
|
27693
|
-
}
|
|
27694
|
-
}
|
|
27695
|
-
return offset;
|
|
27696
|
-
}
|
|
27697
|
-
exports.offsetFromRoot = offsetFromRoot3;
|
|
27698
|
-
}
|
|
27699
|
-
});
|
|
27700
|
-
|
|
27701
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js
|
|
27702
|
-
var require_invoke_nx_generator2 = __commonJS({
|
|
27703
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js"(exports) {
|
|
27704
|
-
"use strict";
|
|
27705
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27706
|
-
exports.convertNxGenerator = void 0;
|
|
27707
|
-
var path_1 = require("path");
|
|
27708
|
-
var nx_1 = require_nx2();
|
|
27709
|
-
var { logger, stripIndent } = (0, nx_1.requireNx)();
|
|
27710
|
-
stripIndent = stripIndent ?? require("nx/src/utils/logger").stripIndent;
|
|
27711
|
-
var RunCallbackTask = class {
|
|
27712
|
-
constructor(callback) {
|
|
27713
|
-
this.callback = callback;
|
|
27714
|
-
}
|
|
27715
|
-
toConfiguration() {
|
|
27716
|
-
return {
|
|
27717
|
-
name: "RunCallback",
|
|
27718
|
-
options: {
|
|
27719
|
-
callback: this.callback
|
|
27720
|
-
}
|
|
27721
|
-
};
|
|
27722
|
-
}
|
|
27723
|
-
};
|
|
27724
|
-
function createRunCallbackTask() {
|
|
27725
|
-
return {
|
|
27726
|
-
name: "RunCallback",
|
|
27727
|
-
create: () => {
|
|
27728
|
-
return Promise.resolve(async ({ callback }) => {
|
|
27729
|
-
await callback();
|
|
27730
|
-
});
|
|
27731
|
-
}
|
|
27732
|
-
};
|
|
27733
|
-
}
|
|
27734
|
-
function convertNxGenerator(generator, skipWritingConfigInOldFormat = false) {
|
|
27735
|
-
return (generatorOptions) => invokeNxGenerator(generator, generatorOptions);
|
|
27736
|
-
}
|
|
27737
|
-
exports.convertNxGenerator = convertNxGenerator;
|
|
27738
|
-
function invokeNxGenerator(generator, options, skipWritingConfigInOldFormat) {
|
|
27739
|
-
return async (tree, context) => {
|
|
27740
|
-
if (context.engine.workflow) {
|
|
27741
|
-
const engineHost = context.engine.workflow.engineHost;
|
|
27742
|
-
engineHost.registerTaskExecutor(createRunCallbackTask());
|
|
27743
|
-
}
|
|
27744
|
-
const root = context.engine.workflow && context.engine.workflow.engineHost.paths ? context.engine.workflow.engineHost.paths[1] : tree.root.path;
|
|
27745
|
-
const adapterTree = new DevkitTreeFromAngularDevkitTree(tree, root, skipWritingConfigInOldFormat);
|
|
27746
|
-
const result = await generator(adapterTree, options);
|
|
27747
|
-
if (!result) {
|
|
27748
|
-
return adapterTree["tree"];
|
|
27749
|
-
}
|
|
27750
|
-
if (typeof result === "function") {
|
|
27751
|
-
if (context.engine.workflow) {
|
|
27752
|
-
context.addTask(new RunCallbackTask(result));
|
|
27753
|
-
}
|
|
27754
|
-
}
|
|
27755
|
-
};
|
|
27756
|
-
}
|
|
27757
|
-
var actionToFileChangeMap = {
|
|
27758
|
-
c: "CREATE",
|
|
27759
|
-
o: "UPDATE",
|
|
27760
|
-
d: "DELETE"
|
|
27761
|
-
};
|
|
27762
|
-
var DevkitTreeFromAngularDevkitTree = class {
|
|
27763
|
-
constructor(tree, _root, skipWritingConfigInOldFormat) {
|
|
27764
|
-
this.tree = tree;
|
|
27765
|
-
this._root = _root;
|
|
27766
|
-
this.skipWritingConfigInOldFormat = skipWritingConfigInOldFormat;
|
|
27767
|
-
try {
|
|
27768
|
-
const { UnitTestTree } = require("@angular-devkit/schematics/testing");
|
|
27769
|
-
if (tree instanceof UnitTestTree && _root === "/") {
|
|
27770
|
-
this._root = "/virtual";
|
|
27771
|
-
}
|
|
27772
|
-
} catch {
|
|
27773
|
-
}
|
|
27774
|
-
}
|
|
27775
|
-
get root() {
|
|
27776
|
-
return this._root;
|
|
27777
|
-
}
|
|
27778
|
-
children(dirPath) {
|
|
27779
|
-
const { subdirs, subfiles } = this.tree.getDir(dirPath);
|
|
27780
|
-
return [...subdirs, ...subfiles];
|
|
27781
|
-
}
|
|
27782
|
-
delete(filePath) {
|
|
27783
|
-
this.tree.delete(filePath);
|
|
27784
|
-
}
|
|
27785
|
-
exists(filePath) {
|
|
27786
|
-
if (this.isFile(filePath)) {
|
|
27787
|
-
return this.tree.exists(filePath);
|
|
27788
|
-
} else {
|
|
27789
|
-
return this.children(filePath).length > 0;
|
|
27790
|
-
}
|
|
27791
|
-
}
|
|
27792
|
-
isFile(filePath) {
|
|
27793
|
-
return this.tree.exists(filePath) && !!this.tree.read(filePath);
|
|
27794
|
-
}
|
|
27795
|
-
listChanges() {
|
|
27796
|
-
const fileChanges = [];
|
|
27797
|
-
for (const action of this.tree.actions) {
|
|
27798
|
-
if (action.kind === "r") {
|
|
27799
|
-
fileChanges.push({
|
|
27800
|
-
path: this.normalize(action.to),
|
|
27801
|
-
type: "CREATE",
|
|
27802
|
-
content: this.read(action.to)
|
|
27803
|
-
});
|
|
27804
|
-
fileChanges.push({
|
|
27805
|
-
path: this.normalize(action.path),
|
|
27806
|
-
type: "DELETE",
|
|
27807
|
-
content: null
|
|
27808
|
-
});
|
|
27809
|
-
} else if (action.kind === "c" || action.kind === "o") {
|
|
27810
|
-
fileChanges.push({
|
|
27811
|
-
path: this.normalize(action.path),
|
|
27812
|
-
type: actionToFileChangeMap[action.kind],
|
|
27813
|
-
content: action.content
|
|
27814
|
-
});
|
|
27815
|
-
} else {
|
|
27816
|
-
fileChanges.push({
|
|
27817
|
-
path: this.normalize(action.path),
|
|
27818
|
-
type: "DELETE",
|
|
27819
|
-
content: null
|
|
27820
|
-
});
|
|
27821
|
-
}
|
|
27822
|
-
}
|
|
27823
|
-
return fileChanges;
|
|
27824
|
-
}
|
|
27825
|
-
normalize(path3) {
|
|
27826
|
-
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path3));
|
|
27827
|
-
}
|
|
27828
|
-
read(filePath, encoding) {
|
|
27829
|
-
return encoding ? this.tree.read(filePath).toString(encoding) : this.tree.read(filePath);
|
|
27830
|
-
}
|
|
27831
|
-
rename(from, to) {
|
|
27832
|
-
this.tree.rename(from, to);
|
|
27833
|
-
}
|
|
27834
|
-
write(filePath, content, options) {
|
|
27835
|
-
if (options?.mode) {
|
|
27836
|
-
this.warnUnsupportedFilePermissionsChange(filePath, options.mode);
|
|
27837
|
-
}
|
|
27838
|
-
if (this.tree.exists(filePath)) {
|
|
27839
|
-
this.tree.overwrite(filePath, content);
|
|
27840
|
-
} else {
|
|
27841
|
-
this.tree.create(filePath, content);
|
|
27842
|
-
}
|
|
27843
|
-
}
|
|
27844
|
-
changePermissions(filePath, mode) {
|
|
27845
|
-
this.warnUnsupportedFilePermissionsChange(filePath, mode);
|
|
27846
|
-
}
|
|
27847
|
-
warnUnsupportedFilePermissionsChange(filePath, mode) {
|
|
27848
|
-
logger.warn(stripIndent(`The Angular DevKit tree does not support changing a file permissions.
|
|
27849
|
-
Ignoring changing ${filePath} permissions to ${mode}.`));
|
|
27850
|
-
}
|
|
27851
|
-
};
|
|
27852
|
-
}
|
|
27853
|
-
});
|
|
27854
|
-
|
|
27855
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/convert-nx-executor.js
|
|
27856
|
-
var require_convert_nx_executor2 = __commonJS({
|
|
27857
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/convert-nx-executor.js"(exports) {
|
|
27858
|
-
"use strict";
|
|
27859
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27860
|
-
exports.convertNxExecutor = void 0;
|
|
27861
|
-
var nx_1 = require_nx2();
|
|
27862
|
-
var { Workspaces, readNxJsonFromDisk, retrieveProjectConfigurationsWithAngularProjects } = (0, nx_1.requireNx)();
|
|
27863
|
-
function convertNxExecutor(executor) {
|
|
27864
|
-
const builderFunction = (options, builderContext) => {
|
|
27865
|
-
const workspaces = new Workspaces(builderContext.workspaceRoot);
|
|
27866
|
-
const nxJsonConfiguration = readNxJsonFromDisk ? readNxJsonFromDisk(builderContext.workspaceRoot) : (
|
|
27867
|
-
// TODO(v18): remove readNxJson. This is to be backwards compatible with Nx 16.5 and below.
|
|
27868
|
-
workspaces.readNxJson()
|
|
27869
|
-
);
|
|
27870
|
-
const promise = async () => {
|
|
27871
|
-
const projectsConfigurations = retrieveProjectConfigurationsWithAngularProjects ? {
|
|
27872
|
-
version: 2,
|
|
27873
|
-
projects: await retrieveProjectConfigurationsWithAngularProjects(builderContext.workspaceRoot, nxJsonConfiguration).then((p) => p.projectNodes)
|
|
27874
|
-
} : (
|
|
27875
|
-
// TODO(v18): remove retrieveProjectConfigurations. This is to be backwards compatible with Nx 16.5 and below.
|
|
27876
|
-
workspaces.readProjectsConfigurations({
|
|
27877
|
-
_includeProjectsFromAngularJson: true
|
|
27878
|
-
})
|
|
27879
|
-
);
|
|
27880
|
-
const context = {
|
|
27881
|
-
root: builderContext.workspaceRoot,
|
|
27882
|
-
projectName: builderContext.target.project,
|
|
27883
|
-
targetName: builderContext.target.target,
|
|
27884
|
-
target: builderContext.target.target,
|
|
27885
|
-
configurationName: builderContext.target.configuration,
|
|
27886
|
-
projectsConfigurations,
|
|
27887
|
-
nxJsonConfiguration,
|
|
27888
|
-
cwd: process.cwd(),
|
|
27889
|
-
projectGraph: null,
|
|
27890
|
-
taskGraph: null,
|
|
27891
|
-
isVerbose: false
|
|
27892
|
-
};
|
|
27893
|
-
return executor(options, context);
|
|
27894
|
-
};
|
|
27895
|
-
return toObservable(promise());
|
|
27896
|
-
};
|
|
27897
|
-
return require("@angular-devkit/architect").createBuilder(builderFunction);
|
|
27898
|
-
}
|
|
27899
|
-
exports.convertNxExecutor = convertNxExecutor;
|
|
27900
|
-
function toObservable(promiseOrAsyncIterator) {
|
|
27901
|
-
return new (require_cjs()).Observable((subscriber) => {
|
|
27902
|
-
promiseOrAsyncIterator.then((value) => {
|
|
27903
|
-
if (!value.next) {
|
|
27904
|
-
subscriber.next(value);
|
|
27905
|
-
subscriber.complete();
|
|
27906
|
-
} else {
|
|
27907
|
-
let recurse = function(iterator) {
|
|
27908
|
-
iterator.next().then((result) => {
|
|
27909
|
-
if (!result.done) {
|
|
27910
|
-
subscriber.next(result.value);
|
|
27911
|
-
recurse(iterator);
|
|
27912
|
-
} else {
|
|
27913
|
-
if (result.value) {
|
|
27914
|
-
subscriber.next(result.value);
|
|
27915
|
-
}
|
|
27916
|
-
subscriber.complete();
|
|
27917
|
-
}
|
|
27918
|
-
}).catch((e) => {
|
|
27919
|
-
subscriber.error(e);
|
|
27920
|
-
});
|
|
27921
|
-
};
|
|
27922
|
-
let asyncIterator = value;
|
|
27923
|
-
recurse(asyncIterator);
|
|
27924
|
-
return () => {
|
|
27925
|
-
asyncIterator.return();
|
|
27926
|
-
};
|
|
27927
|
-
}
|
|
27928
|
-
}).catch((err) => {
|
|
27929
|
-
subscriber.error(err);
|
|
27930
|
-
});
|
|
27931
|
-
});
|
|
27932
|
-
}
|
|
27933
|
-
}
|
|
27934
|
-
});
|
|
27935
|
-
|
|
27936
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/move-dir.js
|
|
27937
|
-
var require_move_dir2 = __commonJS({
|
|
27938
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/src/utils/move-dir.js"(exports) {
|
|
27939
|
-
"use strict";
|
|
27940
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27941
|
-
exports.moveFilesToNewDirectory = void 0;
|
|
27942
|
-
var path_1 = require("path");
|
|
27943
|
-
var visit_not_ignored_files_1 = require_visit_not_ignored_files2();
|
|
27944
|
-
var nx_1 = require_nx2();
|
|
27945
|
-
var { normalizePath } = (0, nx_1.requireNx)();
|
|
27946
|
-
function moveFilesToNewDirectory(tree, oldDir, newDir) {
|
|
27947
|
-
oldDir = normalizePath(oldDir);
|
|
27948
|
-
newDir = normalizePath(newDir);
|
|
27949
|
-
(0, visit_not_ignored_files_1.visitNotIgnoredFiles)(tree, oldDir, (file) => {
|
|
27950
|
-
try {
|
|
27951
|
-
tree.rename(file, `${newDir}/${(0, path_1.relative)(oldDir, file)}`);
|
|
27952
|
-
} catch (e) {
|
|
27953
|
-
if (!tree.exists(oldDir)) {
|
|
27954
|
-
console.warn(`Path ${oldDir} does not exist`);
|
|
27955
|
-
} else if (!tree.exists(newDir)) {
|
|
27956
|
-
console.warn(`Path ${newDir} does not exist`);
|
|
27957
|
-
}
|
|
27958
|
-
}
|
|
27959
|
-
});
|
|
27960
|
-
}
|
|
27961
|
-
exports.moveFilesToNewDirectory = moveFilesToNewDirectory;
|
|
27962
|
-
}
|
|
27963
|
-
});
|
|
27964
|
-
|
|
27965
26381
|
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/public-api.js
|
|
27966
|
-
var
|
|
26382
|
+
var require_public_api = __commonJS({
|
|
27967
26383
|
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/public-api.js"(exports) {
|
|
27968
26384
|
"use strict";
|
|
27969
26385
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27970
26386
|
exports.moveFilesToNewDirectory = exports.convertNxExecutor = exports.convertNxGenerator = exports.offsetFromRoot = exports.ChangeType = exports.applyChangesToString = exports.extractLayoutDirectory = exports.getWorkspaceLayout = exports.names = exports.installPackagesTask = exports.NX_VERSION = exports.removeDependenciesFromPackageJson = exports.ensurePackage = exports.addDependenciesToPackageJson = exports.readTargetOptions = exports.targetToTargetString = exports.parseTargetString = exports.visitNotIgnoredFiles = exports.runTasksInSerial = exports.updateTsConfigsToJs = exports.toJS = exports.generateFiles = exports.formatFiles = void 0;
|
|
27971
|
-
var format_files_1 =
|
|
26387
|
+
var format_files_1 = require_format_files();
|
|
27972
26388
|
Object.defineProperty(exports, "formatFiles", { enumerable: true, get: function() {
|
|
27973
26389
|
return format_files_1.formatFiles;
|
|
27974
26390
|
} });
|
|
27975
|
-
var generate_files_1 =
|
|
26391
|
+
var generate_files_1 = require_generate_files();
|
|
27976
26392
|
Object.defineProperty(exports, "generateFiles", { enumerable: true, get: function() {
|
|
27977
26393
|
return generate_files_1.generateFiles;
|
|
27978
26394
|
} });
|
|
27979
|
-
var to_js_1 =
|
|
26395
|
+
var to_js_1 = require_to_js();
|
|
27980
26396
|
Object.defineProperty(exports, "toJS", { enumerable: true, get: function() {
|
|
27981
26397
|
return to_js_1.toJS;
|
|
27982
26398
|
} });
|
|
27983
|
-
var update_ts_configs_to_js_1 =
|
|
26399
|
+
var update_ts_configs_to_js_1 = require_update_ts_configs_to_js();
|
|
27984
26400
|
Object.defineProperty(exports, "updateTsConfigsToJs", { enumerable: true, get: function() {
|
|
27985
26401
|
return update_ts_configs_to_js_1.updateTsConfigsToJs;
|
|
27986
26402
|
} });
|
|
27987
|
-
var run_tasks_in_serial_1 =
|
|
26403
|
+
var run_tasks_in_serial_1 = require_run_tasks_in_serial();
|
|
27988
26404
|
Object.defineProperty(exports, "runTasksInSerial", { enumerable: true, get: function() {
|
|
27989
26405
|
return run_tasks_in_serial_1.runTasksInSerial;
|
|
27990
26406
|
} });
|
|
27991
|
-
var visit_not_ignored_files_1 =
|
|
26407
|
+
var visit_not_ignored_files_1 = require_visit_not_ignored_files();
|
|
27992
26408
|
Object.defineProperty(exports, "visitNotIgnoredFiles", { enumerable: true, get: function() {
|
|
27993
26409
|
return visit_not_ignored_files_1.visitNotIgnoredFiles;
|
|
27994
26410
|
} });
|
|
27995
|
-
var parse_target_string_1 =
|
|
26411
|
+
var parse_target_string_1 = require_parse_target_string();
|
|
27996
26412
|
Object.defineProperty(exports, "parseTargetString", { enumerable: true, get: function() {
|
|
27997
26413
|
return parse_target_string_1.parseTargetString;
|
|
27998
26414
|
} });
|
|
27999
26415
|
Object.defineProperty(exports, "targetToTargetString", { enumerable: true, get: function() {
|
|
28000
26416
|
return parse_target_string_1.targetToTargetString;
|
|
28001
26417
|
} });
|
|
28002
|
-
var read_target_options_1 =
|
|
26418
|
+
var read_target_options_1 = require_read_target_options();
|
|
28003
26419
|
Object.defineProperty(exports, "readTargetOptions", { enumerable: true, get: function() {
|
|
28004
26420
|
return read_target_options_1.readTargetOptions;
|
|
28005
26421
|
} });
|
|
28006
|
-
var package_json_1 =
|
|
26422
|
+
var package_json_1 = require_package_json();
|
|
28007
26423
|
Object.defineProperty(exports, "addDependenciesToPackageJson", { enumerable: true, get: function() {
|
|
28008
26424
|
return package_json_1.addDependenciesToPackageJson;
|
|
28009
26425
|
} });
|
|
@@ -28016,41 +26432,41 @@ var require_public_api2 = __commonJS({
|
|
|
28016
26432
|
Object.defineProperty(exports, "NX_VERSION", { enumerable: true, get: function() {
|
|
28017
26433
|
return package_json_1.NX_VERSION;
|
|
28018
26434
|
} });
|
|
28019
|
-
var install_packages_task_1 =
|
|
26435
|
+
var install_packages_task_1 = require_install_packages_task();
|
|
28020
26436
|
Object.defineProperty(exports, "installPackagesTask", { enumerable: true, get: function() {
|
|
28021
26437
|
return install_packages_task_1.installPackagesTask;
|
|
28022
26438
|
} });
|
|
28023
|
-
var names_1 =
|
|
26439
|
+
var names_1 = require_names();
|
|
28024
26440
|
Object.defineProperty(exports, "names", { enumerable: true, get: function() {
|
|
28025
26441
|
return names_1.names;
|
|
28026
26442
|
} });
|
|
28027
|
-
var get_workspace_layout_1 =
|
|
26443
|
+
var get_workspace_layout_1 = require_get_workspace_layout();
|
|
28028
26444
|
Object.defineProperty(exports, "getWorkspaceLayout", { enumerable: true, get: function() {
|
|
28029
26445
|
return get_workspace_layout_1.getWorkspaceLayout;
|
|
28030
26446
|
} });
|
|
28031
26447
|
Object.defineProperty(exports, "extractLayoutDirectory", { enumerable: true, get: function() {
|
|
28032
26448
|
return get_workspace_layout_1.extractLayoutDirectory;
|
|
28033
26449
|
} });
|
|
28034
|
-
var string_change_1 =
|
|
26450
|
+
var string_change_1 = require_string_change();
|
|
28035
26451
|
Object.defineProperty(exports, "applyChangesToString", { enumerable: true, get: function() {
|
|
28036
26452
|
return string_change_1.applyChangesToString;
|
|
28037
26453
|
} });
|
|
28038
26454
|
Object.defineProperty(exports, "ChangeType", { enumerable: true, get: function() {
|
|
28039
26455
|
return string_change_1.ChangeType;
|
|
28040
26456
|
} });
|
|
28041
|
-
var offset_from_root_1 =
|
|
26457
|
+
var offset_from_root_1 = require_offset_from_root();
|
|
28042
26458
|
Object.defineProperty(exports, "offsetFromRoot", { enumerable: true, get: function() {
|
|
28043
26459
|
return offset_from_root_1.offsetFromRoot;
|
|
28044
26460
|
} });
|
|
28045
|
-
var invoke_nx_generator_1 =
|
|
26461
|
+
var invoke_nx_generator_1 = require_invoke_nx_generator();
|
|
28046
26462
|
Object.defineProperty(exports, "convertNxGenerator", { enumerable: true, get: function() {
|
|
28047
26463
|
return invoke_nx_generator_1.convertNxGenerator;
|
|
28048
26464
|
} });
|
|
28049
|
-
var convert_nx_executor_1 =
|
|
26465
|
+
var convert_nx_executor_1 = require_convert_nx_executor();
|
|
28050
26466
|
Object.defineProperty(exports, "convertNxExecutor", { enumerable: true, get: function() {
|
|
28051
26467
|
return convert_nx_executor_1.convertNxExecutor;
|
|
28052
26468
|
} });
|
|
28053
|
-
var move_dir_1 =
|
|
26469
|
+
var move_dir_1 = require_move_dir();
|
|
28054
26470
|
Object.defineProperty(exports, "moveFilesToNewDirectory", { enumerable: true, get: function() {
|
|
28055
26471
|
return move_dir_1.moveFilesToNewDirectory;
|
|
28056
26472
|
} });
|
|
@@ -28058,13 +26474,53 @@ var require_public_api2 = __commonJS({
|
|
|
28058
26474
|
});
|
|
28059
26475
|
|
|
28060
26476
|
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/index.js
|
|
28061
|
-
var
|
|
26477
|
+
var require_devkit = __commonJS({
|
|
28062
26478
|
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/index.js"(exports) {
|
|
28063
26479
|
"use strict";
|
|
28064
26480
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28065
26481
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
28066
26482
|
tslib_1.__exportStar(require("nx/src/devkit-exports"), exports);
|
|
28067
|
-
tslib_1.__exportStar(
|
|
26483
|
+
tslib_1.__exportStar(require_public_api(), exports);
|
|
26484
|
+
}
|
|
26485
|
+
});
|
|
26486
|
+
|
|
26487
|
+
// node_modules/.pnpm/@nx+esbuild@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_esbuild@0.19._qd2wqrdgtfa7fy24o2frhwj6em/node_modules/@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies.js
|
|
26488
|
+
var require_get_extra_dependencies = __commonJS({
|
|
26489
|
+
"node_modules/.pnpm/@nx+esbuild@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_esbuild@0.19._qd2wqrdgtfa7fy24o2frhwj6em/node_modules/@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies.js"(exports) {
|
|
26490
|
+
"use strict";
|
|
26491
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26492
|
+
exports.getExtraDependencies = void 0;
|
|
26493
|
+
function getExtraDependencies2(projectName, graph) {
|
|
26494
|
+
const deps = /* @__PURE__ */ new Map();
|
|
26495
|
+
recur(projectName);
|
|
26496
|
+
function recur(currProjectName) {
|
|
26497
|
+
const allDeps = graph.dependencies[currProjectName];
|
|
26498
|
+
const externalDeps = allDeps.reduce((acc, node) => {
|
|
26499
|
+
const found = graph.externalNodes[node.target];
|
|
26500
|
+
if (found)
|
|
26501
|
+
acc.push(found);
|
|
26502
|
+
return acc;
|
|
26503
|
+
}, []);
|
|
26504
|
+
const internalDeps = allDeps.reduce((acc, node) => {
|
|
26505
|
+
const found = graph.nodes[node.target];
|
|
26506
|
+
if (found)
|
|
26507
|
+
acc.push(found);
|
|
26508
|
+
return acc;
|
|
26509
|
+
}, []);
|
|
26510
|
+
for (const externalDep of externalDeps) {
|
|
26511
|
+
deps.set(externalDep.name, {
|
|
26512
|
+
name: externalDep.name,
|
|
26513
|
+
outputs: [],
|
|
26514
|
+
node: externalDep
|
|
26515
|
+
});
|
|
26516
|
+
}
|
|
26517
|
+
for (const internalDep of internalDeps) {
|
|
26518
|
+
recur(internalDep.name);
|
|
26519
|
+
}
|
|
26520
|
+
}
|
|
26521
|
+
return Array.from(deps.values());
|
|
26522
|
+
}
|
|
26523
|
+
exports.getExtraDependencies = getExtraDependencies2;
|
|
28068
26524
|
}
|
|
28069
26525
|
});
|
|
28070
26526
|
|
|
@@ -28151,7 +26607,7 @@ var require_package2 = __commonJS({
|
|
|
28151
26607
|
});
|
|
28152
26608
|
|
|
28153
26609
|
// node_modules/.pnpm/@nx+js@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_nx@17.0.3_typescript@5.2.2_verdaccio@5.27.0/node_modules/@nx/js/src/utils/versions.js
|
|
28154
|
-
var
|
|
26610
|
+
var require_versions2 = __commonJS({
|
|
28155
26611
|
"node_modules/.pnpm/@nx+js@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_nx@17.0.3_typescript@5.2.2_verdaccio@5.27.0/node_modules/@nx/js/src/utils/versions.js"(exports) {
|
|
28156
26612
|
"use strict";
|
|
28157
26613
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -28177,8 +26633,8 @@ var require_add_tslib_dependencies = __commonJS({
|
|
|
28177
26633
|
"use strict";
|
|
28178
26634
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28179
26635
|
exports.addTsLibDependencies = void 0;
|
|
28180
|
-
var devkit_1 =
|
|
28181
|
-
var versions_1 =
|
|
26636
|
+
var devkit_1 = require_devkit();
|
|
26637
|
+
var versions_1 = require_versions2();
|
|
28182
26638
|
function addTsLibDependencies(tree) {
|
|
28183
26639
|
return (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
28184
26640
|
tslib: versions_1.tsLibVersion
|
|
@@ -28194,7 +26650,7 @@ var require_load_ts_transformers = __commonJS({
|
|
|
28194
26650
|
"use strict";
|
|
28195
26651
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28196
26652
|
exports.loadTsTransformers = void 0;
|
|
28197
|
-
var devkit_1 =
|
|
26653
|
+
var devkit_1 = require_devkit();
|
|
28198
26654
|
var path_1 = require("path");
|
|
28199
26655
|
function loadTsTransformers(plugins, moduleResolver = require.resolve) {
|
|
28200
26656
|
const beforeHooks = [];
|
|
@@ -28738,8 +27194,8 @@ var require_ensure_typescript = __commonJS({
|
|
|
28738
27194
|
"use strict";
|
|
28739
27195
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28740
27196
|
exports.ensureTypescript = void 0;
|
|
28741
|
-
var devkit_1 =
|
|
28742
|
-
var versions_1 =
|
|
27197
|
+
var devkit_1 = require_devkit();
|
|
27198
|
+
var versions_1 = require_versions2();
|
|
28743
27199
|
function ensureTypescript() {
|
|
28744
27200
|
return (0, devkit_1.ensurePackage)("typescript", versions_1.typescriptVersion);
|
|
28745
27201
|
}
|
|
@@ -28753,7 +27209,7 @@ var require_ts_config = __commonJS({
|
|
|
28753
27209
|
"use strict";
|
|
28754
27210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28755
27211
|
exports.readTsConfigPaths = exports.addTsConfigPath = exports.getRootTsConfigFileName = exports.getRootTsConfigPath = exports.getRelativePathToRootTsConfig = exports.getRootTsConfigPathInTree = exports.readTsConfig = void 0;
|
|
28756
|
-
var devkit_1 =
|
|
27212
|
+
var devkit_1 = require_devkit();
|
|
28757
27213
|
var fs_1 = require("fs");
|
|
28758
27214
|
var path_1 = require("path");
|
|
28759
27215
|
var ensure_typescript_1 = require_ensure_typescript();
|
|
@@ -28994,7 +27450,7 @@ var require_compiler_helper_dependency = __commonJS({
|
|
|
28994
27450
|
"use strict";
|
|
28995
27451
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28996
27452
|
exports.getHelperDependenciesFromProjectGraph = exports.getHelperDependency = exports.HelperDependency = void 0;
|
|
28997
|
-
var devkit_1 =
|
|
27453
|
+
var devkit_1 = require_devkit();
|
|
28998
27454
|
var path_1 = require("path");
|
|
28999
27455
|
var ts_config_1 = require_ts_config();
|
|
29000
27456
|
var get_swcrc_path_1 = require_get_swcrc_path();
|
|
@@ -29224,7 +27680,7 @@ var require_package3 = __commonJS({
|
|
|
29224
27680
|
});
|
|
29225
27681
|
|
|
29226
27682
|
// node_modules/.pnpm/@nx+workspace@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96/node_modules/@nx/workspace/src/utils/versions.js
|
|
29227
|
-
var
|
|
27683
|
+
var require_versions3 = __commonJS({
|
|
29228
27684
|
"node_modules/.pnpm/@nx+workspace@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96/node_modules/@nx/workspace/src/utils/versions.js"(exports) {
|
|
29229
27685
|
"use strict";
|
|
29230
27686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -29241,7 +27697,7 @@ var require_ts_config2 = __commonJS({
|
|
|
29241
27697
|
"use strict";
|
|
29242
27698
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29243
27699
|
exports.findNodes = exports.getRootTsConfigFileName = exports.getRelativePathToRootTsConfig = exports.getRootTsConfigPathInTree = exports.readTsConfig = void 0;
|
|
29244
|
-
var devkit_1 =
|
|
27700
|
+
var devkit_1 = require_devkit();
|
|
29245
27701
|
var fs_1 = require("fs");
|
|
29246
27702
|
var path_1 = require("path");
|
|
29247
27703
|
var typescript_1 = require_typescript();
|
|
@@ -29312,7 +27768,7 @@ var require_compilation = __commonJS({
|
|
|
29312
27768
|
"use strict";
|
|
29313
27769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29314
27770
|
exports.compileTypeScriptWatcher = exports.compileTypeScript = void 0;
|
|
29315
|
-
var devkit_1 =
|
|
27771
|
+
var devkit_1 = require_devkit();
|
|
29316
27772
|
var fs_1 = require("fs");
|
|
29317
27773
|
var ts_config_1 = require_ts_config2();
|
|
29318
27774
|
var typescript_1 = require_typescript();
|
|
@@ -29454,9 +27910,9 @@ var require_typescript = __commonJS({
|
|
|
29454
27910
|
"use strict";
|
|
29455
27911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29456
27912
|
exports.ensureTypescript = exports.resolveModuleByImport = exports.getSourceNodes = exports.compileTypeScript = void 0;
|
|
29457
|
-
var devkit_1 =
|
|
27913
|
+
var devkit_1 = require_devkit();
|
|
29458
27914
|
var path_1 = require("path");
|
|
29459
|
-
var versions_1 =
|
|
27915
|
+
var versions_1 = require_versions3();
|
|
29460
27916
|
var compilation_1 = require_compilation();
|
|
29461
27917
|
Object.defineProperty(exports, "compileTypeScript", { enumerable: true, get: function() {
|
|
29462
27918
|
return compilation_1.compileTypeScript;
|
|
@@ -29512,7 +27968,7 @@ var require_ast_utils = __commonJS({
|
|
|
29512
27968
|
exports.findNodes = exports.findClass = exports.addMethod = exports.addParameterToConstructor = exports.replaceNodeValue = exports.getImport = exports.addGlobal = exports.insertImport = exports.removeChange = exports.replaceChange = exports.insertChange = exports.resolveModuleByImport = void 0;
|
|
29513
27969
|
var typescript_1 = require_typescript();
|
|
29514
27970
|
var ensure_typescript_1 = require_ensure_typescript();
|
|
29515
|
-
var devkit_1 =
|
|
27971
|
+
var devkit_1 = require_devkit();
|
|
29516
27972
|
var path_1 = require("path");
|
|
29517
27973
|
var normalizedAppRoot = devkit_1.workspaceRoot.replace(/\\/g, "/");
|
|
29518
27974
|
var tsModule;
|
|
@@ -29751,7 +28207,7 @@ var require_watch_for_single_file_changes = __commonJS({
|
|
|
29751
28207
|
"use strict";
|
|
29752
28208
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29753
28209
|
exports.watchForSingleFileChanges = void 0;
|
|
29754
|
-
var devkit_1 =
|
|
28210
|
+
var devkit_1 = require_devkit();
|
|
29755
28211
|
var client_1 = require("nx/src/daemon/client/client");
|
|
29756
28212
|
var path_1 = require("path");
|
|
29757
28213
|
async function watchForSingleFileChanges(projectName, projectRoot, relativeFilePath, callback) {
|
|
@@ -32026,7 +30482,7 @@ var require_update_package_json = __commonJS({
|
|
|
32026
30482
|
exports.getUpdatedPackageJsonContent = exports.getExports = exports.updatePackageJson = void 0;
|
|
32027
30483
|
var lock_file_1 = require("nx/src/plugins/js/lock-file/lock-file");
|
|
32028
30484
|
var create_package_json_1 = require("nx/src/plugins/js/package-json/create-package-json");
|
|
32029
|
-
var devkit_1 =
|
|
30485
|
+
var devkit_1 = require_devkit();
|
|
32030
30486
|
var path_1 = require("path");
|
|
32031
30487
|
var fs_extra_1 = require_lib4();
|
|
32032
30488
|
var fileutils_1 = require("nx/src/utils/fileutils");
|
|
@@ -32184,7 +30640,7 @@ var require_buildable_libs_utils = __commonJS({
|
|
|
32184
30640
|
"use strict";
|
|
32185
30641
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32186
30642
|
exports.updateBuildableProjectPackageJsonDependencies = exports.updatePaths = exports.findMissingBuildDependencies = exports.checkDependentProjectsHaveBeenBuilt = exports.createTmpTsConfig = exports.computeCompilerOptionsPaths = exports.calculateDependenciesFromTaskGraph = exports.calculateProjectDependencies = exports.calculateProjectBuildableDependencies = void 0;
|
|
32187
|
-
var devkit_1 =
|
|
30643
|
+
var devkit_1 = require_devkit();
|
|
32188
30644
|
var fs_1 = require("fs");
|
|
32189
30645
|
var operators_1 = require("nx/src/project-graph/operators");
|
|
32190
30646
|
var fileutils_1 = require("nx/src/utils/fileutils");
|
|
@@ -32531,7 +30987,7 @@ var require_check_dependencies = __commonJS({
|
|
|
32531
30987
|
});
|
|
32532
30988
|
|
|
32533
30989
|
// node_modules/.pnpm/@nx+js@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_nx@17.0.3_typescript@5.2.2_verdaccio@5.27.0/node_modules/@nx/js/src/utils/package-json/index.js
|
|
32534
|
-
var
|
|
30990
|
+
var require_package_json2 = __commonJS({
|
|
32535
30991
|
"node_modules/.pnpm/@nx+js@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_nx@17.0.3_typescript@5.2.2_verdaccio@5.27.0/node_modules/@nx/js/src/utils/package-json/index.js"(exports) {
|
|
32536
30992
|
"use strict";
|
|
32537
30993
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -38522,7 +36978,7 @@ var require_copy_assets_handler = __commonJS({
|
|
|
38522
36978
|
var fse = require_lib4();
|
|
38523
36979
|
var ignore_1 = require_ignore();
|
|
38524
36980
|
var fg = require_out4();
|
|
38525
|
-
var devkit_1 =
|
|
36981
|
+
var devkit_1 = require_devkit();
|
|
38526
36982
|
var client_1 = require("nx/src/daemon/client/client");
|
|
38527
36983
|
var defaultFileEventHandler = (events) => {
|
|
38528
36984
|
const dirs = new Set(events.map((event) => path3.dirname(event.dest)));
|
|
@@ -38699,7 +37155,7 @@ var require_create_entry_points = __commonJS({
|
|
|
38699
37155
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38700
37156
|
exports.createEntryPoints = void 0;
|
|
38701
37157
|
var fast_glob_1 = require_out4();
|
|
38702
|
-
var devkit_1 =
|
|
37158
|
+
var devkit_1 = require_devkit();
|
|
38703
37159
|
function createEntryPoints(additionalEntryPoints, root) {
|
|
38704
37160
|
if (!additionalEntryPoints?.length)
|
|
38705
37161
|
return [];
|
|
@@ -43325,9 +41781,9 @@ var require_project_name_and_root_utils = __commonJS({
|
|
|
43325
41781
|
exports.setCwd = exports.determineProjectNameAndRootOptions = void 0;
|
|
43326
41782
|
var enquirer_1 = require_enquirer();
|
|
43327
41783
|
var path_1 = require("path");
|
|
43328
|
-
var nx_1 =
|
|
43329
|
-
var get_workspace_layout_1 =
|
|
43330
|
-
var names_1 =
|
|
41784
|
+
var nx_1 = require_nx();
|
|
41785
|
+
var get_workspace_layout_1 = require_get_workspace_layout();
|
|
41786
|
+
var names_1 = require_names();
|
|
43331
41787
|
var { joinPathFragments: joinPathFragments5, normalizePath, logger, readJson: readJson2, stripIndents, workspaceRoot } = (0, nx_1.requireNx)();
|
|
43332
41788
|
var deprecationWarning = stripIndents`
|
|
43333
41789
|
In Nx 18, generating projects will no longer derive the name and root.
|
|
@@ -43635,8 +42091,8 @@ var require_add_swc_dependencies = __commonJS({
|
|
|
43635
42091
|
"use strict";
|
|
43636
42092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43637
42093
|
exports.addSwcRegisterDependencies = exports.addSwcDependencies = void 0;
|
|
43638
|
-
var devkit_1 =
|
|
43639
|
-
var versions_1 =
|
|
42094
|
+
var devkit_1 = require_devkit();
|
|
42095
|
+
var versions_1 = require_versions2();
|
|
43640
42096
|
function addSwcDependencies(tree) {
|
|
43641
42097
|
return (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
43642
42098
|
"@swc/helpers": versions_1.swcHelpersVersion
|
|
@@ -43683,12 +42139,12 @@ var require_init = __commonJS({
|
|
|
43683
42139
|
"use strict";
|
|
43684
42140
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43685
42141
|
exports.initGenerator = void 0;
|
|
43686
|
-
var devkit_1 =
|
|
42142
|
+
var devkit_1 = require_devkit();
|
|
43687
42143
|
var semver_1 = require_semver3();
|
|
43688
42144
|
var package_json_1 = require("nx/src/utils/package-json");
|
|
43689
42145
|
var semver_2 = require_semver2();
|
|
43690
42146
|
var ts_config_1 = require_ts_config();
|
|
43691
|
-
var versions_1 =
|
|
42147
|
+
var versions_1 = require_versions2();
|
|
43692
42148
|
var path_1 = require("path");
|
|
43693
42149
|
async function getInstalledTypescriptVersion(tree) {
|
|
43694
42150
|
const rootPackageJson = (0, devkit_1.readJson)(tree, "package.json");
|
|
@@ -43791,9 +42247,9 @@ var require_generator = __commonJS({
|
|
|
43791
42247
|
"use strict";
|
|
43792
42248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43793
42249
|
exports.setupVerdaccio = void 0;
|
|
43794
|
-
var devkit_1 =
|
|
42250
|
+
var devkit_1 = require_devkit();
|
|
43795
42251
|
var path3 = require("path");
|
|
43796
|
-
var versions_1 =
|
|
42252
|
+
var versions_1 = require_versions2();
|
|
43797
42253
|
var child_process_1 = require("child_process");
|
|
43798
42254
|
async function setupVerdaccio2(tree, options) {
|
|
43799
42255
|
if (!tree.exists(".verdaccio/config.yml")) {
|
|
@@ -43863,7 +42319,7 @@ var require_ast_utils2 = __commonJS({
|
|
|
43863
42319
|
"use strict";
|
|
43864
42320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43865
42321
|
exports.generateAst = exports.mapFilePath = exports.mapFilePaths = exports.generateFlatOverride = exports.generateRequire = exports.stringifyNodeList = exports.generatePluginExtendsElement = exports.generateSpreadElement = exports.createNodeList = exports.addCompatToFlatConfig = exports.addPluginsToExportsBlock = exports.removeCompatExtends = exports.removePlugin = exports.addBlockToFlatConfigExport = exports.addImportToFlatConfig = exports.replaceOverride = exports.hasOverride = exports.removeOverridesFromLintConfig = void 0;
|
|
43866
|
-
var devkit_1 =
|
|
42322
|
+
var devkit_1 = require_devkit();
|
|
43867
42323
|
var ts2 = require("typescript");
|
|
43868
42324
|
function removeOverridesFromLintConfig(content) {
|
|
43869
42325
|
const source = ts2.createSourceFile("", content, ts2.ScriptTarget.Latest, true, ts2.ScriptKind.JS);
|
|
@@ -44337,7 +42793,7 @@ var require_eslint_file = __commonJS({
|
|
|
44337
42793
|
"use strict";
|
|
44338
42794
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44339
42795
|
exports.getPluginImport = exports.addIgnoresToLintConfig = exports.addPluginsToLintConfig = exports.addExtendsToLintConfig = exports.replaceOverridesInLintConfig = exports.lintConfigHasOverride = exports.updateOverrideInLintConfig = exports.addOverrideToLintConfig = exports.updateRelativePathsInConfig = exports.isEslintConfigSupported = exports.findEslintFile = exports.baseEsLintFlatConfigFile = exports.baseEsLintConfigFile = exports.eslintConfigFileWhitelist = void 0;
|
|
44340
|
-
var devkit_1 =
|
|
42796
|
+
var devkit_1 = require_devkit();
|
|
44341
42797
|
var flat_config_1 = require_flat_config();
|
|
44342
42798
|
var ast_utils_1 = require_ast_utils2();
|
|
44343
42799
|
exports.eslintConfigFileWhitelist = [
|
|
@@ -44650,7 +43106,7 @@ var require_package4 = __commonJS({
|
|
|
44650
43106
|
});
|
|
44651
43107
|
|
|
44652
43108
|
// node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js
|
|
44653
|
-
var
|
|
43109
|
+
var require_versions4 = __commonJS({
|
|
44654
43110
|
"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js"(exports) {
|
|
44655
43111
|
"use strict";
|
|
44656
43112
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -44757,8 +43213,8 @@ var require_init2 = __commonJS({
|
|
|
44757
43213
|
"use strict";
|
|
44758
43214
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44759
43215
|
exports.lintInitGenerator = void 0;
|
|
44760
|
-
var devkit_1 =
|
|
44761
|
-
var versions_1 =
|
|
43216
|
+
var devkit_1 = require_devkit();
|
|
43217
|
+
var versions_1 = require_versions4();
|
|
44762
43218
|
var eslint_file_1 = require_eslint_file();
|
|
44763
43219
|
var global_eslint_config_1 = require_global_eslint_config();
|
|
44764
43220
|
function addTargetDefaults(tree) {
|
|
@@ -44823,12 +43279,12 @@ var require_init_migration = __commonJS({
|
|
|
44823
43279
|
"use strict";
|
|
44824
43280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44825
43281
|
exports.findLintTarget = exports.migrateConfigToMonorepoStyle = void 0;
|
|
44826
|
-
var devkit_1 =
|
|
43282
|
+
var devkit_1 = require_devkit();
|
|
44827
43283
|
var path_1 = require("path");
|
|
44828
43284
|
var eslint_file_1 = require_eslint_file();
|
|
44829
43285
|
var global_eslint_config_1 = require_global_eslint_config();
|
|
44830
43286
|
var flat_config_1 = require_flat_config();
|
|
44831
|
-
var versions_1 =
|
|
43287
|
+
var versions_1 = require_versions4();
|
|
44832
43288
|
var ast_utils_1 = require_ast_utils2();
|
|
44833
43289
|
function migrateConfigToMonorepoStyle(projects, tree, unitTestRunner) {
|
|
44834
43290
|
if ((0, flat_config_1.useFlatConfig)(tree)) {
|
|
@@ -44914,7 +43370,7 @@ var require_lint_project = __commonJS({
|
|
|
44914
43370
|
"use strict";
|
|
44915
43371
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44916
43372
|
exports.lintProjectGenerator = exports.mapLintPattern = void 0;
|
|
44917
|
-
var devkit_1 =
|
|
43373
|
+
var devkit_1 = require_devkit();
|
|
44918
43374
|
var eslint_file_1 = require_eslint_file();
|
|
44919
43375
|
var path_1 = require("path");
|
|
44920
43376
|
var init_1 = require_init2();
|
|
@@ -45085,14 +43541,14 @@ var require_library = __commonJS({
|
|
|
45085
43541
|
"use strict";
|
|
45086
43542
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45087
43543
|
exports.addLint = exports.libraryGeneratorInternal = exports.libraryGenerator = void 0;
|
|
45088
|
-
var devkit_1 =
|
|
43544
|
+
var devkit_1 = require_devkit();
|
|
45089
43545
|
var project_name_and_root_utils_1 = require_project_name_and_root_utils();
|
|
45090
43546
|
var ts_config_1 = require_ts_config();
|
|
45091
43547
|
var path_1 = require("path");
|
|
45092
43548
|
var minimal_publish_script_1 = require_minimal_publish_script();
|
|
45093
43549
|
var add_swc_config_1 = require_add_swc_config();
|
|
45094
43550
|
var add_swc_dependencies_1 = require_add_swc_dependencies();
|
|
45095
|
-
var versions_1 =
|
|
43551
|
+
var versions_1 = require_versions2();
|
|
45096
43552
|
var init_1 = require_init();
|
|
45097
43553
|
var generator_1 = require_generator();
|
|
45098
43554
|
var create_ts_config_1 = require_create_ts_config();
|
|
@@ -45646,7 +44102,7 @@ var require_src2 = __commonJS({
|
|
|
45646
44102
|
tslib_1.__exportStar(require_ts_config(), exports);
|
|
45647
44103
|
tslib_1.__exportStar(require_create_ts_config(), exports);
|
|
45648
44104
|
tslib_1.__exportStar(require_ast_utils(), exports);
|
|
45649
|
-
tslib_1.__exportStar(
|
|
44105
|
+
tslib_1.__exportStar(require_package_json2(), exports);
|
|
45650
44106
|
tslib_1.__exportStar(require_assets(), exports);
|
|
45651
44107
|
tslib_1.__exportStar(require_update_package_json(), exports);
|
|
45652
44108
|
tslib_1.__exportStar(require_create_entry_points(), exports);
|
|
@@ -45756,7 +44212,7 @@ var require_inline = __commonJS({
|
|
|
45756
44212
|
"use strict";
|
|
45757
44213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45758
44214
|
exports.getRootTsConfigPath = exports.postProcessInlinedDependencies = exports.handleInliningBuild = exports.isInlineGraphEmpty = void 0;
|
|
45759
|
-
var devkit_1 =
|
|
44215
|
+
var devkit_1 = require_devkit();
|
|
45760
44216
|
var fs_extra_1 = require_lib4();
|
|
45761
44217
|
var path_1 = require("path");
|
|
45762
44218
|
var fs_1 = require("fs");
|
|
@@ -46222,7 +44678,7 @@ var require_get_tsconfig = __commonJS({
|
|
|
46222
44678
|
"use strict";
|
|
46223
44679
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46224
44680
|
exports.getProcessedTaskTsConfigs = void 0;
|
|
46225
|
-
var devkit_1 =
|
|
44681
|
+
var devkit_1 = require_devkit();
|
|
46226
44682
|
var path_1 = require("path");
|
|
46227
44683
|
var get_task_options_1 = require_get_task_options();
|
|
46228
44684
|
function getProcessedTaskTsConfigs(tasks, tasksOptions, context) {
|
|
@@ -49870,9 +48326,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
49870
48326
|
}
|
|
49871
48327
|
});
|
|
49872
48328
|
|
|
49873
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
48329
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
49874
48330
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
49875
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
48331
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
|
|
49876
48332
|
"use strict";
|
|
49877
48333
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49878
48334
|
var version = "8.0.0";
|
|
@@ -50332,9 +48788,9 @@ var require_resolve_from2 = __commonJS({
|
|
|
50332
48788
|
}
|
|
50333
48789
|
});
|
|
50334
48790
|
|
|
50335
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
48791
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
50336
48792
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
50337
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
48793
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
|
|
50338
48794
|
"use strict";
|
|
50339
48795
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50340
48796
|
function _interopRequireDefault(obj) {
|
|
@@ -50612,9 +49068,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
50612
49068
|
}
|
|
50613
49069
|
});
|
|
50614
49070
|
|
|
50615
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
49071
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
50616
49072
|
var require_chunk_UIX4URMV = __commonJS({
|
|
50617
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
49073
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
50618
49074
|
"use strict";
|
|
50619
49075
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50620
49076
|
function _interopRequireWildcard(obj) {
|
|
@@ -51548,9 +50004,9 @@ var require_dist3 = __commonJS({
|
|
|
51548
50004
|
}
|
|
51549
50005
|
});
|
|
51550
50006
|
|
|
51551
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
50007
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
51552
50008
|
var require_chunk_7G76EW2R = __commonJS({
|
|
51553
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
50009
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
51554
50010
|
"use strict";
|
|
51555
50011
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51556
50012
|
function _interopRequireDefault(obj) {
|
|
@@ -103208,7 +101664,7 @@ var require_anymatch = __commonJS({
|
|
|
103208
101664
|
});
|
|
103209
101665
|
|
|
103210
101666
|
// node_modules/.pnpm/binary-extensions@2.2.0/node_modules/binary-extensions/binary-extensions.json
|
|
103211
|
-
var
|
|
101667
|
+
var require_binary_extensions2 = __commonJS({
|
|
103212
101668
|
"node_modules/.pnpm/binary-extensions@2.2.0/node_modules/binary-extensions/binary-extensions.json"(exports, module2) {
|
|
103213
101669
|
module2.exports = [
|
|
103214
101670
|
"3dm",
|
|
@@ -103474,9 +101930,9 @@ var require_binary_extensions3 = __commonJS({
|
|
|
103474
101930
|
});
|
|
103475
101931
|
|
|
103476
101932
|
// node_modules/.pnpm/binary-extensions@2.2.0/node_modules/binary-extensions/index.js
|
|
103477
|
-
var
|
|
101933
|
+
var require_binary_extensions3 = __commonJS({
|
|
103478
101934
|
"node_modules/.pnpm/binary-extensions@2.2.0/node_modules/binary-extensions/index.js"(exports, module2) {
|
|
103479
|
-
module2.exports =
|
|
101935
|
+
module2.exports = require_binary_extensions2();
|
|
103480
101936
|
}
|
|
103481
101937
|
});
|
|
103482
101938
|
|
|
@@ -103485,7 +101941,7 @@ var require_is_binary_path = __commonJS({
|
|
|
103485
101941
|
"node_modules/.pnpm/is-binary-path@2.1.0/node_modules/is-binary-path/index.js"(exports, module2) {
|
|
103486
101942
|
"use strict";
|
|
103487
101943
|
var path3 = require("path");
|
|
103488
|
-
var binaryExtensions =
|
|
101944
|
+
var binaryExtensions = require_binary_extensions3();
|
|
103489
101945
|
var extensions = new Set(binaryExtensions);
|
|
103490
101946
|
module2.exports = (filePath) => extensions.has(path3.extname(filePath).slice(1).toLowerCase());
|
|
103491
101947
|
}
|
|
@@ -105287,9 +103743,9 @@ var require_chokidar = __commonJS({
|
|
|
105287
103743
|
}
|
|
105288
103744
|
});
|
|
105289
103745
|
|
|
105290
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
103746
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/index.js
|
|
105291
103747
|
var require_dist6 = __commonJS({
|
|
105292
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
103748
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/index.js"(exports) {
|
|
105293
103749
|
"use strict";
|
|
105294
103750
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
105295
103751
|
function _interopRequireDefault(obj) {
|
|
@@ -108129,191 +106585,6 @@ var require_dist6 = __commonJS({
|
|
|
108129
106585
|
}
|
|
108130
106586
|
});
|
|
108131
106587
|
|
|
108132
|
-
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.1.3/node_modules/@nx/devkit/src/generators/project-name-and-root-utils.js
|
|
108133
|
-
var require_project_name_and_root_utils2 = __commonJS({
|
|
108134
|
-
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.1.3/node_modules/@nx/devkit/src/generators/project-name-and-root-utils.js"(exports) {
|
|
108135
|
-
"use strict";
|
|
108136
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
108137
|
-
exports.setCwd = exports.determineProjectNameAndRootOptions = void 0;
|
|
108138
|
-
var enquirer_1 = require_enquirer();
|
|
108139
|
-
var path_1 = require("path");
|
|
108140
|
-
var nx_1 = require_nx();
|
|
108141
|
-
var get_workspace_layout_1 = require_get_workspace_layout();
|
|
108142
|
-
var names_1 = require_names();
|
|
108143
|
-
var { joinPathFragments: joinPathFragments5, normalizePath, logger, readJson: readJson2, stripIndents, workspaceRoot } = (0, nx_1.requireNx)();
|
|
108144
|
-
var deprecationWarning = stripIndents`
|
|
108145
|
-
In Nx 18, generating projects will no longer derive the name and root.
|
|
108146
|
-
Please provide the exact project name and root in the future.`;
|
|
108147
|
-
async function determineProjectNameAndRootOptions2(tree, options) {
|
|
108148
|
-
validateName(options.name, options.projectNameAndRootFormat);
|
|
108149
|
-
const formats = getProjectNameAndRootFormats(tree, options);
|
|
108150
|
-
const format2 = options.projectNameAndRootFormat ?? await determineFormat(tree, formats, options.callingGenerator);
|
|
108151
|
-
return {
|
|
108152
|
-
...formats[format2],
|
|
108153
|
-
projectNameAndRootFormat: format2
|
|
108154
|
-
};
|
|
108155
|
-
}
|
|
108156
|
-
exports.determineProjectNameAndRootOptions = determineProjectNameAndRootOptions2;
|
|
108157
|
-
function validateName(name, projectNameAndRootFormat) {
|
|
108158
|
-
if (projectNameAndRootFormat === "derived" && name.startsWith("@")) {
|
|
108159
|
-
throw new Error(`The project name "${name}" cannot start with "@" when the "projectNameAndRootFormat" is "derived".`);
|
|
108160
|
-
}
|
|
108161
|
-
const pattern = "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$";
|
|
108162
|
-
const validationRegex = new RegExp(pattern);
|
|
108163
|
-
if (!validationRegex.test(name)) {
|
|
108164
|
-
throw new Error(`The project name should match the pattern "${pattern}". The provided value "${name}" does not match.`);
|
|
108165
|
-
}
|
|
108166
|
-
}
|
|
108167
|
-
function getExample(callingGenerator, formats) {
|
|
108168
|
-
return `Example: nx g ${callingGenerator} ${formats["as-provided"].projectName} --directory ${formats["as-provided"].projectRoot}`;
|
|
108169
|
-
}
|
|
108170
|
-
async function determineFormat(tree, formats, callingGenerator) {
|
|
108171
|
-
if (!formats.derived) {
|
|
108172
|
-
return "as-provided";
|
|
108173
|
-
}
|
|
108174
|
-
if (process.env.NX_INTERACTIVE !== "true" || !isTTY()) {
|
|
108175
|
-
return "derived";
|
|
108176
|
-
}
|
|
108177
|
-
const asProvidedDescription = `As provided:
|
|
108178
|
-
Name: ${formats["as-provided"].projectName}
|
|
108179
|
-
Root: ${formats["as-provided"].projectRoot}`;
|
|
108180
|
-
const asProvidedSelectedValue = `${formats["as-provided"].projectName} @ ${formats["as-provided"].projectRoot}`;
|
|
108181
|
-
const derivedDescription = `Derived:
|
|
108182
|
-
Name: ${formats["derived"].projectName}
|
|
108183
|
-
Root: ${formats["derived"].projectRoot}`;
|
|
108184
|
-
const derivedSelectedValue = `${formats["derived"].projectName} @ ${formats["derived"].projectRoot}`;
|
|
108185
|
-
if (asProvidedSelectedValue === derivedSelectedValue) {
|
|
108186
|
-
return "as-provided";
|
|
108187
|
-
}
|
|
108188
|
-
const result = await (0, enquirer_1.prompt)({
|
|
108189
|
-
type: "select",
|
|
108190
|
-
name: "format",
|
|
108191
|
-
message: "What should be the project name and where should it be generated?",
|
|
108192
|
-
choices: [
|
|
108193
|
-
{
|
|
108194
|
-
message: asProvidedDescription,
|
|
108195
|
-
name: asProvidedSelectedValue
|
|
108196
|
-
},
|
|
108197
|
-
{
|
|
108198
|
-
message: derivedDescription,
|
|
108199
|
-
name: derivedSelectedValue
|
|
108200
|
-
}
|
|
108201
|
-
],
|
|
108202
|
-
initial: "as-provided"
|
|
108203
|
-
}).then(({ format: format2 }) => format2 === asProvidedSelectedValue ? "as-provided" : "derived");
|
|
108204
|
-
if (result === "derived" && callingGenerator) {
|
|
108205
|
-
const example = getExample(callingGenerator, formats);
|
|
108206
|
-
logger.warn(deprecationWarning + "\n" + example);
|
|
108207
|
-
}
|
|
108208
|
-
return result;
|
|
108209
|
-
}
|
|
108210
|
-
function getProjectNameAndRootFormats(tree, options) {
|
|
108211
|
-
const directory = options.directory ? normalizePath(options.directory.replace(/^\.?\//, "")) : void 0;
|
|
108212
|
-
const asProvidedProjectName = options.name;
|
|
108213
|
-
let asProvidedProjectDirectory;
|
|
108214
|
-
const relativeCwd = normalizePath((0, path_1.relative)(workspaceRoot, getCwd())).replace(/\/$/, "");
|
|
108215
|
-
if (directory) {
|
|
108216
|
-
if (directory === relativeCwd || directory.startsWith(`${relativeCwd}/`)) {
|
|
108217
|
-
asProvidedProjectDirectory = directory;
|
|
108218
|
-
} else {
|
|
108219
|
-
asProvidedProjectDirectory = joinPathFragments5(relativeCwd, directory);
|
|
108220
|
-
}
|
|
108221
|
-
} else if (options.rootProject) {
|
|
108222
|
-
asProvidedProjectDirectory = ".";
|
|
108223
|
-
} else {
|
|
108224
|
-
asProvidedProjectDirectory = relativeCwd;
|
|
108225
|
-
if (!relativeCwd.endsWith(asProvidedProjectName) && !relativeCwd.endsWith(options.name)) {
|
|
108226
|
-
asProvidedProjectDirectory = joinPathFragments5(relativeCwd, asProvidedProjectName);
|
|
108227
|
-
}
|
|
108228
|
-
}
|
|
108229
|
-
if (asProvidedProjectName.startsWith("@")) {
|
|
108230
|
-
const nameWithoutScope = asProvidedProjectName.split("/")[1];
|
|
108231
|
-
return {
|
|
108232
|
-
"as-provided": {
|
|
108233
|
-
projectName: asProvidedProjectName,
|
|
108234
|
-
names: {
|
|
108235
|
-
projectSimpleName: nameWithoutScope,
|
|
108236
|
-
projectFileName: nameWithoutScope
|
|
108237
|
-
},
|
|
108238
|
-
importPath: options.importPath ?? asProvidedProjectName,
|
|
108239
|
-
projectRoot: asProvidedProjectDirectory
|
|
108240
|
-
}
|
|
108241
|
-
};
|
|
108242
|
-
}
|
|
108243
|
-
let asProvidedImportPath;
|
|
108244
|
-
let npmScope;
|
|
108245
|
-
if (options.projectType === "library") {
|
|
108246
|
-
asProvidedImportPath = options.importPath;
|
|
108247
|
-
if (!asProvidedImportPath) {
|
|
108248
|
-
npmScope = getNpmScope(tree);
|
|
108249
|
-
asProvidedImportPath = asProvidedProjectDirectory === "." ? readJson2(tree, "package.json").name ?? getImportPath(npmScope, asProvidedProjectName) : getImportPath(npmScope, asProvidedProjectName);
|
|
108250
|
-
}
|
|
108251
|
-
}
|
|
108252
|
-
const name = (0, names_1.names)(options.name).fileName;
|
|
108253
|
-
let { projectDirectory, layoutDirectory } = getDirectories(tree, directory, options.projectType);
|
|
108254
|
-
const derivedProjectDirectoryWithoutLayout = projectDirectory ? `${(0, names_1.names)(projectDirectory).fileName}/${name}` : options.rootProject ? "." : name;
|
|
108255
|
-
const derivedProjectName = derivedProjectDirectoryWithoutLayout === "." ? name : derivedProjectDirectoryWithoutLayout.replace(/\//g, "-");
|
|
108256
|
-
const derivedSimpleProjectName = name;
|
|
108257
|
-
let derivedProjectDirectory = derivedProjectDirectoryWithoutLayout;
|
|
108258
|
-
if (derivedProjectDirectoryWithoutLayout !== ".") {
|
|
108259
|
-
derivedProjectDirectory = joinPathFragments5(layoutDirectory, derivedProjectDirectory);
|
|
108260
|
-
}
|
|
108261
|
-
let derivedImportPath;
|
|
108262
|
-
if (options.projectType === "library") {
|
|
108263
|
-
derivedImportPath = options.importPath;
|
|
108264
|
-
if (!derivedImportPath) {
|
|
108265
|
-
derivedImportPath = derivedProjectDirectory === "." ? readJson2(tree, "package.json").name ?? getImportPath(npmScope, derivedProjectName) : getImportPath(npmScope, derivedProjectDirectoryWithoutLayout);
|
|
108266
|
-
}
|
|
108267
|
-
}
|
|
108268
|
-
return {
|
|
108269
|
-
"as-provided": {
|
|
108270
|
-
projectName: asProvidedProjectName,
|
|
108271
|
-
names: {
|
|
108272
|
-
projectSimpleName: asProvidedProjectName,
|
|
108273
|
-
projectFileName: asProvidedProjectName
|
|
108274
|
-
},
|
|
108275
|
-
importPath: asProvidedImportPath,
|
|
108276
|
-
projectRoot: asProvidedProjectDirectory
|
|
108277
|
-
},
|
|
108278
|
-
derived: {
|
|
108279
|
-
projectName: derivedProjectName,
|
|
108280
|
-
names: {
|
|
108281
|
-
projectSimpleName: derivedSimpleProjectName,
|
|
108282
|
-
projectFileName: derivedProjectName
|
|
108283
|
-
},
|
|
108284
|
-
importPath: derivedImportPath,
|
|
108285
|
-
projectRoot: derivedProjectDirectory
|
|
108286
|
-
}
|
|
108287
|
-
};
|
|
108288
|
-
}
|
|
108289
|
-
function getDirectories(tree, directory, projectType) {
|
|
108290
|
-
let { projectDirectory, layoutDirectory } = (0, get_workspace_layout_1.extractLayoutDirectory)(directory);
|
|
108291
|
-
if (!layoutDirectory) {
|
|
108292
|
-
const { appsDir, libsDir } = (0, get_workspace_layout_1.getWorkspaceLayout)(tree);
|
|
108293
|
-
layoutDirectory = projectType === "application" ? appsDir : libsDir;
|
|
108294
|
-
}
|
|
108295
|
-
return { projectDirectory, layoutDirectory };
|
|
108296
|
-
}
|
|
108297
|
-
function getImportPath(npmScope, name) {
|
|
108298
|
-
return npmScope ? `${npmScope === "@" ? "" : "@"}${npmScope}/${name}` : name;
|
|
108299
|
-
}
|
|
108300
|
-
function getNpmScope(tree) {
|
|
108301
|
-
const { name } = tree.exists("package.json") ? readJson2(tree, "package.json") : { name: null };
|
|
108302
|
-
return name?.startsWith("@") ? name.split("/")[0].substring(1) : void 0;
|
|
108303
|
-
}
|
|
108304
|
-
function isTTY() {
|
|
108305
|
-
return !!process.stdout.isTTY && process.env["CI"] !== "true";
|
|
108306
|
-
}
|
|
108307
|
-
function getCwd() {
|
|
108308
|
-
return process.env.INIT_CWD?.startsWith(workspaceRoot) ? process.env.INIT_CWD : process.cwd();
|
|
108309
|
-
}
|
|
108310
|
-
function setCwd(path3) {
|
|
108311
|
-
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot, path3);
|
|
108312
|
-
}
|
|
108313
|
-
exports.setCwd = setCwd;
|
|
108314
|
-
}
|
|
108315
|
-
});
|
|
108316
|
-
|
|
108317
106588
|
// packages/workspace-tools/index.ts
|
|
108318
106589
|
var workspace_tools_exports = {};
|
|
108319
106590
|
__export(workspace_tools_exports, {
|
|
@@ -118966,13 +117237,13 @@ function modernConfig({
|
|
|
118966
117237
|
}
|
|
118967
117238
|
}
|
|
118968
117239
|
},
|
|
118969
|
-
minify: debug ? false : "terser",
|
|
117240
|
+
/*minify: debug ? false : "terser",
|
|
118970
117241
|
terserOptions: {
|
|
118971
117242
|
compress: true,
|
|
118972
117243
|
ecma: 2020,
|
|
118973
117244
|
keep_classnames: true,
|
|
118974
117245
|
keep_fnames: true
|
|
118975
|
-
}
|
|
117246
|
+
},*/
|
|
118976
117247
|
apiReport,
|
|
118977
117248
|
docModel,
|
|
118978
117249
|
tsdocMetadata,
|
|
@@ -119034,13 +117305,13 @@ function legacyConfig({
|
|
|
119034
117305
|
}
|
|
119035
117306
|
}
|
|
119036
117307
|
},
|
|
119037
|
-
minify: debug ? false : "terser",
|
|
117308
|
+
/*minify: debug ? false : "terser",
|
|
119038
117309
|
terserOptions: {
|
|
119039
117310
|
compress: true,
|
|
119040
117311
|
ecma: 2020,
|
|
119041
117312
|
keep_classnames: true,
|
|
119042
117313
|
keep_fnames: true
|
|
119043
|
-
}
|
|
117314
|
+
},*/
|
|
119044
117315
|
apiReport: false,
|
|
119045
117316
|
docModel: false,
|
|
119046
117317
|
tsdocMetadata: false,
|
|
@@ -119105,13 +117376,13 @@ function workerConfig({
|
|
|
119105
117376
|
}
|
|
119106
117377
|
}
|
|
119107
117378
|
},
|
|
119108
|
-
minify: debug ? false : "terser",
|
|
117379
|
+
/*minify: debug ? false : "terser",
|
|
119109
117380
|
terserOptions: {
|
|
119110
117381
|
compress: true,
|
|
119111
117382
|
ecma: 2020,
|
|
119112
117383
|
keep_classnames: true,
|
|
119113
117384
|
keep_fnames: true
|
|
119114
|
-
}
|
|
117385
|
+
},*/
|
|
119115
117386
|
apiReport,
|
|
119116
117387
|
docModel,
|
|
119117
117388
|
tsdocMetadata,
|
|
@@ -119131,7 +117402,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
119131
117402
|
}) {
|
|
119132
117403
|
const entry = globSync(
|
|
119133
117404
|
[
|
|
119134
|
-
rest.entry ? rest.entry : (0, import_path3.join)(sourceRoot, "
|
|
117405
|
+
rest.entry ? rest.entry : (0, import_path3.join)(sourceRoot, "**/*.{ts,tsx}"),
|
|
119135
117406
|
...additionalEntryPoints ?? []
|
|
119136
117407
|
],
|
|
119137
117408
|
{
|
|
@@ -120758,7 +119029,7 @@ var import_devkit5 = __toESM(require_devkit());
|
|
|
120758
119029
|
|
|
120759
119030
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
120760
119031
|
var import_devkit4 = __toESM(require_devkit());
|
|
120761
|
-
var import_project_name_and_root_utils = __toESM(
|
|
119032
|
+
var import_project_name_and_root_utils = __toESM(require_project_name_and_root_utils());
|
|
120762
119033
|
var import_js2 = __toESM(require_src2());
|
|
120763
119034
|
var import_init = __toESM(require_init());
|
|
120764
119035
|
var import_generator = __toESM(require_generator());
|