@storm-software/workspace-tools 1.168.0 → 1.169.0
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 +16 -0
- package/README.md +1 -1
- package/declarations.d.ts +8 -0
- package/index.js +3143 -260
- package/meta.json +1 -1
- package/package.json +7 -7
- package/src/base/base-executor.js +23 -16
- package/src/base/base-generator.js +23 -16
- package/src/base/index.js +123 -116
- package/src/base/typescript-library-generator.js +100 -100
- package/src/executors/cargo-build/executor.js +23 -16
- package/src/executors/cargo-check/executor.js +23 -16
- package/src/executors/cargo-clippy/executor.js +23 -16
- package/src/executors/cargo-doc/executor.js +23 -16
- package/src/executors/cargo-format/executor.js +23 -16
- package/src/executors/clean-package/executor.js +23 -16
- package/src/executors/rolldown/executor.js +23 -16
- package/src/executors/rollup/executor.js +134 -115
- package/src/executors/size-limit/executor.js +23 -16
- package/src/executors/tsup/executor.js +23 -16
- package/src/executors/tsup-browser/executor.js +23 -16
- package/src/executors/tsup-neutral/executor.js +23 -16
- package/src/executors/tsup-node/executor.js +23 -16
- package/src/executors/typia/executor.js +23 -16
- package/src/executors/unbuild/executor.js +23 -16
- package/src/generators/browser-library/generator.js +123 -116
- package/src/generators/config-schema/generator.js +23 -16
- package/src/generators/neutral-library/generator.js +123 -116
- package/src/generators/node-library/generator.js +123 -116
- package/src/generators/preset/generator.js +23 -16
- package/src/generators/release-version/generator.js +31 -24
- package/src/plugins/rust/index.js +13 -0
- package/src/plugins/typescript/index.js +13 -0
- package/src/utils/index.js +30 -16
- package/src/utils/project-tags.d.ts +8 -1
- package/src/utils/project-tags.js +7 -0
package/index.js
CHANGED
|
@@ -67063,7 +67063,8 @@ var init_schema = __esm({
|
|
|
67063
67063
|
github: RegistryUrlConfigSchema,
|
|
67064
67064
|
npm: RegistryUrlConfigSchema,
|
|
67065
67065
|
cargo: RegistryUrlConfigSchema,
|
|
67066
|
-
cyclone: RegistryUrlConfigSchema
|
|
67066
|
+
cyclone: RegistryUrlConfigSchema,
|
|
67067
|
+
container: RegistryUrlConfigSchema
|
|
67067
67068
|
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
67068
67069
|
ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
67069
67070
|
MultiThemeColorConfigSchema
|
|
@@ -67373,7 +67374,7 @@ var init_logger = __esm({
|
|
|
67373
67374
|
init_get_default_config();
|
|
67374
67375
|
init_get_log_level();
|
|
67375
67376
|
getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67376
|
-
|
|
67377
|
+
const _chalk = getChalk();
|
|
67377
67378
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
67378
67379
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
67379
67380
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -67622,10 +67623,9 @@ var init_get_config_file = __esm({
|
|
|
67622
67623
|
};
|
|
67623
67624
|
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
67624
67625
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
67625
|
-
|
|
67626
|
-
|
|
67627
|
-
|
|
67628
|
-
);
|
|
67626
|
+
const result = await getConfigFileByName("storm", workspacePath);
|
|
67627
|
+
let config = result.config;
|
|
67628
|
+
const configFile = result.configFile;
|
|
67629
67629
|
if (config && Object.keys(config).length > 0) {
|
|
67630
67630
|
writeTrace(
|
|
67631
67631
|
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
@@ -67640,15 +67640,15 @@ var init_get_config_file = __esm({
|
|
|
67640
67640
|
(fileName) => getConfigFileByName(fileName, workspacePath)
|
|
67641
67641
|
)
|
|
67642
67642
|
);
|
|
67643
|
-
for (const
|
|
67644
|
-
if (
|
|
67643
|
+
for (const result2 of results) {
|
|
67644
|
+
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
67645
67645
|
writeTrace(
|
|
67646
|
-
`Found additional configuration file "${
|
|
67646
|
+
`Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
|
|
67647
67647
|
{
|
|
67648
67648
|
logLevel: "all"
|
|
67649
67649
|
}
|
|
67650
67650
|
);
|
|
67651
|
-
config = (0, import_deepmerge.default)(
|
|
67651
|
+
config = (0, import_deepmerge.default)(result2.config ?? {}, config ?? {});
|
|
67652
67652
|
}
|
|
67653
67653
|
}
|
|
67654
67654
|
}
|
|
@@ -67730,7 +67730,8 @@ var init_get_env = __esm({
|
|
|
67730
67730
|
github: process.env[`${prefix}REGISTRY_GITHUB`],
|
|
67731
67731
|
npm: process.env[`${prefix}REGISTRY_NPM`],
|
|
67732
67732
|
cargo: process.env[`${prefix}REGISTRY_CARGO`],
|
|
67733
|
-
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`]
|
|
67733
|
+
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`],
|
|
67734
|
+
container: process.env[`${prefix}REGISTRY_CONTAINER`]
|
|
67734
67735
|
},
|
|
67735
67736
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
67736
67737
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
@@ -67989,6 +67990,11 @@ var init_set_env = __esm({
|
|
|
67989
67990
|
config.registry.cyclone
|
|
67990
67991
|
);
|
|
67991
67992
|
}
|
|
67993
|
+
if (config.registry.container) {
|
|
67994
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
67995
|
+
config.registry.cyclone
|
|
67996
|
+
);
|
|
67997
|
+
}
|
|
67992
67998
|
}
|
|
67993
67999
|
if (config.logLevel) {
|
|
67994
68000
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
@@ -68161,7 +68167,7 @@ var init_create_storm_config = __esm({
|
|
|
68161
68167
|
if (!_workspaceRoot) {
|
|
68162
68168
|
_workspaceRoot = findWorkspaceRoot();
|
|
68163
68169
|
}
|
|
68164
|
-
|
|
68170
|
+
const configFile = await getConfigFile(
|
|
68165
68171
|
_workspaceRoot
|
|
68166
68172
|
);
|
|
68167
68173
|
if (!configFile) {
|
|
@@ -68185,10 +68191,11 @@ var init_create_storm_config = __esm({
|
|
|
68185
68191
|
_workspaceRoot
|
|
68186
68192
|
);
|
|
68187
68193
|
setConfigEnv(config);
|
|
68188
|
-
|
|
68189
|
-
|
|
68190
|
-
|
|
68191
|
-
|
|
68194
|
+
writeTrace(
|
|
68195
|
+
`\u2699\uFE0F Using Storm configuration:
|
|
68196
|
+
${formatLogMessage(config)}`,
|
|
68197
|
+
config
|
|
68198
|
+
);
|
|
68192
68199
|
return config;
|
|
68193
68200
|
};
|
|
68194
68201
|
}
|
|
@@ -68757,12 +68764,12 @@ var init_tslib_es6 = __esm({
|
|
|
68757
68764
|
}
|
|
68758
68765
|
});
|
|
68759
68766
|
|
|
68760
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
68767
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/package.json
|
|
68761
68768
|
var require_package2 = __commonJS({
|
|
68762
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
68769
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/package.json"(exports2, module2) {
|
|
68763
68770
|
module2.exports = {
|
|
68764
68771
|
name: "@nx/js",
|
|
68765
|
-
version: "19.6.
|
|
68772
|
+
version: "19.6.4",
|
|
68766
68773
|
private: false,
|
|
68767
68774
|
description: "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
68768
68775
|
repository: {
|
|
@@ -68801,8 +68808,8 @@ var require_package2 = __commonJS({
|
|
|
68801
68808
|
"@babel/preset-env": "^7.23.2",
|
|
68802
68809
|
"@babel/preset-typescript": "^7.22.5",
|
|
68803
68810
|
"@babel/runtime": "^7.22.6",
|
|
68804
|
-
"@nx/devkit": "19.6.
|
|
68805
|
-
"@nx/workspace": "19.6.
|
|
68811
|
+
"@nx/devkit": "19.6.4",
|
|
68812
|
+
"@nx/workspace": "19.6.4",
|
|
68806
68813
|
"babel-plugin-const-enum": "^1.0.1",
|
|
68807
68814
|
"babel-plugin-macros": "^2.8.0",
|
|
68808
68815
|
"babel-plugin-transform-typescript-metadata": "^0.3.1",
|
|
@@ -68823,7 +68830,7 @@ var require_package2 = __commonJS({
|
|
|
68823
68830
|
"ts-node": "10.9.1",
|
|
68824
68831
|
"tsconfig-paths": "^4.1.2",
|
|
68825
68832
|
tslib: "^2.3.0",
|
|
68826
|
-
"@nrwl/js": "19.6.
|
|
68833
|
+
"@nrwl/js": "19.6.4"
|
|
68827
68834
|
},
|
|
68828
68835
|
peerDependencies: {
|
|
68829
68836
|
verdaccio: "^5.0.4"
|
|
@@ -68842,9 +68849,9 @@ var require_package2 = __commonJS({
|
|
|
68842
68849
|
}
|
|
68843
68850
|
});
|
|
68844
68851
|
|
|
68845
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
68852
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/versions.js
|
|
68846
68853
|
var require_versions = __commonJS({
|
|
68847
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
68854
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/versions.js"(exports2) {
|
|
68848
68855
|
"use strict";
|
|
68849
68856
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68850
68857
|
exports2.supportedTypescriptVersions = exports2.typescriptVersion = exports2.verdaccioVersion = exports2.typesNodeVersion = exports2.tsLibVersion = exports2.swcNodeVersion = exports2.swcHelpersVersion = exports2.swcCoreVersion = exports2.swcCliVersion = exports2.prettierVersion = exports2.esbuildVersion = exports2.nxVersion = void 0;
|
|
@@ -68863,9 +68870,9 @@ var require_versions = __commonJS({
|
|
|
68863
68870
|
}
|
|
68864
68871
|
});
|
|
68865
68872
|
|
|
68866
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
68873
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/add-tslib-dependencies.js
|
|
68867
68874
|
var require_add_tslib_dependencies = __commonJS({
|
|
68868
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
68875
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/add-tslib-dependencies.js"(exports2) {
|
|
68869
68876
|
"use strict";
|
|
68870
68877
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68871
68878
|
exports2.addTsLibDependencies = addTsLibDependencies;
|
|
@@ -68879,9 +68886,9 @@ var require_add_tslib_dependencies = __commonJS({
|
|
|
68879
68886
|
}
|
|
68880
68887
|
});
|
|
68881
68888
|
|
|
68882
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
68889
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/load-ts-transformers.js
|
|
68883
68890
|
var require_load_ts_transformers = __commonJS({
|
|
68884
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
68891
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/load-ts-transformers.js"(exports2, module2) {
|
|
68885
68892
|
"use strict";
|
|
68886
68893
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68887
68894
|
exports2.loadTsTransformers = loadTsTransformers;
|
|
@@ -68945,9 +68952,9 @@ var require_load_ts_transformers = __commonJS({
|
|
|
68945
68952
|
}
|
|
68946
68953
|
});
|
|
68947
68954
|
|
|
68948
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
68955
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/print-diagnostics.js
|
|
68949
68956
|
var require_print_diagnostics = __commonJS({
|
|
68950
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
68957
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/print-diagnostics.js"(exports2) {
|
|
68951
68958
|
"use strict";
|
|
68952
68959
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68953
68960
|
exports2.printDiagnostics = printDiagnostics;
|
|
@@ -68991,9 +68998,9 @@ var require_js_tokens = __commonJS({
|
|
|
68991
68998
|
}
|
|
68992
68999
|
});
|
|
68993
69000
|
|
|
68994
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
69001
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/code-frames/identifiers.js
|
|
68995
69002
|
var require_identifiers = __commonJS({
|
|
68996
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
69003
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/code-frames/identifiers.js"(exports2) {
|
|
68997
69004
|
"use strict";
|
|
68998
69005
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68999
69006
|
exports2.isReservedWord = isReservedWord;
|
|
@@ -69044,9 +69051,9 @@ var require_identifiers = __commonJS({
|
|
|
69044
69051
|
}
|
|
69045
69052
|
});
|
|
69046
69053
|
|
|
69047
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
69054
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/code-frames/highlight.js
|
|
69048
69055
|
var require_highlight = __commonJS({
|
|
69049
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
69056
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/code-frames/highlight.js"(exports2) {
|
|
69050
69057
|
"use strict";
|
|
69051
69058
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
69052
69059
|
exports2.highlight = highlight;
|
|
@@ -69110,9 +69117,9 @@ var require_highlight = __commonJS({
|
|
|
69110
69117
|
}
|
|
69111
69118
|
});
|
|
69112
69119
|
|
|
69113
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
69120
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/ensure-typescript.js
|
|
69114
69121
|
var require_ensure_typescript = __commonJS({
|
|
69115
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
69122
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/ensure-typescript.js"(exports2) {
|
|
69116
69123
|
"use strict";
|
|
69117
69124
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
69118
69125
|
exports2.ensureTypescript = ensureTypescript;
|
|
@@ -276618,9 +276625,9 @@ ${e2.message}`;
|
|
|
276618
276625
|
}
|
|
276619
276626
|
});
|
|
276620
276627
|
|
|
276621
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
276628
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/ts-config.js
|
|
276622
276629
|
var require_ts_config = __commonJS({
|
|
276623
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
276630
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/ts-config.js"(exports2) {
|
|
276624
276631
|
"use strict";
|
|
276625
276632
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
276626
276633
|
exports2.readTsConfig = readTsConfig;
|
|
@@ -276703,9 +276710,9 @@ var require_ts_config = __commonJS({
|
|
|
276703
276710
|
}
|
|
276704
276711
|
});
|
|
276705
276712
|
|
|
276706
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
276713
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/run-type-check.js
|
|
276707
276714
|
var require_run_type_check = __commonJS({
|
|
276708
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
276715
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/run-type-check.js"(exports2) {
|
|
276709
276716
|
"use strict";
|
|
276710
276717
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
276711
276718
|
exports2.runTypeCheckWatch = runTypeCheckWatch;
|
|
@@ -276825,9 +276832,9 @@ var require_run_type_check = __commonJS({
|
|
|
276825
276832
|
}
|
|
276826
276833
|
});
|
|
276827
276834
|
|
|
276828
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
276835
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/get-source-nodes.js
|
|
276829
276836
|
var require_get_source_nodes = __commonJS({
|
|
276830
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
276837
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/get-source-nodes.js"(exports2) {
|
|
276831
276838
|
"use strict";
|
|
276832
276839
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
276833
276840
|
exports2.getSourceNodes = getSourceNodes;
|
|
@@ -276848,9 +276855,9 @@ var require_get_source_nodes = __commonJS({
|
|
|
276848
276855
|
}
|
|
276849
276856
|
});
|
|
276850
276857
|
|
|
276851
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
276858
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/swc/get-swcrc-path.js
|
|
276852
276859
|
var require_get_swcrc_path = __commonJS({
|
|
276853
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
276860
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/swc/get-swcrc-path.js"(exports2) {
|
|
276854
276861
|
"use strict";
|
|
276855
276862
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
276856
276863
|
exports2.getSwcrcPath = getSwcrcPath;
|
|
@@ -276866,9 +276873,9 @@ var require_get_swcrc_path = __commonJS({
|
|
|
276866
276873
|
}
|
|
276867
276874
|
});
|
|
276868
276875
|
|
|
276869
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
276876
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/compiler-helper-dependency.js
|
|
276870
276877
|
var require_compiler_helper_dependency = __commonJS({
|
|
276871
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
276878
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/compiler-helper-dependency.js"(exports2) {
|
|
276872
276879
|
"use strict";
|
|
276873
276880
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
276874
276881
|
exports2.HelperDependency = void 0;
|
|
@@ -276967,9 +276974,9 @@ var require_compiler_helper_dependency = __commonJS({
|
|
|
276967
276974
|
}
|
|
276968
276975
|
});
|
|
276969
276976
|
|
|
276970
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
276977
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/create-ts-config.js
|
|
276971
276978
|
var require_create_ts_config = __commonJS({
|
|
276972
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
276979
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/create-ts-config.js"(exports2) {
|
|
276973
276980
|
"use strict";
|
|
276974
276981
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
276975
276982
|
exports2.tsConfigBaseOptions = void 0;
|
|
@@ -277024,9 +277031,9 @@ var require_create_ts_config = __commonJS({
|
|
|
277024
277031
|
}
|
|
277025
277032
|
});
|
|
277026
277033
|
|
|
277027
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
277034
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/ast-utils.js
|
|
277028
277035
|
var require_ast_utils = __commonJS({
|
|
277029
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
277036
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/typescript/ast-utils.js"(exports2) {
|
|
277030
277037
|
"use strict";
|
|
277031
277038
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
277032
277039
|
exports2.resolveModuleByImport = resolveModuleByImport;
|
|
@@ -277264,9 +277271,9 @@ ${opts.methodHeader} {}
|
|
|
277264
277271
|
}
|
|
277265
277272
|
});
|
|
277266
277273
|
|
|
277267
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
277274
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/watch-for-single-file-changes.js
|
|
277268
277275
|
var require_watch_for_single_file_changes = __commonJS({
|
|
277269
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
277276
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/watch-for-single-file-changes.js"(exports2) {
|
|
277270
277277
|
"use strict";
|
|
277271
277278
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
277272
277279
|
exports2.watchForSingleFileChanges = watchForSingleFileChanges;
|
|
@@ -279402,9 +279409,9 @@ var require_lib3 = __commonJS({
|
|
|
279402
279409
|
}
|
|
279403
279410
|
});
|
|
279404
279411
|
|
|
279405
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
279412
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/get-main-file-dir.js
|
|
279406
279413
|
var require_get_main_file_dir = __commonJS({
|
|
279407
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
279414
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/get-main-file-dir.js"(exports2) {
|
|
279408
279415
|
"use strict";
|
|
279409
279416
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
279410
279417
|
exports2.getRelativeDirectoryToProjectRoot = getRelativeDirectoryToProjectRoot;
|
|
@@ -279418,9 +279425,9 @@ var require_get_main_file_dir = __commonJS({
|
|
|
279418
279425
|
}
|
|
279419
279426
|
});
|
|
279420
279427
|
|
|
279421
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
279428
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/package-json/update-package-json.js
|
|
279422
279429
|
var require_update_package_json = __commonJS({
|
|
279423
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
279430
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/package-json/update-package-json.js"(exports2) {
|
|
279424
279431
|
"use strict";
|
|
279425
279432
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
279426
279433
|
exports2.updatePackageJson = updatePackageJson;
|
|
@@ -279597,9 +279604,9 @@ var require_update_package_json = __commonJS({
|
|
|
279597
279604
|
}
|
|
279598
279605
|
});
|
|
279599
279606
|
|
|
279600
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
279607
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/buildable-libs-utils.js
|
|
279601
279608
|
var require_buildable_libs_utils = __commonJS({
|
|
279602
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
279609
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/buildable-libs-utils.js"(exports2) {
|
|
279603
279610
|
"use strict";
|
|
279604
279611
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
279605
279612
|
exports2.calculateProjectBuildableDependencies = calculateProjectBuildableDependencies;
|
|
@@ -279937,9 +279944,9 @@ var require_buildable_libs_utils = __commonJS({
|
|
|
279937
279944
|
}
|
|
279938
279945
|
});
|
|
279939
279946
|
|
|
279940
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
279947
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/check-dependencies.js
|
|
279941
279948
|
var require_check_dependencies = __commonJS({
|
|
279942
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
279949
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/check-dependencies.js"(exports2) {
|
|
279943
279950
|
"use strict";
|
|
279944
279951
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
279945
279952
|
exports2.checkDependencies = checkDependencies;
|
|
@@ -279965,9 +279972,9 @@ var require_check_dependencies = __commonJS({
|
|
|
279965
279972
|
}
|
|
279966
279973
|
});
|
|
279967
279974
|
|
|
279968
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
279975
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/package-json/index.js
|
|
279969
279976
|
var require_package_json = __commonJS({
|
|
279970
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
279977
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/package-json/index.js"(exports2) {
|
|
279971
279978
|
"use strict";
|
|
279972
279979
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
279973
279980
|
exports2.copyPackageJson = copyPackageJson;
|
|
@@ -287305,9 +287312,9 @@ var require_out4 = __commonJS({
|
|
|
287305
287312
|
}
|
|
287306
287313
|
});
|
|
287307
287314
|
|
|
287308
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
287315
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/assets/copy-assets-handler.js
|
|
287309
287316
|
var require_copy_assets_handler = __commonJS({
|
|
287310
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
287317
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/assets/copy-assets-handler.js"(exports2) {
|
|
287311
287318
|
"use strict";
|
|
287312
287319
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
287313
287320
|
exports2.CopyAssetsHandler = exports2.defaultFileEventHandler = void 0;
|
|
@@ -287455,9 +287462,9 @@ var require_copy_assets_handler = __commonJS({
|
|
|
287455
287462
|
}
|
|
287456
287463
|
});
|
|
287457
287464
|
|
|
287458
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
287465
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/assets/index.js
|
|
287459
287466
|
var require_assets = __commonJS({
|
|
287460
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
287467
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/assets/index.js"(exports2) {
|
|
287461
287468
|
"use strict";
|
|
287462
287469
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
287463
287470
|
exports2.copyAssets = copyAssets;
|
|
@@ -287492,9 +287499,9 @@ var require_assets = __commonJS({
|
|
|
287492
287499
|
}
|
|
287493
287500
|
});
|
|
287494
287501
|
|
|
287495
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
287502
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/package-json/create-entry-points.js
|
|
287496
287503
|
var require_create_entry_points = __commonJS({
|
|
287497
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
287504
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/package-json/create-entry-points.js"(exports2) {
|
|
287498
287505
|
"use strict";
|
|
287499
287506
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
287500
287507
|
exports2.createEntryPoints = createEntryPoints;
|
|
@@ -287515,9 +287522,9 @@ var require_create_entry_points = __commonJS({
|
|
|
287515
287522
|
}
|
|
287516
287523
|
});
|
|
287517
287524
|
|
|
287518
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
287525
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/swc/add-swc-config.js
|
|
287519
287526
|
var require_add_swc_config = __commonJS({
|
|
287520
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
287527
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/swc/add-swc-config.js"(exports2) {
|
|
287521
287528
|
"use strict";
|
|
287522
287529
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
287523
287530
|
exports2.defaultExclude = void 0;
|
|
@@ -287562,9 +287569,9 @@ var require_add_swc_config = __commonJS({
|
|
|
287562
287569
|
}
|
|
287563
287570
|
});
|
|
287564
287571
|
|
|
287565
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
287572
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/swc/add-swc-dependencies.js
|
|
287566
287573
|
var require_add_swc_dependencies = __commonJS({
|
|
287567
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
287574
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/swc/add-swc-dependencies.js"(exports2) {
|
|
287568
287575
|
"use strict";
|
|
287569
287576
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
287570
287577
|
exports2.addSwcDependencies = addSwcDependencies;
|
|
@@ -289409,9 +289416,9 @@ var require_semver2 = __commonJS({
|
|
|
289409
289416
|
}
|
|
289410
289417
|
});
|
|
289411
289418
|
|
|
289412
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
289419
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/init/init.js
|
|
289413
289420
|
var require_init = __commonJS({
|
|
289414
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
289421
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/init/init.js"(exports2) {
|
|
289415
289422
|
"use strict";
|
|
289416
289423
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
289417
289424
|
exports2.initGenerator = initGenerator2;
|
|
@@ -289531,9 +289538,9 @@ var require_init = __commonJS({
|
|
|
289531
289538
|
}
|
|
289532
289539
|
});
|
|
289533
289540
|
|
|
289534
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
289541
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/setup-verdaccio/generator.js
|
|
289535
289542
|
var require_generator = __commonJS({
|
|
289536
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
289543
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/setup-verdaccio/generator.js"(exports2) {
|
|
289537
289544
|
"use strict";
|
|
289538
289545
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
289539
289546
|
exports2.setupVerdaccio = setupVerdaccio2;
|
|
@@ -289589,9 +289596,9 @@ var require_generator = __commonJS({
|
|
|
289589
289596
|
}
|
|
289590
289597
|
});
|
|
289591
289598
|
|
|
289592
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
289599
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/utils/flat-config.js
|
|
289593
289600
|
var require_flat_config = __commonJS({
|
|
289594
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
289601
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/utils/flat-config.js"(exports2) {
|
|
289595
289602
|
"use strict";
|
|
289596
289603
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
289597
289604
|
exports2.eslintFlatConfigFilenames = void 0;
|
|
@@ -492556,9 +492563,9 @@ ${e2.message}`;
|
|
|
492556
492563
|
}
|
|
492557
492564
|
});
|
|
492558
492565
|
|
|
492559
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
492566
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/utils/flat-config/path-utils.js
|
|
492560
492567
|
var require_path_utils = __commonJS({
|
|
492561
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
492568
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/utils/flat-config/path-utils.js"(exports2) {
|
|
492562
492569
|
"use strict";
|
|
492563
492570
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
492564
492571
|
exports2.updateFiles = updateFiles;
|
|
@@ -492587,9 +492594,9 @@ var require_path_utils = __commonJS({
|
|
|
492587
492594
|
}
|
|
492588
492595
|
});
|
|
492589
492596
|
|
|
492590
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
492597
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js
|
|
492591
492598
|
var require_ast_utils2 = __commonJS({
|
|
492592
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
492599
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js"(exports2) {
|
|
492593
492600
|
"use strict";
|
|
492594
492601
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
492595
492602
|
exports2.removeOverridesFromLintConfig = removeOverridesFromLintConfig;
|
|
@@ -493063,9 +493070,9 @@ const compat = new FlatCompat({
|
|
|
493063
493070
|
}
|
|
493064
493071
|
});
|
|
493065
493072
|
|
|
493066
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
493073
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/utils/config-file.js
|
|
493067
493074
|
var require_config_file = __commonJS({
|
|
493068
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
493075
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/utils/config-file.js"(exports2) {
|
|
493069
493076
|
"use strict";
|
|
493070
493077
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
493071
493078
|
exports2.baseEsLintFlatConfigFile = exports2.baseEsLintConfigFile = exports2.ESLINT_CONFIG_FILENAMES = exports2.ESLINT_OLD_CONFIG_FILENAMES = exports2.ESLINT_FLAT_CONFIG_FILENAMES = void 0;
|
|
@@ -493137,9 +493144,9 @@ var require_config_file = __commonJS({
|
|
|
493137
493144
|
}
|
|
493138
493145
|
});
|
|
493139
493146
|
|
|
493140
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
493147
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/utils/eslint-file.js
|
|
493141
493148
|
var require_eslint_file = __commonJS({
|
|
493142
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
493149
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/utils/eslint-file.js"(exports2) {
|
|
493143
493150
|
"use strict";
|
|
493144
493151
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
493145
493152
|
exports2.findEslintFile = findEslintFile;
|
|
@@ -493405,9 +493412,9 @@ var require_eslint_file = __commonJS({
|
|
|
493405
493412
|
}
|
|
493406
493413
|
});
|
|
493407
493414
|
|
|
493408
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
493415
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/library/library.js
|
|
493409
493416
|
var require_library = __commonJS({
|
|
493410
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
493417
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/library/library.js"(exports2) {
|
|
493411
493418
|
"use strict";
|
|
493412
493419
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
493413
493420
|
exports2.libraryGenerator = libraryGenerator;
|
|
@@ -494105,9 +494112,9 @@ var require_library = __commonJS({
|
|
|
494105
494112
|
}
|
|
494106
494113
|
});
|
|
494107
494114
|
|
|
494108
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
494115
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/is-valid-variable.js
|
|
494109
494116
|
var require_is_valid_variable = __commonJS({
|
|
494110
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
494117
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/utils/is-valid-variable.js"(exports2) {
|
|
494111
494118
|
"use strict";
|
|
494112
494119
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
494113
494120
|
exports2.isValidVariable = isValidVariable;
|
|
@@ -494140,9 +494147,9 @@ var require_is_valid_variable = __commonJS({
|
|
|
494140
494147
|
}
|
|
494141
494148
|
});
|
|
494142
494149
|
|
|
494143
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
494150
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/index.js
|
|
494144
494151
|
var require_src = __commonJS({
|
|
494145
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
494152
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/index.js"(exports2) {
|
|
494146
494153
|
"use strict";
|
|
494147
494154
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
494148
494155
|
exports2.createPackageJson = exports2.getLockFileName = exports2.createLockFile = exports2.isValidVariable = exports2.setupVerdaccio = exports2.initGenerator = exports2.libraryGenerator = void 0;
|
|
@@ -494190,12 +494197,12 @@ var require_src = __commonJS({
|
|
|
494190
494197
|
}
|
|
494191
494198
|
});
|
|
494192
494199
|
|
|
494193
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
494200
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/package.json
|
|
494194
494201
|
var require_package3 = __commonJS({
|
|
494195
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
494202
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/package.json"(exports2, module2) {
|
|
494196
494203
|
module2.exports = {
|
|
494197
494204
|
name: "@nx/eslint",
|
|
494198
|
-
version: "19.6.
|
|
494205
|
+
version: "19.6.4",
|
|
494199
494206
|
private: false,
|
|
494200
494207
|
description: "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
|
494201
494208
|
repository: {
|
|
@@ -494230,12 +494237,12 @@ var require_package3 = __commonJS({
|
|
|
494230
494237
|
eslint: "^8.0.0 || ^9.0.0"
|
|
494231
494238
|
},
|
|
494232
494239
|
dependencies: {
|
|
494233
|
-
"@nx/devkit": "19.6.
|
|
494234
|
-
"@nx/js": "19.6.
|
|
494240
|
+
"@nx/devkit": "19.6.4",
|
|
494241
|
+
"@nx/js": "19.6.4",
|
|
494235
494242
|
semver: "^7.5.3",
|
|
494236
494243
|
tslib: "^2.3.0",
|
|
494237
494244
|
typescript: "~5.4.2",
|
|
494238
|
-
"@nx/linter": "19.6.
|
|
494245
|
+
"@nx/linter": "19.6.4"
|
|
494239
494246
|
},
|
|
494240
494247
|
peerDependenciesMeta: {
|
|
494241
494248
|
"@zkochan/js-yaml": {
|
|
@@ -494251,9 +494258,9 @@ var require_package3 = __commonJS({
|
|
|
494251
494258
|
}
|
|
494252
494259
|
});
|
|
494253
494260
|
|
|
494254
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
494261
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/utils/versions.js
|
|
494255
494262
|
var require_versions2 = __commonJS({
|
|
494256
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
494263
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/utils/versions.js"(exports2) {
|
|
494257
494264
|
"use strict";
|
|
494258
494265
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
494259
494266
|
exports2.typescriptESLintVersion = exports2.eslintConfigPrettierVersion = exports2.eslintrcVersion = exports2.eslintVersion = exports2.nxVersion = void 0;
|
|
@@ -578557,9 +578564,9 @@ var require_unsupported_api = __commonJS({
|
|
|
578557
578564
|
}
|
|
578558
578565
|
});
|
|
578559
578566
|
|
|
578560
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
578567
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/utils/resolve-eslint-class.js
|
|
578561
578568
|
var require_resolve_eslint_class = __commonJS({
|
|
578562
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
578569
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/utils/resolve-eslint-class.js"(exports2) {
|
|
578563
578570
|
"use strict";
|
|
578564
578571
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
578565
578572
|
exports2.resolveESLintClass = resolveESLintClass;
|
|
@@ -578581,9 +578588,9 @@ var require_resolve_eslint_class = __commonJS({
|
|
|
578581
578588
|
}
|
|
578582
578589
|
});
|
|
578583
578590
|
|
|
578584
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
578591
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/plugins/plugin.js
|
|
578585
578592
|
var require_plugin = __commonJS({
|
|
578586
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
578593
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/plugins/plugin.js"(exports2) {
|
|
578587
578594
|
"use strict";
|
|
578588
578595
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
578589
578596
|
exports2.createNodes = exports2.createNodesV2 = void 0;
|
|
@@ -578887,9 +578894,9 @@ var require_plugin = __commonJS({
|
|
|
578887
578894
|
}
|
|
578888
578895
|
});
|
|
578889
578896
|
|
|
578890
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
578897
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/utils/plugin.js
|
|
578891
578898
|
var require_plugin2 = __commonJS({
|
|
578892
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
578899
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/utils/plugin.js"(exports2) {
|
|
578893
578900
|
"use strict";
|
|
578894
578901
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
578895
578902
|
exports2.hasEslintPlugin = hasEslintPlugin;
|
|
@@ -578901,9 +578908,9 @@ var require_plugin2 = __commonJS({
|
|
|
578901
578908
|
}
|
|
578902
578909
|
});
|
|
578903
578910
|
|
|
578904
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
578911
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/init/init.js
|
|
578905
578912
|
var require_init2 = __commonJS({
|
|
578906
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
578913
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/init/init.js"(exports2) {
|
|
578907
578914
|
"use strict";
|
|
578908
578915
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
578909
578916
|
exports2.initEsLint = initEsLint;
|
|
@@ -578987,9 +578994,9 @@ var require_init2 = __commonJS({
|
|
|
578987
578994
|
}
|
|
578988
578995
|
});
|
|
578989
578996
|
|
|
578990
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
578997
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js
|
|
578991
578998
|
var require_global_eslint_config = __commonJS({
|
|
578992
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
578999
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js"(exports2) {
|
|
578993
579000
|
"use strict";
|
|
578994
579001
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
578995
579002
|
exports2.getGlobalFlatEslintConfiguration = exports2.getGlobalEsLintConfiguration = exports2.javaScriptOverride = exports2.typeScriptOverride = void 0;
|
|
@@ -579078,9 +579085,9 @@ var require_global_eslint_config = __commonJS({
|
|
|
579078
579085
|
}
|
|
579079
579086
|
});
|
|
579080
579087
|
|
|
579081
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
579088
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/init/init-migration.js
|
|
579082
579089
|
var require_init_migration = __commonJS({
|
|
579083
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
579090
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/init/init-migration.js"(exports2) {
|
|
579084
579091
|
"use strict";
|
|
579085
579092
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
579086
579093
|
exports2.migrateConfigToMonorepoStyle = migrateConfigToMonorepoStyle;
|
|
@@ -579198,9 +579205,9 @@ var require_init_migration = __commonJS({
|
|
|
579198
579205
|
}
|
|
579199
579206
|
});
|
|
579200
579207
|
|
|
579201
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
579208
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/lint-project/setup-root-eslint.js
|
|
579202
579209
|
var require_setup_root_eslint = __commonJS({
|
|
579203
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
579210
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/lint-project/setup-root-eslint.js"(exports2) {
|
|
579204
579211
|
"use strict";
|
|
579205
579212
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
579206
579213
|
exports2.setupRootEsLint = setupRootEsLint;
|
|
@@ -579237,9 +579244,9 @@ node_modules
|
|
|
579237
579244
|
}
|
|
579238
579245
|
});
|
|
579239
579246
|
|
|
579240
|
-
// node_modules/.pnpm/@nx+eslint@19.6.
|
|
579247
|
+
// node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js
|
|
579241
579248
|
var require_lint_project = __commonJS({
|
|
579242
|
-
"node_modules/.pnpm/@nx+eslint@19.6.
|
|
579249
|
+
"node_modules/.pnpm/@nx+eslint@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpe_vhm3o225pbta5ho7tmf7oxlk24/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js"(exports2) {
|
|
579243
579250
|
"use strict";
|
|
579244
579251
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
579245
579252
|
exports2.lintProjectGenerator = lintProjectGenerator;
|
|
@@ -604345,9 +604352,9 @@ var require_rollup2 = __commonJS({
|
|
|
604345
604352
|
}
|
|
604346
604353
|
});
|
|
604347
604354
|
|
|
604348
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
604355
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/executors/rollup/lib/normalize.js
|
|
604349
604356
|
var require_normalize = __commonJS({
|
|
604350
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
604357
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/executors/rollup/lib/normalize.js"(exports2) {
|
|
604351
604358
|
"use strict";
|
|
604352
604359
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
604353
604360
|
exports2.normalizeRollupExecutorOptions = normalizeRollupExecutorOptions;
|
|
@@ -684555,6 +684562,551 @@ var require_autoprefixer = __commonJS({
|
|
|
684555
684562
|
}
|
|
684556
684563
|
});
|
|
684557
684564
|
|
|
684565
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/package.json
|
|
684566
|
+
var require_package8 = __commonJS({
|
|
684567
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/package.json"(exports2, module2) {
|
|
684568
|
+
module2.exports = {
|
|
684569
|
+
name: "@nx/js",
|
|
684570
|
+
version: "19.6.2",
|
|
684571
|
+
private: false,
|
|
684572
|
+
description: "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
684573
|
+
repository: {
|
|
684574
|
+
type: "git",
|
|
684575
|
+
url: "https://github.com/nrwl/nx.git",
|
|
684576
|
+
directory: "packages/js"
|
|
684577
|
+
},
|
|
684578
|
+
keywords: [
|
|
684579
|
+
"Monorepo",
|
|
684580
|
+
"Web",
|
|
684581
|
+
"Node",
|
|
684582
|
+
"Swc",
|
|
684583
|
+
"Tsc",
|
|
684584
|
+
"CLI",
|
|
684585
|
+
"Front-end",
|
|
684586
|
+
"Backend"
|
|
684587
|
+
],
|
|
684588
|
+
main: "src/index.js",
|
|
684589
|
+
typings: "src/index.d.ts",
|
|
684590
|
+
license: "MIT",
|
|
684591
|
+
bugs: {
|
|
684592
|
+
url: "https://github.com/nrwl/nx/issues"
|
|
684593
|
+
},
|
|
684594
|
+
homepage: "https://nx.dev",
|
|
684595
|
+
"ng-update": {
|
|
684596
|
+
requirements: {},
|
|
684597
|
+
migrations: "./migrations.json"
|
|
684598
|
+
},
|
|
684599
|
+
generators: "./generators.json",
|
|
684600
|
+
executors: "./executors.json",
|
|
684601
|
+
dependencies: {
|
|
684602
|
+
"@babel/core": "^7.23.2",
|
|
684603
|
+
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
684604
|
+
"@babel/plugin-transform-class-properties": "^7.22.5",
|
|
684605
|
+
"@babel/plugin-transform-runtime": "^7.23.2",
|
|
684606
|
+
"@babel/preset-env": "^7.23.2",
|
|
684607
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
684608
|
+
"@babel/runtime": "^7.22.6",
|
|
684609
|
+
"@nx/devkit": "19.6.2",
|
|
684610
|
+
"@nx/workspace": "19.6.2",
|
|
684611
|
+
"babel-plugin-const-enum": "^1.0.1",
|
|
684612
|
+
"babel-plugin-macros": "^2.8.0",
|
|
684613
|
+
"babel-plugin-transform-typescript-metadata": "^0.3.1",
|
|
684614
|
+
chalk: "^4.1.0",
|
|
684615
|
+
columnify: "^1.6.0",
|
|
684616
|
+
"detect-port": "^1.5.1",
|
|
684617
|
+
"fast-glob": "3.2.7",
|
|
684618
|
+
"fs-extra": "^11.1.0",
|
|
684619
|
+
ignore: "^5.0.4",
|
|
684620
|
+
"js-tokens": "^4.0.0",
|
|
684621
|
+
"jsonc-parser": "3.2.0",
|
|
684622
|
+
minimatch: "9.0.3",
|
|
684623
|
+
"npm-package-arg": "11.0.1",
|
|
684624
|
+
"npm-run-path": "^4.0.1",
|
|
684625
|
+
ora: "5.3.0",
|
|
684626
|
+
semver: "^7.5.3",
|
|
684627
|
+
"source-map-support": "0.5.19",
|
|
684628
|
+
"ts-node": "10.9.1",
|
|
684629
|
+
"tsconfig-paths": "^4.1.2",
|
|
684630
|
+
tslib: "^2.3.0",
|
|
684631
|
+
"@nrwl/js": "19.6.2"
|
|
684632
|
+
},
|
|
684633
|
+
peerDependencies: {
|
|
684634
|
+
verdaccio: "^5.0.4"
|
|
684635
|
+
},
|
|
684636
|
+
peerDependenciesMeta: {
|
|
684637
|
+
verdaccio: {
|
|
684638
|
+
optional: true
|
|
684639
|
+
}
|
|
684640
|
+
},
|
|
684641
|
+
publishConfig: {
|
|
684642
|
+
access: "public"
|
|
684643
|
+
},
|
|
684644
|
+
type: "commonjs",
|
|
684645
|
+
types: "./src/index.d.ts"
|
|
684646
|
+
};
|
|
684647
|
+
}
|
|
684648
|
+
});
|
|
684649
|
+
|
|
684650
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/versions.js
|
|
684651
|
+
var require_versions4 = __commonJS({
|
|
684652
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/versions.js"(exports2) {
|
|
684653
|
+
"use strict";
|
|
684654
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
684655
|
+
exports2.supportedTypescriptVersions = exports2.typescriptVersion = exports2.verdaccioVersion = exports2.typesNodeVersion = exports2.tsLibVersion = exports2.swcNodeVersion = exports2.swcHelpersVersion = exports2.swcCoreVersion = exports2.swcCliVersion = exports2.prettierVersion = exports2.esbuildVersion = exports2.nxVersion = void 0;
|
|
684656
|
+
exports2.nxVersion = require_package8().version;
|
|
684657
|
+
exports2.esbuildVersion = "^0.19.2";
|
|
684658
|
+
exports2.prettierVersion = "^2.6.2";
|
|
684659
|
+
exports2.swcCliVersion = "~0.3.12";
|
|
684660
|
+
exports2.swcCoreVersion = "~1.5.7";
|
|
684661
|
+
exports2.swcHelpersVersion = "~0.5.11";
|
|
684662
|
+
exports2.swcNodeVersion = "~1.9.1";
|
|
684663
|
+
exports2.tsLibVersion = "^2.3.0";
|
|
684664
|
+
exports2.typesNodeVersion = "18.16.9";
|
|
684665
|
+
exports2.verdaccioVersion = "^5.0.4";
|
|
684666
|
+
exports2.typescriptVersion = "~5.5.2";
|
|
684667
|
+
exports2.supportedTypescriptVersions = ">=4.9.3";
|
|
684668
|
+
}
|
|
684669
|
+
});
|
|
684670
|
+
|
|
684671
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/ensure-typescript.js
|
|
684672
|
+
var require_ensure_typescript2 = __commonJS({
|
|
684673
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/ensure-typescript.js"(exports2) {
|
|
684674
|
+
"use strict";
|
|
684675
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
684676
|
+
exports2.ensureTypescript = ensureTypescript;
|
|
684677
|
+
var devkit_1 = require("@nx/devkit");
|
|
684678
|
+
var versions_1 = require_versions4();
|
|
684679
|
+
function ensureTypescript() {
|
|
684680
|
+
return (0, devkit_1.ensurePackage)("typescript", versions_1.typescriptVersion);
|
|
684681
|
+
}
|
|
684682
|
+
}
|
|
684683
|
+
});
|
|
684684
|
+
|
|
684685
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/ts-config.js
|
|
684686
|
+
var require_ts_config2 = __commonJS({
|
|
684687
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/ts-config.js"(exports2) {
|
|
684688
|
+
"use strict";
|
|
684689
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
684690
|
+
exports2.readTsConfig = readTsConfig;
|
|
684691
|
+
exports2.getRootTsConfigPathInTree = getRootTsConfigPathInTree;
|
|
684692
|
+
exports2.getRelativePathToRootTsConfig = getRelativePathToRootTsConfig2;
|
|
684693
|
+
exports2.getRootTsConfigPath = getRootTsConfigPath;
|
|
684694
|
+
exports2.getRootTsConfigFileName = getRootTsConfigFileName;
|
|
684695
|
+
exports2.addTsConfigPath = addTsConfigPath2;
|
|
684696
|
+
exports2.readTsConfigPaths = readTsConfigPaths;
|
|
684697
|
+
var devkit_1 = require("@nx/devkit");
|
|
684698
|
+
var fs_1 = require("fs");
|
|
684699
|
+
var path_1 = require("path");
|
|
684700
|
+
var ensure_typescript_1 = require_ensure_typescript2();
|
|
684701
|
+
var tsModule;
|
|
684702
|
+
function readTsConfig(tsConfigPath) {
|
|
684703
|
+
if (!tsModule) {
|
|
684704
|
+
tsModule = require_typescript();
|
|
684705
|
+
}
|
|
684706
|
+
const readResult = tsModule.readConfigFile(tsConfigPath, tsModule.sys.readFile);
|
|
684707
|
+
return tsModule.parseJsonConfigFileContent(readResult.config, tsModule.sys, (0, path_1.dirname)(tsConfigPath));
|
|
684708
|
+
}
|
|
684709
|
+
function getRootTsConfigPathInTree(tree) {
|
|
684710
|
+
for (const path8 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
684711
|
+
if (tree.exists(path8)) {
|
|
684712
|
+
return path8;
|
|
684713
|
+
}
|
|
684714
|
+
}
|
|
684715
|
+
return "tsconfig.base.json";
|
|
684716
|
+
}
|
|
684717
|
+
function getRelativePathToRootTsConfig2(tree, targetPath) {
|
|
684718
|
+
return (0, devkit_1.offsetFromRoot)(targetPath) + getRootTsConfigPathInTree(tree);
|
|
684719
|
+
}
|
|
684720
|
+
function getRootTsConfigPath() {
|
|
684721
|
+
const tsConfigFileName = getRootTsConfigFileName();
|
|
684722
|
+
return tsConfigFileName ? (0, path_1.join)(devkit_1.workspaceRoot, tsConfigFileName) : null;
|
|
684723
|
+
}
|
|
684724
|
+
function getRootTsConfigFileName(tree) {
|
|
684725
|
+
for (const tsConfigName of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
684726
|
+
const pathExists2 = tree ? tree.exists(tsConfigName) : (0, fs_1.existsSync)((0, path_1.join)(devkit_1.workspaceRoot, tsConfigName));
|
|
684727
|
+
if (pathExists2) {
|
|
684728
|
+
return tsConfigName;
|
|
684729
|
+
}
|
|
684730
|
+
}
|
|
684731
|
+
return null;
|
|
684732
|
+
}
|
|
684733
|
+
function addTsConfigPath2(tree, importPath, lookupPaths) {
|
|
684734
|
+
(0, devkit_1.updateJson)(tree, getRootTsConfigPathInTree(tree), (json) => {
|
|
684735
|
+
json.compilerOptions ??= {};
|
|
684736
|
+
const c = json.compilerOptions;
|
|
684737
|
+
c.paths ??= {};
|
|
684738
|
+
if (c.paths[importPath]) {
|
|
684739
|
+
throw new Error(`You already have a library using the import path "${importPath}". Make sure to specify a unique one.`);
|
|
684740
|
+
}
|
|
684741
|
+
c.paths[importPath] = lookupPaths;
|
|
684742
|
+
return json;
|
|
684743
|
+
});
|
|
684744
|
+
}
|
|
684745
|
+
function readTsConfigPaths(tsConfig) {
|
|
684746
|
+
tsConfig ??= getRootTsConfigPath();
|
|
684747
|
+
try {
|
|
684748
|
+
if (!tsModule) {
|
|
684749
|
+
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
|
684750
|
+
}
|
|
684751
|
+
let config;
|
|
684752
|
+
if (typeof tsConfig === "string") {
|
|
684753
|
+
const configFile = tsModule.readConfigFile(tsConfig, tsModule.sys.readFile);
|
|
684754
|
+
config = tsModule.parseJsonConfigFileContent(configFile.config, tsModule.sys, (0, path_1.dirname)(tsConfig));
|
|
684755
|
+
} else {
|
|
684756
|
+
config = tsConfig;
|
|
684757
|
+
}
|
|
684758
|
+
if (config.options?.paths) {
|
|
684759
|
+
return config.options.paths;
|
|
684760
|
+
} else {
|
|
684761
|
+
return null;
|
|
684762
|
+
}
|
|
684763
|
+
} catch (e2) {
|
|
684764
|
+
return null;
|
|
684765
|
+
}
|
|
684766
|
+
}
|
|
684767
|
+
}
|
|
684768
|
+
});
|
|
684769
|
+
|
|
684770
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/buildable-libs-utils.js
|
|
684771
|
+
var require_buildable_libs_utils2 = __commonJS({
|
|
684772
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/buildable-libs-utils.js"(exports2) {
|
|
684773
|
+
"use strict";
|
|
684774
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
684775
|
+
exports2.calculateProjectBuildableDependencies = calculateProjectBuildableDependencies;
|
|
684776
|
+
exports2.calculateProjectDependencies = calculateProjectDependencies;
|
|
684777
|
+
exports2.calculateDependenciesFromTaskGraph = calculateDependenciesFromTaskGraph;
|
|
684778
|
+
exports2.computeCompilerOptionsPaths = computeCompilerOptionsPaths;
|
|
684779
|
+
exports2.createTmpTsConfig = createTmpTsConfig;
|
|
684780
|
+
exports2.checkDependentProjectsHaveBeenBuilt = checkDependentProjectsHaveBeenBuilt;
|
|
684781
|
+
exports2.findMissingBuildDependencies = findMissingBuildDependencies;
|
|
684782
|
+
exports2.updatePaths = updatePaths;
|
|
684783
|
+
exports2.updateBuildableProjectPackageJsonDependencies = updateBuildableProjectPackageJsonDependencies;
|
|
684784
|
+
var devkit_1 = require("@nx/devkit");
|
|
684785
|
+
var fs_1 = require("fs");
|
|
684786
|
+
var operators_1 = require("nx/src/project-graph/operators");
|
|
684787
|
+
var fileutils_1 = require("nx/src/utils/fileutils");
|
|
684788
|
+
var output_1 = require("nx/src/utils/output");
|
|
684789
|
+
var path_1 = require("path");
|
|
684790
|
+
var ts_config_1 = require_ts_config2();
|
|
684791
|
+
function isBuildable(target, node) {
|
|
684792
|
+
return node.data.targets && node.data.targets[target] && node.data.targets[target].executor !== "";
|
|
684793
|
+
}
|
|
684794
|
+
function calculateProjectBuildableDependencies(taskGraph, projGraph, root, projectName, targetName, configurationName, shallow) {
|
|
684795
|
+
if (process.env.NX_BUILDABLE_LIBRARIES_TASK_GRAPH === "true" && taskGraph) {
|
|
684796
|
+
return calculateDependenciesFromTaskGraph(taskGraph, projGraph, root, projectName, targetName, configurationName, shallow);
|
|
684797
|
+
}
|
|
684798
|
+
return calculateProjectDependencies(projGraph, root, projectName, targetName, configurationName, shallow);
|
|
684799
|
+
}
|
|
684800
|
+
function calculateProjectDependencies(projGraph, root, projectName, targetName, configurationName, shallow) {
|
|
684801
|
+
const target = projGraph.nodes[projectName];
|
|
684802
|
+
const nonBuildableDependencies = [];
|
|
684803
|
+
const topLevelDependencies = [];
|
|
684804
|
+
const collectedDeps = collectDependencies(projectName, projGraph, [], shallow);
|
|
684805
|
+
const missing = collectedDeps.reduce((missing2, { name: dep }) => {
|
|
684806
|
+
const depNode = projGraph.nodes[dep] || projGraph.externalNodes[dep];
|
|
684807
|
+
if (!depNode) {
|
|
684808
|
+
missing2 = missing2 || [];
|
|
684809
|
+
missing2.push(dep);
|
|
684810
|
+
}
|
|
684811
|
+
return missing2;
|
|
684812
|
+
}, null);
|
|
684813
|
+
if (missing) {
|
|
684814
|
+
throw new Error(`Unable to find ${missing.join(", ")} in project graph.`);
|
|
684815
|
+
}
|
|
684816
|
+
const dependencies = collectedDeps.map(({ name: dep, isTopLevel }) => {
|
|
684817
|
+
let project = null;
|
|
684818
|
+
const depNode = projGraph.nodes[dep] || projGraph.externalNodes[dep];
|
|
684819
|
+
if (depNode.type === "lib") {
|
|
684820
|
+
if (isBuildable(targetName, depNode)) {
|
|
684821
|
+
const libPackageJsonPath = (0, path_1.join)(root, depNode.data.root, "package.json");
|
|
684822
|
+
project = {
|
|
684823
|
+
name: (0, fileutils_1.fileExists)(libPackageJsonPath) ? (0, devkit_1.readJsonFile)(libPackageJsonPath).name : dep,
|
|
684824
|
+
outputs: (0, devkit_1.getOutputsForTargetAndConfiguration)({
|
|
684825
|
+
project: projectName,
|
|
684826
|
+
target: targetName,
|
|
684827
|
+
configuration: configurationName
|
|
684828
|
+
}, {}, depNode),
|
|
684829
|
+
node: depNode
|
|
684830
|
+
};
|
|
684831
|
+
} else {
|
|
684832
|
+
nonBuildableDependencies.push(dep);
|
|
684833
|
+
}
|
|
684834
|
+
} else if (depNode.type === "npm") {
|
|
684835
|
+
project = {
|
|
684836
|
+
name: depNode.data.packageName,
|
|
684837
|
+
outputs: [],
|
|
684838
|
+
node: depNode
|
|
684839
|
+
};
|
|
684840
|
+
}
|
|
684841
|
+
if (project && isTopLevel) {
|
|
684842
|
+
topLevelDependencies.push(project);
|
|
684843
|
+
}
|
|
684844
|
+
return project;
|
|
684845
|
+
}).filter((x5) => !!x5);
|
|
684846
|
+
dependencies.sort((a2, b6) => a2.name > b6.name ? 1 : b6.name > a2.name ? -1 : 0);
|
|
684847
|
+
return {
|
|
684848
|
+
target,
|
|
684849
|
+
dependencies,
|
|
684850
|
+
nonBuildableDependencies,
|
|
684851
|
+
topLevelDependencies
|
|
684852
|
+
};
|
|
684853
|
+
}
|
|
684854
|
+
function collectDependencies(project, projGraph, acc, shallow, areTopLevelDeps = true) {
|
|
684855
|
+
(projGraph.dependencies[project] || []).forEach((dependency) => {
|
|
684856
|
+
const existingEntry = acc.find((dep) => dep.name === dependency.target);
|
|
684857
|
+
if (!existingEntry) {
|
|
684858
|
+
if (dependency.target.startsWith("npm:") && !projGraph.externalNodes[dependency.target])
|
|
684859
|
+
return;
|
|
684860
|
+
acc.push({ name: dependency.target, isTopLevel: areTopLevelDeps });
|
|
684861
|
+
const isInternalTarget = projGraph.nodes[dependency.target];
|
|
684862
|
+
if (!shallow && isInternalTarget) {
|
|
684863
|
+
collectDependencies(dependency.target, projGraph, acc, shallow, false);
|
|
684864
|
+
}
|
|
684865
|
+
} else if (areTopLevelDeps && !existingEntry.isTopLevel) {
|
|
684866
|
+
existingEntry.isTopLevel = true;
|
|
684867
|
+
}
|
|
684868
|
+
});
|
|
684869
|
+
return acc;
|
|
684870
|
+
}
|
|
684871
|
+
function readTsConfigWithRemappedPaths(tsConfig, generatedTsConfigPath, dependencies) {
|
|
684872
|
+
const generatedTsConfig = { compilerOptions: {} };
|
|
684873
|
+
const dirnameTsConfig = (0, path_1.dirname)(generatedTsConfigPath);
|
|
684874
|
+
const relativeTsconfig = (0, path_1.isAbsolute)(dirnameTsConfig) ? (0, path_1.relative)(devkit_1.workspaceRoot, dirnameTsConfig) : dirnameTsConfig;
|
|
684875
|
+
generatedTsConfig.extends = (0, path_1.relative)(relativeTsconfig, tsConfig);
|
|
684876
|
+
generatedTsConfig.compilerOptions.paths = computeCompilerOptionsPaths(tsConfig, dependencies);
|
|
684877
|
+
if (process.env.NX_VERBOSE_LOGGING_PATH_MAPPINGS === "true") {
|
|
684878
|
+
output_1.output.log({
|
|
684879
|
+
title: "TypeScript path mappings have been rewritten."
|
|
684880
|
+
});
|
|
684881
|
+
console.log(JSON.stringify(generatedTsConfig.compilerOptions.paths, null, 2));
|
|
684882
|
+
}
|
|
684883
|
+
return generatedTsConfig;
|
|
684884
|
+
}
|
|
684885
|
+
function calculateDependenciesFromTaskGraph(taskGraph, projectGraph, root, projectName, targetName, configurationName, shallow) {
|
|
684886
|
+
const target = projectGraph.nodes[projectName];
|
|
684887
|
+
const nonBuildableDependencies = [];
|
|
684888
|
+
const topLevelDependencies = [];
|
|
684889
|
+
const dependentTasks = collectDependentTasks(projectName, `${projectName}:${targetName}${configurationName ? `:${configurationName}` : ""}`, taskGraph, projectGraph, shallow);
|
|
684890
|
+
const npmDependencies = collectNpmDependencies(projectName, projectGraph, !shallow ? dependentTasks : void 0);
|
|
684891
|
+
const dependencies = [];
|
|
684892
|
+
for (const [taskName, { isTopLevel }] of dependentTasks) {
|
|
684893
|
+
let project = null;
|
|
684894
|
+
const depTask = taskGraph.tasks[taskName];
|
|
684895
|
+
const depProjectNode = projectGraph.nodes?.[depTask.target.project];
|
|
684896
|
+
if (depProjectNode?.type !== "lib") {
|
|
684897
|
+
continue;
|
|
684898
|
+
}
|
|
684899
|
+
let outputs = (0, devkit_1.getOutputsForTargetAndConfiguration)(depTask.target, depTask.overrides, depProjectNode);
|
|
684900
|
+
if (outputs.length === 0) {
|
|
684901
|
+
nonBuildableDependencies.push(depTask.target.project);
|
|
684902
|
+
continue;
|
|
684903
|
+
}
|
|
684904
|
+
const libPackageJsonPath = (0, path_1.join)(root, depProjectNode.data.root, "package.json");
|
|
684905
|
+
project = {
|
|
684906
|
+
name: (0, fileutils_1.fileExists)(libPackageJsonPath) ? (0, devkit_1.readJsonFile)(libPackageJsonPath).name : depTask.target.project,
|
|
684907
|
+
outputs,
|
|
684908
|
+
node: depProjectNode
|
|
684909
|
+
};
|
|
684910
|
+
if (isTopLevel) {
|
|
684911
|
+
topLevelDependencies.push(project);
|
|
684912
|
+
}
|
|
684913
|
+
dependencies.push(project);
|
|
684914
|
+
}
|
|
684915
|
+
for (const { project, isTopLevel } of npmDependencies) {
|
|
684916
|
+
if (isTopLevel) {
|
|
684917
|
+
topLevelDependencies.push(project);
|
|
684918
|
+
}
|
|
684919
|
+
dependencies.push(project);
|
|
684920
|
+
}
|
|
684921
|
+
dependencies.sort((a2, b6) => a2.name > b6.name ? 1 : b6.name > a2.name ? -1 : 0);
|
|
684922
|
+
return {
|
|
684923
|
+
target,
|
|
684924
|
+
dependencies,
|
|
684925
|
+
nonBuildableDependencies,
|
|
684926
|
+
topLevelDependencies
|
|
684927
|
+
};
|
|
684928
|
+
}
|
|
684929
|
+
function collectNpmDependencies(projectName, projectGraph, dependentTasks, collectedPackages = /* @__PURE__ */ new Set(), isTopLevel = true) {
|
|
684930
|
+
const dependencies = projectGraph.dependencies[projectName].map((dep) => {
|
|
684931
|
+
const projectNode = projectGraph.nodes?.[dep.target] ?? projectGraph.externalNodes?.[dep.target];
|
|
684932
|
+
if (projectNode?.type !== "npm" || collectedPackages.has(projectNode.data.packageName)) {
|
|
684933
|
+
return null;
|
|
684934
|
+
}
|
|
684935
|
+
const project = {
|
|
684936
|
+
name: projectNode.data.packageName,
|
|
684937
|
+
outputs: [],
|
|
684938
|
+
node: projectNode
|
|
684939
|
+
};
|
|
684940
|
+
collectedPackages.add(project.name);
|
|
684941
|
+
return { project, isTopLevel };
|
|
684942
|
+
}).filter((x5) => !!x5);
|
|
684943
|
+
if (dependentTasks?.size) {
|
|
684944
|
+
for (const [, { project: projectName2 }] of dependentTasks) {
|
|
684945
|
+
dependencies.push(...collectNpmDependencies(projectName2, projectGraph, void 0, collectedPackages, false));
|
|
684946
|
+
}
|
|
684947
|
+
}
|
|
684948
|
+
return dependencies;
|
|
684949
|
+
}
|
|
684950
|
+
function collectDependentTasks(project, task, taskGraph, projectGraph, shallow, areTopLevelDeps = true, dependentTasks = /* @__PURE__ */ new Map()) {
|
|
684951
|
+
for (const depTask of taskGraph.dependencies[task] ?? []) {
|
|
684952
|
+
if (dependentTasks.has(depTask)) {
|
|
684953
|
+
if (!dependentTasks.get(depTask).isTopLevel && areTopLevelDeps) {
|
|
684954
|
+
dependentTasks.get(depTask).isTopLevel = true;
|
|
684955
|
+
}
|
|
684956
|
+
continue;
|
|
684957
|
+
}
|
|
684958
|
+
const { project: depTaskProject } = (0, devkit_1.parseTargetString)(depTask, projectGraph);
|
|
684959
|
+
if (depTaskProject !== project) {
|
|
684960
|
+
dependentTasks.set(depTask, {
|
|
684961
|
+
project: depTaskProject,
|
|
684962
|
+
isTopLevel: areTopLevelDeps
|
|
684963
|
+
});
|
|
684964
|
+
}
|
|
684965
|
+
if (!shallow) {
|
|
684966
|
+
collectDependentTasks(depTaskProject, depTask, taskGraph, projectGraph, shallow, depTaskProject === project && areTopLevelDeps, dependentTasks);
|
|
684967
|
+
}
|
|
684968
|
+
}
|
|
684969
|
+
return dependentTasks;
|
|
684970
|
+
}
|
|
684971
|
+
function computeCompilerOptionsPaths(tsConfig, dependencies) {
|
|
684972
|
+
const paths = (0, ts_config_1.readTsConfigPaths)(tsConfig) || {};
|
|
684973
|
+
updatePaths(dependencies, paths);
|
|
684974
|
+
return paths;
|
|
684975
|
+
}
|
|
684976
|
+
function createTmpTsConfig(tsconfigPath, workspaceRoot3, projectRoot, dependencies, useWorkspaceAsBaseUrl = false) {
|
|
684977
|
+
const tmpTsConfigPath = (0, path_1.join)(workspaceRoot3, "tmp", projectRoot, process.env.NX_TASK_TARGET_TARGET ?? "build", "tsconfig.generated.json");
|
|
684978
|
+
const parsedTSConfig = readTsConfigWithRemappedPaths(tsconfigPath, tmpTsConfigPath, dependencies);
|
|
684979
|
+
process.on("exit", () => cleanupTmpTsConfigFile(tmpTsConfigPath));
|
|
684980
|
+
if (useWorkspaceAsBaseUrl) {
|
|
684981
|
+
parsedTSConfig.compilerOptions ??= {};
|
|
684982
|
+
parsedTSConfig.compilerOptions.baseUrl = workspaceRoot3;
|
|
684983
|
+
}
|
|
684984
|
+
(0, devkit_1.writeJsonFile)(tmpTsConfigPath, parsedTSConfig);
|
|
684985
|
+
return (0, path_1.join)(tmpTsConfigPath);
|
|
684986
|
+
}
|
|
684987
|
+
function cleanupTmpTsConfigFile(tmpTsConfigPath) {
|
|
684988
|
+
try {
|
|
684989
|
+
if (tmpTsConfigPath) {
|
|
684990
|
+
(0, fs_1.unlinkSync)(tmpTsConfigPath);
|
|
684991
|
+
}
|
|
684992
|
+
} catch (e2) {
|
|
684993
|
+
}
|
|
684994
|
+
}
|
|
684995
|
+
function checkDependentProjectsHaveBeenBuilt(root, projectName, targetName, projectDependencies) {
|
|
684996
|
+
const missing = findMissingBuildDependencies(root, projectName, targetName, projectDependencies);
|
|
684997
|
+
if (missing.length > 0) {
|
|
684998
|
+
console.error((0, devkit_1.stripIndents)`
|
|
684999
|
+
It looks like all of ${projectName}'s dependencies have not been built yet:
|
|
685000
|
+
${missing.map((x5) => ` - ${x5.node.name}`).join("\n")}
|
|
685001
|
+
|
|
685002
|
+
You might be missing a "targetDefaults" configuration in your root nx.json (https://nx.dev/reference/project-configuration#target-defaults),
|
|
685003
|
+
or "dependsOn" configured in ${projectName}'s project.json (https://nx.dev/reference/project-configuration#dependson)
|
|
685004
|
+
`);
|
|
685005
|
+
return false;
|
|
685006
|
+
} else {
|
|
685007
|
+
return true;
|
|
685008
|
+
}
|
|
685009
|
+
}
|
|
685010
|
+
function findMissingBuildDependencies(root, projectName, targetName, projectDependencies) {
|
|
685011
|
+
const depLibsToBuildFirst = [];
|
|
685012
|
+
projectDependencies.forEach((dep) => {
|
|
685013
|
+
if (dep.node.type !== "lib") {
|
|
685014
|
+
return;
|
|
685015
|
+
}
|
|
685016
|
+
const paths = dep.outputs.map((p2) => (0, path_1.join)(root, p2));
|
|
685017
|
+
if (!paths.some(fileutils_1.directoryExists)) {
|
|
685018
|
+
depLibsToBuildFirst.push(dep);
|
|
685019
|
+
}
|
|
685020
|
+
});
|
|
685021
|
+
return depLibsToBuildFirst;
|
|
685022
|
+
}
|
|
685023
|
+
function updatePaths(dependencies, paths) {
|
|
685024
|
+
const pathsKeys = Object.keys(paths);
|
|
685025
|
+
dependencies.forEach((dep) => {
|
|
685026
|
+
if (dep.node.type === "npm") {
|
|
685027
|
+
return;
|
|
685028
|
+
}
|
|
685029
|
+
if (dep.outputs && dep.outputs.length > 0) {
|
|
685030
|
+
paths[dep.name] = dep.outputs;
|
|
685031
|
+
for (const path8 of pathsKeys) {
|
|
685032
|
+
const nestedName = `${dep.name}/`;
|
|
685033
|
+
if (path8.startsWith(nestedName)) {
|
|
685034
|
+
const nestedPart = path8.slice(nestedName.length);
|
|
685035
|
+
let mappedPaths = dep.outputs.map((output3) => `${output3}/${nestedPart}`);
|
|
685036
|
+
const { root } = dep.node.data;
|
|
685037
|
+
mappedPaths = mappedPaths.concat(paths[path8].flatMap((p2) => dep.outputs.flatMap((output3) => {
|
|
685038
|
+
const basePath = p2.replace(root, output3);
|
|
685039
|
+
return [
|
|
685040
|
+
// extension-less path to support compiled output
|
|
685041
|
+
basePath.replace(new RegExp(`${(0, path_1.extname)(basePath)}$`, "gi"), ""),
|
|
685042
|
+
// original path with the root re-mapped to the output path
|
|
685043
|
+
basePath
|
|
685044
|
+
];
|
|
685045
|
+
})));
|
|
685046
|
+
paths[path8] = mappedPaths;
|
|
685047
|
+
}
|
|
685048
|
+
}
|
|
685049
|
+
}
|
|
685050
|
+
});
|
|
685051
|
+
}
|
|
685052
|
+
function updateBuildableProjectPackageJsonDependencies(root, projectName, targetName, configurationName, node, dependencies, typeOfDependency = "dependencies") {
|
|
685053
|
+
const outputs = (0, devkit_1.getOutputsForTargetAndConfiguration)({
|
|
685054
|
+
project: projectName,
|
|
685055
|
+
target: targetName,
|
|
685056
|
+
configuration: configurationName
|
|
685057
|
+
}, {}, node);
|
|
685058
|
+
const packageJsonPath = `${outputs[0]}/package.json`;
|
|
685059
|
+
let packageJson;
|
|
685060
|
+
let workspacePackageJson;
|
|
685061
|
+
try {
|
|
685062
|
+
packageJson = (0, devkit_1.readJsonFile)(packageJsonPath);
|
|
685063
|
+
workspacePackageJson = (0, devkit_1.readJsonFile)(`${root}/package.json`);
|
|
685064
|
+
} catch (e2) {
|
|
685065
|
+
return;
|
|
685066
|
+
}
|
|
685067
|
+
packageJson.dependencies = packageJson.dependencies || {};
|
|
685068
|
+
packageJson.peerDependencies = packageJson.peerDependencies || {};
|
|
685069
|
+
let updatePackageJson = false;
|
|
685070
|
+
dependencies.forEach((entry) => {
|
|
685071
|
+
const packageName = (0, operators_1.isNpmProject)(entry.node) ? entry.node.data.packageName : entry.name;
|
|
685072
|
+
if (!hasDependency(packageJson, "dependencies", packageName) && !hasDependency(packageJson, "devDependencies", packageName) && !hasDependency(packageJson, "peerDependencies", packageName)) {
|
|
685073
|
+
try {
|
|
685074
|
+
let depVersion;
|
|
685075
|
+
if (entry.node.type === "lib") {
|
|
685076
|
+
const outputs2 = (0, devkit_1.getOutputsForTargetAndConfiguration)({
|
|
685077
|
+
project: projectName,
|
|
685078
|
+
target: targetName,
|
|
685079
|
+
configuration: configurationName
|
|
685080
|
+
}, {}, entry.node);
|
|
685081
|
+
const depPackageJsonPath = (0, path_1.join)(root, outputs2[0], "package.json");
|
|
685082
|
+
depVersion = (0, devkit_1.readJsonFile)(depPackageJsonPath).version;
|
|
685083
|
+
packageJson[typeOfDependency][packageName] = depVersion;
|
|
685084
|
+
} else if ((0, operators_1.isNpmProject)(entry.node)) {
|
|
685085
|
+
if (!!workspacePackageJson.devDependencies?.[entry.node.data.packageName]) {
|
|
685086
|
+
return;
|
|
685087
|
+
}
|
|
685088
|
+
depVersion = entry.node.data.version;
|
|
685089
|
+
packageJson[typeOfDependency][entry.node.data.packageName] = depVersion;
|
|
685090
|
+
}
|
|
685091
|
+
updatePackageJson = true;
|
|
685092
|
+
} catch (e2) {
|
|
685093
|
+
}
|
|
685094
|
+
}
|
|
685095
|
+
});
|
|
685096
|
+
if (updatePackageJson) {
|
|
685097
|
+
(0, devkit_1.writeJsonFile)(packageJsonPath, packageJson);
|
|
685098
|
+
}
|
|
685099
|
+
}
|
|
685100
|
+
function hasDependency(outputJson, depConfigName, packageName) {
|
|
685101
|
+
if (outputJson[depConfigName]) {
|
|
685102
|
+
return outputJson[depConfigName][packageName];
|
|
685103
|
+
} else {
|
|
685104
|
+
return false;
|
|
685105
|
+
}
|
|
685106
|
+
}
|
|
685107
|
+
}
|
|
685108
|
+
});
|
|
685109
|
+
|
|
684558
685110
|
// node_modules/.pnpm/builtin-modules@3.3.0/node_modules/builtin-modules/index.js
|
|
684559
685111
|
var require_builtin_modules = __commonJS({
|
|
684560
685112
|
"node_modules/.pnpm/builtin-modules@3.3.0/node_modules/builtin-modules/index.js"(exports2, module2) {
|
|
@@ -686829,9 +687381,9 @@ var require_cjs8 = __commonJS({
|
|
|
686829
687381
|
}
|
|
686830
687382
|
});
|
|
686831
687383
|
|
|
686832
|
-
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@
|
|
687384
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/plugins/rollup/type-definitions.js
|
|
686833
687385
|
var require_type_definitions = __commonJS({
|
|
686834
|
-
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@
|
|
687386
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/plugins/rollup/type-definitions.js"(exports2) {
|
|
686835
687387
|
"use strict";
|
|
686836
687388
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
686837
687389
|
exports2.typeDefinitions = typeDefinitions;
|
|
@@ -686867,9 +687419,9 @@ var require_type_definitions = __commonJS({
|
|
|
686867
687419
|
}
|
|
686868
687420
|
});
|
|
686869
687421
|
|
|
686870
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687422
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/analyze.js
|
|
686871
687423
|
var require_analyze = __commonJS({
|
|
686872
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687424
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/analyze.js"(exports2) {
|
|
686873
687425
|
"use strict";
|
|
686874
687426
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
686875
687427
|
exports2.analyze = analyze;
|
|
@@ -686897,9 +687449,9 @@ var require_analyze = __commonJS({
|
|
|
686897
687449
|
}
|
|
686898
687450
|
});
|
|
686899
687451
|
|
|
686900
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687452
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/swc.js
|
|
686901
687453
|
var require_swc = __commonJS({
|
|
686902
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687454
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/swc.js"(exports2) {
|
|
686903
687455
|
"use strict";
|
|
686904
687456
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
686905
687457
|
exports2.swc = swc;
|
|
@@ -686922,9 +687474,9 @@ var require_swc = __commonJS({
|
|
|
686922
687474
|
}
|
|
686923
687475
|
});
|
|
686924
687476
|
|
|
686925
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687477
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/package-json/update-package-json.js
|
|
686926
687478
|
var require_update_package_json2 = __commonJS({
|
|
686927
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687479
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/package-json/update-package-json.js"(exports2) {
|
|
686928
687480
|
"use strict";
|
|
686929
687481
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
686930
687482
|
exports2.updatePackageJson = updatePackageJson;
|
|
@@ -687018,9 +687570,9 @@ var require_update_package_json2 = __commonJS({
|
|
|
687018
687570
|
}
|
|
687019
687571
|
});
|
|
687020
687572
|
|
|
687021
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687573
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/package-json/generate-package-json.js
|
|
687022
687574
|
var require_generate_package_json = __commonJS({
|
|
687023
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687575
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/package-json/generate-package-json.js"(exports2) {
|
|
687024
687576
|
"use strict";
|
|
687025
687577
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687026
687578
|
exports2.pluginName = void 0;
|
|
@@ -687038,9 +687590,9 @@ var require_generate_package_json = __commonJS({
|
|
|
687038
687590
|
}
|
|
687039
687591
|
});
|
|
687040
687592
|
|
|
687041
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687593
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/with-nx/get-project-node.js
|
|
687042
687594
|
var require_get_project_node = __commonJS({
|
|
687043
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687595
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/with-nx/get-project-node.js"(exports2) {
|
|
687044
687596
|
"use strict";
|
|
687045
687597
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687046
687598
|
exports2.getProjectNode = getProjectNode;
|
|
@@ -687063,9 +687615,9 @@ var require_get_project_node = __commonJS({
|
|
|
687063
687615
|
}
|
|
687064
687616
|
});
|
|
687065
687617
|
|
|
687066
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687618
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/utils/fs.js
|
|
687067
687619
|
var require_fs7 = __commonJS({
|
|
687068
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687620
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/utils/fs.js"(exports2) {
|
|
687069
687621
|
"use strict";
|
|
687070
687622
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687071
687623
|
exports2.deleteOutputDir = deleteOutputDir;
|
|
@@ -687081,9 +687633,9 @@ var require_fs7 = __commonJS({
|
|
|
687081
687633
|
}
|
|
687082
687634
|
});
|
|
687083
687635
|
|
|
687084
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687636
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/delete-output.js
|
|
687085
687637
|
var require_delete_output = __commonJS({
|
|
687086
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
687638
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/delete-output.js"(exports2) {
|
|
687087
687639
|
"use strict";
|
|
687088
687640
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687089
687641
|
exports2.deleteOutput = deleteOutput;
|
|
@@ -687097,16 +687649,2328 @@ var require_delete_output = __commonJS({
|
|
|
687097
687649
|
}
|
|
687098
687650
|
});
|
|
687099
687651
|
|
|
687100
|
-
// node_modules/.pnpm/@nx+
|
|
687652
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/add-tslib-dependencies.js
|
|
687653
|
+
var require_add_tslib_dependencies2 = __commonJS({
|
|
687654
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/add-tslib-dependencies.js"(exports2) {
|
|
687655
|
+
"use strict";
|
|
687656
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687657
|
+
exports2.addTsLibDependencies = addTsLibDependencies;
|
|
687658
|
+
var devkit_1 = require("@nx/devkit");
|
|
687659
|
+
var versions_1 = require_versions4();
|
|
687660
|
+
function addTsLibDependencies(tree) {
|
|
687661
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
687662
|
+
tslib: versions_1.tsLibVersion
|
|
687663
|
+
}, {});
|
|
687664
|
+
}
|
|
687665
|
+
}
|
|
687666
|
+
});
|
|
687667
|
+
|
|
687668
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/load-ts-transformers.js
|
|
687669
|
+
var require_load_ts_transformers2 = __commonJS({
|
|
687670
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/load-ts-transformers.js"(exports2, module2) {
|
|
687671
|
+
"use strict";
|
|
687672
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687673
|
+
exports2.loadTsTransformers = loadTsTransformers;
|
|
687674
|
+
var devkit_1 = require("@nx/devkit");
|
|
687675
|
+
var path_1 = require("path");
|
|
687676
|
+
function loadTsTransformers(plugins, moduleResolver = require.resolve) {
|
|
687677
|
+
const beforeHooks = [];
|
|
687678
|
+
const afterHooks = [];
|
|
687679
|
+
const afterDeclarationsHooks = [];
|
|
687680
|
+
if (!plugins || !plugins.length)
|
|
687681
|
+
return {
|
|
687682
|
+
compilerPluginHooks: {
|
|
687683
|
+
beforeHooks,
|
|
687684
|
+
afterHooks,
|
|
687685
|
+
afterDeclarationsHooks
|
|
687686
|
+
},
|
|
687687
|
+
hasPlugin: false
|
|
687688
|
+
};
|
|
687689
|
+
const normalizedPlugins = plugins.map((plugin) => typeof plugin === "string" ? { name: plugin, options: {} } : plugin);
|
|
687690
|
+
const nodeModulePaths = [
|
|
687691
|
+
(0, path_1.join)(process.cwd(), "node_modules"),
|
|
687692
|
+
...module2.paths
|
|
687693
|
+
];
|
|
687694
|
+
const pluginRefs = normalizedPlugins.map(({ name }) => {
|
|
687695
|
+
try {
|
|
687696
|
+
const binaryPath = moduleResolver(name, {
|
|
687697
|
+
paths: nodeModulePaths
|
|
687698
|
+
});
|
|
687699
|
+
return require(binaryPath);
|
|
687700
|
+
} catch (e2) {
|
|
687701
|
+
devkit_1.logger.warn(`"${name}" plugin could not be found!`);
|
|
687702
|
+
return {};
|
|
687703
|
+
}
|
|
687704
|
+
});
|
|
687705
|
+
for (let i2 = 0; i2 < pluginRefs.length; i2++) {
|
|
687706
|
+
const { name: pluginName, options: pluginOptions } = normalizedPlugins[i2];
|
|
687707
|
+
const { before, after, afterDeclarations } = pluginRefs[i2];
|
|
687708
|
+
if (!before && !after && !afterDeclarations) {
|
|
687709
|
+
devkit_1.logger.warn(`${pluginName} is not a Transformer Plugin. It does not provide neither before(), after(), nor afterDeclarations()`);
|
|
687710
|
+
continue;
|
|
687711
|
+
}
|
|
687712
|
+
if (before) {
|
|
687713
|
+
beforeHooks.push(before.bind(before, pluginOptions));
|
|
687714
|
+
}
|
|
687715
|
+
if (after) {
|
|
687716
|
+
afterHooks.push(after.bind(after, pluginOptions));
|
|
687717
|
+
}
|
|
687718
|
+
if (afterDeclarations) {
|
|
687719
|
+
afterDeclarationsHooks.push(afterDeclarations.bind(afterDeclarations, pluginOptions));
|
|
687720
|
+
}
|
|
687721
|
+
}
|
|
687722
|
+
return {
|
|
687723
|
+
compilerPluginHooks: {
|
|
687724
|
+
beforeHooks,
|
|
687725
|
+
afterHooks,
|
|
687726
|
+
afterDeclarationsHooks
|
|
687727
|
+
},
|
|
687728
|
+
hasPlugin: true
|
|
687729
|
+
};
|
|
687730
|
+
}
|
|
687731
|
+
}
|
|
687732
|
+
});
|
|
687733
|
+
|
|
687734
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/print-diagnostics.js
|
|
687735
|
+
var require_print_diagnostics2 = __commonJS({
|
|
687736
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/print-diagnostics.js"(exports2) {
|
|
687737
|
+
"use strict";
|
|
687738
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687739
|
+
exports2.printDiagnostics = printDiagnostics;
|
|
687740
|
+
async function printDiagnostics(errors = [], warnings = []) {
|
|
687741
|
+
if (errors.length > 0) {
|
|
687742
|
+
errors.forEach((err) => {
|
|
687743
|
+
console.log(`${err}
|
|
687744
|
+
`);
|
|
687745
|
+
});
|
|
687746
|
+
console.log(`Found ${errors.length} error${errors.length > 1 ? "s" : ""}.`);
|
|
687747
|
+
} else if (warnings.length > 0) {
|
|
687748
|
+
warnings.forEach((err) => {
|
|
687749
|
+
console.log(`${err}
|
|
687750
|
+
`);
|
|
687751
|
+
});
|
|
687752
|
+
console.log(`Found ${warnings.length} warnings.`);
|
|
687753
|
+
}
|
|
687754
|
+
}
|
|
687755
|
+
}
|
|
687756
|
+
});
|
|
687757
|
+
|
|
687758
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/code-frames/identifiers.js
|
|
687759
|
+
var require_identifiers3 = __commonJS({
|
|
687760
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/code-frames/identifiers.js"(exports2) {
|
|
687761
|
+
"use strict";
|
|
687762
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687763
|
+
exports2.isReservedWord = isReservedWord;
|
|
687764
|
+
exports2.isKeyword = isKeyword;
|
|
687765
|
+
var keywords2 = /* @__PURE__ */ new Set([
|
|
687766
|
+
"break",
|
|
687767
|
+
"case",
|
|
687768
|
+
"catch",
|
|
687769
|
+
"continue",
|
|
687770
|
+
"debugger",
|
|
687771
|
+
"default",
|
|
687772
|
+
"do",
|
|
687773
|
+
"else",
|
|
687774
|
+
"finally",
|
|
687775
|
+
"for",
|
|
687776
|
+
"function",
|
|
687777
|
+
"if",
|
|
687778
|
+
"return",
|
|
687779
|
+
"switch",
|
|
687780
|
+
"throw",
|
|
687781
|
+
"try",
|
|
687782
|
+
"var",
|
|
687783
|
+
"const",
|
|
687784
|
+
"while",
|
|
687785
|
+
"with",
|
|
687786
|
+
"new",
|
|
687787
|
+
"this",
|
|
687788
|
+
"super",
|
|
687789
|
+
"class",
|
|
687790
|
+
"extends",
|
|
687791
|
+
"export",
|
|
687792
|
+
"import",
|
|
687793
|
+
"null",
|
|
687794
|
+
"true",
|
|
687795
|
+
"false",
|
|
687796
|
+
"in",
|
|
687797
|
+
"instanceof",
|
|
687798
|
+
"typeof",
|
|
687799
|
+
"void",
|
|
687800
|
+
"delete"
|
|
687801
|
+
]);
|
|
687802
|
+
function isReservedWord(word, inModule) {
|
|
687803
|
+
return inModule && word === "await" || word === "enum";
|
|
687804
|
+
}
|
|
687805
|
+
function isKeyword(word) {
|
|
687806
|
+
return keywords2.has(word);
|
|
687807
|
+
}
|
|
687808
|
+
}
|
|
687809
|
+
});
|
|
687810
|
+
|
|
687811
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/code-frames/highlight.js
|
|
687812
|
+
var require_highlight2 = __commonJS({
|
|
687813
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/code-frames/highlight.js"(exports2) {
|
|
687814
|
+
"use strict";
|
|
687815
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687816
|
+
exports2.highlight = highlight;
|
|
687817
|
+
var jsTokens = require_js_tokens();
|
|
687818
|
+
var chalk2 = require_source();
|
|
687819
|
+
var identifiers_1 = require_identifiers3();
|
|
687820
|
+
function getDefs(chalk3) {
|
|
687821
|
+
return {
|
|
687822
|
+
keyword: chalk3.cyan,
|
|
687823
|
+
capitalized: chalk3.yellow,
|
|
687824
|
+
jsx_tag: chalk3.yellow,
|
|
687825
|
+
punctuator: chalk3.yellow,
|
|
687826
|
+
// bracket: intentionally omitted.
|
|
687827
|
+
number: chalk3.magenta,
|
|
687828
|
+
string: chalk3.green,
|
|
687829
|
+
regex: chalk3.magenta,
|
|
687830
|
+
comment: chalk3.grey,
|
|
687831
|
+
invalid: chalk3.white.bgRed.bold
|
|
687832
|
+
};
|
|
687833
|
+
}
|
|
687834
|
+
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
687835
|
+
var JSX_TAG = /^[a-z][\w-]*$/i;
|
|
687836
|
+
var BRACKET = /^[()[\]{}]$/;
|
|
687837
|
+
function getTokenType(match2) {
|
|
687838
|
+
const [offset2, text] = match2.slice(-2);
|
|
687839
|
+
const token = jsTokens.matchToToken(match2);
|
|
687840
|
+
if (token.type === "name") {
|
|
687841
|
+
if ((0, identifiers_1.isKeyword)(token.value) || (0, identifiers_1.isReservedWord)(token.value)) {
|
|
687842
|
+
return "keyword";
|
|
687843
|
+
}
|
|
687844
|
+
if (JSX_TAG.test(token.value) && (text[offset2 - 1] === "<" || text.slice(offset2 - 2, 2) == "</")) {
|
|
687845
|
+
return "jsx_tag";
|
|
687846
|
+
}
|
|
687847
|
+
if (token.value[0] !== token.value[0].toLowerCase()) {
|
|
687848
|
+
return "capitalized";
|
|
687849
|
+
}
|
|
687850
|
+
}
|
|
687851
|
+
if (token.type === "punctuator" && BRACKET.test(token.value)) {
|
|
687852
|
+
return "bracket";
|
|
687853
|
+
}
|
|
687854
|
+
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
|
|
687855
|
+
return "punctuator";
|
|
687856
|
+
}
|
|
687857
|
+
return token.type;
|
|
687858
|
+
}
|
|
687859
|
+
function highlightTokens(defs, text) {
|
|
687860
|
+
return text.replace(jsTokens.default, function(...args) {
|
|
687861
|
+
const type = getTokenType(args);
|
|
687862
|
+
const colorize = defs[type];
|
|
687863
|
+
if (colorize) {
|
|
687864
|
+
return args[0].split(NEWLINE).map((str) => colorize(str)).join("\n");
|
|
687865
|
+
} else {
|
|
687866
|
+
return args[0];
|
|
687867
|
+
}
|
|
687868
|
+
});
|
|
687869
|
+
}
|
|
687870
|
+
function highlight(code) {
|
|
687871
|
+
const defs = getDefs(chalk2);
|
|
687872
|
+
return highlightTokens(defs, code);
|
|
687873
|
+
}
|
|
687874
|
+
}
|
|
687875
|
+
});
|
|
687876
|
+
|
|
687877
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/run-type-check.js
|
|
687878
|
+
var require_run_type_check2 = __commonJS({
|
|
687879
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/run-type-check.js"(exports2) {
|
|
687880
|
+
"use strict";
|
|
687881
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687882
|
+
exports2.runTypeCheckWatch = runTypeCheckWatch;
|
|
687883
|
+
exports2.runTypeCheck = runTypeCheck;
|
|
687884
|
+
exports2.getFormattedDiagnostic = getFormattedDiagnostic;
|
|
687885
|
+
var chalk2 = require_source();
|
|
687886
|
+
var path8 = require("path");
|
|
687887
|
+
var code_frames_1 = require("nx/src/utils/code-frames");
|
|
687888
|
+
var highlight_1 = require_highlight2();
|
|
687889
|
+
var ts_config_1 = require_ts_config2();
|
|
687890
|
+
async function runTypeCheckWatch(options, callback) {
|
|
687891
|
+
const { ts, workspaceRoot: workspaceRoot3, config, compilerOptions } = await setupTypeScript(options);
|
|
687892
|
+
const host = ts.createWatchCompilerHost(config.fileNames, compilerOptions, ts.sys, ts.createEmitAndSemanticDiagnosticsBuilderProgram);
|
|
687893
|
+
const originalOnWatchStatusChange = host.onWatchStatusChange;
|
|
687894
|
+
host.onWatchStatusChange = (diagnostic, newLine, opts, errorCount) => {
|
|
687895
|
+
originalOnWatchStatusChange?.(diagnostic, newLine, opts, errorCount);
|
|
687896
|
+
callback(diagnostic, getFormattedDiagnostic(ts, workspaceRoot3, diagnostic), errorCount);
|
|
687897
|
+
};
|
|
687898
|
+
const watchProgram = ts.createWatchProgram(host);
|
|
687899
|
+
const program = watchProgram.getProgram().getProgram();
|
|
687900
|
+
const diagnostics = ts.getPreEmitDiagnostics(program);
|
|
687901
|
+
return {
|
|
687902
|
+
close: watchProgram.close.bind(watchProgram),
|
|
687903
|
+
preEmitErrors: diagnostics.filter((d4) => d4.category === ts.DiagnosticCategory.Error).map((d4) => getFormattedDiagnostic(ts, workspaceRoot3, d4)),
|
|
687904
|
+
preEmitWarnings: diagnostics.filter((d4) => d4.category === ts.DiagnosticCategory.Warning).map((d4) => getFormattedDiagnostic(ts, workspaceRoot3, d4))
|
|
687905
|
+
};
|
|
687906
|
+
}
|
|
687907
|
+
async function runTypeCheck(options) {
|
|
687908
|
+
const { ts, workspaceRoot: workspaceRoot3, cacheDir, config, compilerOptions } = await setupTypeScript(options);
|
|
687909
|
+
let program;
|
|
687910
|
+
let incremental = false;
|
|
687911
|
+
if (compilerOptions.incremental && cacheDir) {
|
|
687912
|
+
incremental = true;
|
|
687913
|
+
program = ts.createIncrementalProgram({
|
|
687914
|
+
rootNames: config.fileNames,
|
|
687915
|
+
options: {
|
|
687916
|
+
...compilerOptions,
|
|
687917
|
+
incremental: true,
|
|
687918
|
+
tsBuildInfoFile: path8.join(cacheDir, ".tsbuildinfo")
|
|
687919
|
+
}
|
|
687920
|
+
});
|
|
687921
|
+
} else {
|
|
687922
|
+
program = ts.createProgram(config.fileNames, compilerOptions);
|
|
687923
|
+
}
|
|
687924
|
+
const result = program.emit();
|
|
687925
|
+
const allDiagnostics = ts.getPreEmitDiagnostics(program).concat(result.diagnostics);
|
|
687926
|
+
return getTypeCheckResult(ts, allDiagnostics, workspaceRoot3, config.fileNames.length, program.getSourceFiles().length, incremental);
|
|
687927
|
+
}
|
|
687928
|
+
async function setupTypeScript(options) {
|
|
687929
|
+
const ts = await Promise.resolve().then(() => require_typescript());
|
|
687930
|
+
const { workspaceRoot: workspaceRoot3, tsConfigPath, cacheDir, incremental, projectRoot } = options;
|
|
687931
|
+
const config = (0, ts_config_1.readTsConfig)(tsConfigPath);
|
|
687932
|
+
if (config.errors.length) {
|
|
687933
|
+
const errorMessages = config.errors.map((e2) => e2.messageText).join("\n");
|
|
687934
|
+
throw new Error(`Invalid config file due to following: ${errorMessages}`);
|
|
687935
|
+
}
|
|
687936
|
+
const emitOptions = options.mode === "emitDeclarationOnly" ? {
|
|
687937
|
+
emitDeclarationOnly: true,
|
|
687938
|
+
declaration: true,
|
|
687939
|
+
outDir: options.outDir,
|
|
687940
|
+
declarationDir: options.projectRoot && options.outDir.indexOf(projectRoot) ? options.outDir.replace(projectRoot, "") : void 0
|
|
687941
|
+
} : { noEmit: true };
|
|
687942
|
+
const compilerOptions = {
|
|
687943
|
+
...config.options,
|
|
687944
|
+
skipLibCheck: true,
|
|
687945
|
+
...emitOptions,
|
|
687946
|
+
incremental,
|
|
687947
|
+
rootDir: options.rootDir || config.options.rootDir
|
|
687948
|
+
};
|
|
687949
|
+
return { ts, workspaceRoot: workspaceRoot3, cacheDir, config, compilerOptions };
|
|
687950
|
+
}
|
|
687951
|
+
function getTypeCheckResult(ts, allDiagnostics, workspaceRoot3, inputFilesCount, totalFilesCount, incremental = false) {
|
|
687952
|
+
const errors = allDiagnostics.filter((d4) => d4.category === ts.DiagnosticCategory.Error).map((d4) => getFormattedDiagnostic(ts, workspaceRoot3, d4));
|
|
687953
|
+
const warnings = allDiagnostics.filter((d4) => d4.category === ts.DiagnosticCategory.Warning).map((d4) => getFormattedDiagnostic(ts, workspaceRoot3, d4));
|
|
687954
|
+
return {
|
|
687955
|
+
warnings,
|
|
687956
|
+
errors,
|
|
687957
|
+
inputFilesCount,
|
|
687958
|
+
totalFilesCount,
|
|
687959
|
+
incremental
|
|
687960
|
+
};
|
|
687961
|
+
}
|
|
687962
|
+
function getFormattedDiagnostic(ts, workspaceRoot3, diagnostic) {
|
|
687963
|
+
let message = "";
|
|
687964
|
+
const reason = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
|
|
687965
|
+
const category = diagnostic.category;
|
|
687966
|
+
switch (category) {
|
|
687967
|
+
case ts.DiagnosticCategory.Warning: {
|
|
687968
|
+
message += `${chalk2.yellow.bold("warning")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
|
|
687969
|
+
break;
|
|
687970
|
+
}
|
|
687971
|
+
case ts.DiagnosticCategory.Error: {
|
|
687972
|
+
message += `${chalk2.red.bold("error")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
|
|
687973
|
+
break;
|
|
687974
|
+
}
|
|
687975
|
+
case ts.DiagnosticCategory.Suggestion:
|
|
687976
|
+
case ts.DiagnosticCategory.Message:
|
|
687977
|
+
default: {
|
|
687978
|
+
message += `${chalk2.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
|
|
687979
|
+
break;
|
|
687980
|
+
}
|
|
687981
|
+
}
|
|
687982
|
+
message += reason + "\n";
|
|
687983
|
+
if (diagnostic.file) {
|
|
687984
|
+
const pos = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
|
|
687985
|
+
const line = pos.line + 1;
|
|
687986
|
+
const column = pos.character + 1;
|
|
687987
|
+
const fileName = path8.relative(workspaceRoot3, diagnostic.file.fileName);
|
|
687988
|
+
message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
|
|
687989
|
+
const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
|
|
687990
|
+
message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
|
|
687991
|
+
start: { line, column }
|
|
687992
|
+
}, { highlight: highlight_1.highlight });
|
|
687993
|
+
}
|
|
687994
|
+
return message;
|
|
687995
|
+
}
|
|
687996
|
+
}
|
|
687997
|
+
});
|
|
687998
|
+
|
|
687999
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/get-source-nodes.js
|
|
688000
|
+
var require_get_source_nodes2 = __commonJS({
|
|
688001
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/get-source-nodes.js"(exports2) {
|
|
688002
|
+
"use strict";
|
|
688003
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688004
|
+
exports2.getSourceNodes = getSourceNodes;
|
|
688005
|
+
function getSourceNodes(sourceFile) {
|
|
688006
|
+
const nodes = [sourceFile];
|
|
688007
|
+
const result = [];
|
|
688008
|
+
while (nodes.length > 0) {
|
|
688009
|
+
const node = nodes.shift();
|
|
688010
|
+
if (node) {
|
|
688011
|
+
result.push(node);
|
|
688012
|
+
if (node.getChildCount(sourceFile) >= 0) {
|
|
688013
|
+
nodes.unshift(...node.getChildren());
|
|
688014
|
+
}
|
|
688015
|
+
}
|
|
688016
|
+
}
|
|
688017
|
+
return result;
|
|
688018
|
+
}
|
|
688019
|
+
}
|
|
688020
|
+
});
|
|
688021
|
+
|
|
688022
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/swc/get-swcrc-path.js
|
|
688023
|
+
var require_get_swcrc_path2 = __commonJS({
|
|
688024
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/swc/get-swcrc-path.js"(exports2) {
|
|
688025
|
+
"use strict";
|
|
688026
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688027
|
+
exports2.getSwcrcPath = getSwcrcPath;
|
|
688028
|
+
var path_1 = require("path");
|
|
688029
|
+
function getSwcrcPath(options, contextRoot, projectRoot) {
|
|
688030
|
+
const swcrcPath = options.swcrc ? (0, path_1.join)(contextRoot, options.swcrc) : (0, path_1.join)(contextRoot, projectRoot, ".swcrc");
|
|
688031
|
+
const tmpSwcrcPath = (0, path_1.join)(contextRoot, projectRoot, "tmp", ".generated.swcrc");
|
|
688032
|
+
return {
|
|
688033
|
+
swcrcPath,
|
|
688034
|
+
tmpSwcrcPath
|
|
688035
|
+
};
|
|
688036
|
+
}
|
|
688037
|
+
}
|
|
688038
|
+
});
|
|
688039
|
+
|
|
688040
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/compiler-helper-dependency.js
|
|
688041
|
+
var require_compiler_helper_dependency2 = __commonJS({
|
|
688042
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/compiler-helper-dependency.js"(exports2) {
|
|
688043
|
+
"use strict";
|
|
688044
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688045
|
+
exports2.HelperDependency = void 0;
|
|
688046
|
+
exports2.getHelperDependency = getHelperDependency;
|
|
688047
|
+
exports2.getHelperDependenciesFromProjectGraph = getHelperDependenciesFromProjectGraph;
|
|
688048
|
+
var devkit_1 = require("@nx/devkit");
|
|
688049
|
+
var path_1 = require("path");
|
|
688050
|
+
var ts_config_1 = require_ts_config2();
|
|
688051
|
+
var get_swcrc_path_1 = require_get_swcrc_path2();
|
|
688052
|
+
var HelperDependency;
|
|
688053
|
+
(function(HelperDependency2) {
|
|
688054
|
+
HelperDependency2["tsc"] = "npm:tslib";
|
|
688055
|
+
HelperDependency2["swc"] = "npm:@swc/helpers";
|
|
688056
|
+
})(HelperDependency || (exports2.HelperDependency = HelperDependency = {}));
|
|
688057
|
+
var jsExecutors = {
|
|
688058
|
+
"@nx/js:tsc": {
|
|
688059
|
+
helperDependency: HelperDependency.tsc,
|
|
688060
|
+
getConfigPath: (options, contextRoot, _6) => (0, path_1.join)(contextRoot, options.tsConfig)
|
|
688061
|
+
},
|
|
688062
|
+
"@nx/js:swc": {
|
|
688063
|
+
helperDependency: HelperDependency.swc,
|
|
688064
|
+
getConfigPath: (options, contextRoot, projectRoot) => (0, get_swcrc_path_1.getSwcrcPath)(options, contextRoot, projectRoot).swcrcPath
|
|
688065
|
+
}
|
|
688066
|
+
};
|
|
688067
|
+
function getHelperDependency(helperDependency, configPath, dependencies, projectGraph, returnDependencyIfFound = false) {
|
|
688068
|
+
const dependency = dependencies.find((dep) => dep.name === helperDependency);
|
|
688069
|
+
if (!!dependency) {
|
|
688070
|
+
return returnDependencyIfFound ? dependency : null;
|
|
688071
|
+
}
|
|
688072
|
+
let isHelperNeeded = false;
|
|
688073
|
+
switch (helperDependency) {
|
|
688074
|
+
case HelperDependency.tsc:
|
|
688075
|
+
isHelperNeeded = !!(0, ts_config_1.readTsConfig)(configPath).options["importHelpers"];
|
|
688076
|
+
break;
|
|
688077
|
+
case HelperDependency.swc:
|
|
688078
|
+
isHelperNeeded = !!(0, devkit_1.readJsonFile)(configPath)["jsc"]["externalHelpers"];
|
|
688079
|
+
break;
|
|
688080
|
+
}
|
|
688081
|
+
if (!isHelperNeeded)
|
|
688082
|
+
return null;
|
|
688083
|
+
let libNode = projectGraph[helperDependency];
|
|
688084
|
+
if (!libNode) {
|
|
688085
|
+
for (const nodeName of Object.keys(projectGraph.externalNodes)) {
|
|
688086
|
+
const node = projectGraph.externalNodes[nodeName];
|
|
688087
|
+
if (`npm:${node.data.packageName}` === helperDependency) {
|
|
688088
|
+
libNode = node;
|
|
688089
|
+
break;
|
|
688090
|
+
}
|
|
688091
|
+
}
|
|
688092
|
+
}
|
|
688093
|
+
if (!libNode) {
|
|
688094
|
+
devkit_1.logger.warn(`Your library compilation option specifies that the compiler external helper (${helperDependency.split(":")[1]}) is needed but it is not installed.`);
|
|
688095
|
+
return null;
|
|
688096
|
+
}
|
|
688097
|
+
return {
|
|
688098
|
+
name: helperDependency,
|
|
688099
|
+
outputs: [],
|
|
688100
|
+
node: libNode
|
|
688101
|
+
};
|
|
688102
|
+
}
|
|
688103
|
+
function getHelperDependenciesFromProjectGraph(contextRoot, sourceProject, projectGraph) {
|
|
688104
|
+
if (!projectGraph.nodes[sourceProject])
|
|
688105
|
+
return [];
|
|
688106
|
+
if (!projectGraph.dependencies[sourceProject] || !projectGraph.dependencies[sourceProject].length)
|
|
688107
|
+
return [];
|
|
688108
|
+
const sourceDependencies = projectGraph.dependencies[sourceProject];
|
|
688109
|
+
const internalDependencies = sourceDependencies.reduce((result, dependency) => {
|
|
688110
|
+
if (projectGraph.nodes[dependency.target] && projectGraph.nodes[dependency.target].type === "lib") {
|
|
688111
|
+
const targetData = projectGraph.nodes[dependency.target].data;
|
|
688112
|
+
const targetExecutor = Object.values(targetData.targets).find(({ executor }) => !!jsExecutors[executor]);
|
|
688113
|
+
if (targetExecutor) {
|
|
688114
|
+
const jsExecutor = jsExecutors[targetExecutor["executor"]];
|
|
688115
|
+
const { root: projectRoot } = targetData;
|
|
688116
|
+
const configPath = jsExecutor.getConfigPath(targetExecutor["options"], contextRoot, projectRoot);
|
|
688117
|
+
result.push({
|
|
688118
|
+
helperDependency: jsExecutors[targetExecutor["executor"]].helperDependency,
|
|
688119
|
+
dependencies: projectGraph.dependencies[dependency.target],
|
|
688120
|
+
configPath
|
|
688121
|
+
});
|
|
688122
|
+
}
|
|
688123
|
+
}
|
|
688124
|
+
return result;
|
|
688125
|
+
}, []);
|
|
688126
|
+
return internalDependencies.reduce((result, { helperDependency, configPath, dependencies }) => {
|
|
688127
|
+
const dependency = getHelperDependency(helperDependency, configPath, dependencies, projectGraph, true);
|
|
688128
|
+
if (dependency) {
|
|
688129
|
+
result.push({
|
|
688130
|
+
type: "static",
|
|
688131
|
+
source: sourceProject,
|
|
688132
|
+
target: dependency.name
|
|
688133
|
+
});
|
|
688134
|
+
}
|
|
688135
|
+
return result;
|
|
688136
|
+
}, []);
|
|
688137
|
+
}
|
|
688138
|
+
}
|
|
688139
|
+
});
|
|
688140
|
+
|
|
688141
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/create-ts-config.js
|
|
688142
|
+
var require_create_ts_config2 = __commonJS({
|
|
688143
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/create-ts-config.js"(exports2) {
|
|
688144
|
+
"use strict";
|
|
688145
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688146
|
+
exports2.tsConfigBaseOptions = void 0;
|
|
688147
|
+
exports2.extractTsConfigBase = extractTsConfigBase;
|
|
688148
|
+
var json_1 = require("nx/src/generators/utils/json");
|
|
688149
|
+
exports2.tsConfigBaseOptions = {
|
|
688150
|
+
rootDir: ".",
|
|
688151
|
+
sourceMap: true,
|
|
688152
|
+
declaration: false,
|
|
688153
|
+
moduleResolution: "node",
|
|
688154
|
+
emitDecoratorMetadata: true,
|
|
688155
|
+
experimentalDecorators: true,
|
|
688156
|
+
importHelpers: true,
|
|
688157
|
+
target: "es2015",
|
|
688158
|
+
module: "esnext",
|
|
688159
|
+
lib: ["es2020", "dom"],
|
|
688160
|
+
skipLibCheck: true,
|
|
688161
|
+
skipDefaultLibCheck: true,
|
|
688162
|
+
baseUrl: ".",
|
|
688163
|
+
paths: {}
|
|
688164
|
+
};
|
|
688165
|
+
function extractTsConfigBase(host) {
|
|
688166
|
+
if (host.exists("tsconfig.base.json"))
|
|
688167
|
+
return;
|
|
688168
|
+
const tsconfig = (0, json_1.readJson)(host, "tsconfig.json");
|
|
688169
|
+
const baseCompilerOptions = {};
|
|
688170
|
+
if (tsconfig.compilerOptions) {
|
|
688171
|
+
for (let compilerOption of Object.keys(exports2.tsConfigBaseOptions)) {
|
|
688172
|
+
baseCompilerOptions[compilerOption] = tsconfig.compilerOptions[compilerOption];
|
|
688173
|
+
delete tsconfig.compilerOptions[compilerOption];
|
|
688174
|
+
}
|
|
688175
|
+
}
|
|
688176
|
+
if (typeof baseCompilerOptions.baseUrl === "undefined") {
|
|
688177
|
+
baseCompilerOptions.baseUrl = ".";
|
|
688178
|
+
}
|
|
688179
|
+
(0, json_1.writeJson)(host, "tsconfig.base.json", {
|
|
688180
|
+
compileOnSave: false,
|
|
688181
|
+
compilerOptions: baseCompilerOptions,
|
|
688182
|
+
exclude: tsconfig.exclude
|
|
688183
|
+
});
|
|
688184
|
+
tsconfig.extends = "./tsconfig.base.json";
|
|
688185
|
+
delete tsconfig.compileOnSave;
|
|
688186
|
+
delete tsconfig.exclude;
|
|
688187
|
+
(0, json_1.writeJson)(host, "tsconfig.json", tsconfig);
|
|
688188
|
+
if (host.exists("e2e/tsconfig.json")) {
|
|
688189
|
+
(0, json_1.updateJson)(host, "e2e/tsconfig.json", (json) => {
|
|
688190
|
+
json.extends = "../tsconfig.base.json";
|
|
688191
|
+
return json;
|
|
688192
|
+
});
|
|
688193
|
+
}
|
|
688194
|
+
}
|
|
688195
|
+
}
|
|
688196
|
+
});
|
|
688197
|
+
|
|
688198
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/ast-utils.js
|
|
688199
|
+
var require_ast_utils5 = __commonJS({
|
|
688200
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/typescript/ast-utils.js"(exports2) {
|
|
688201
|
+
"use strict";
|
|
688202
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688203
|
+
exports2.resolveModuleByImport = resolveModuleByImport;
|
|
688204
|
+
exports2.insertChange = insertChange;
|
|
688205
|
+
exports2.replaceChange = replaceChange;
|
|
688206
|
+
exports2.removeChange = removeChange;
|
|
688207
|
+
exports2.insertImport = insertImport;
|
|
688208
|
+
exports2.addGlobal = addGlobal;
|
|
688209
|
+
exports2.getImport = getImport;
|
|
688210
|
+
exports2.replaceNodeValue = replaceNodeValue;
|
|
688211
|
+
exports2.addParameterToConstructor = addParameterToConstructor;
|
|
688212
|
+
exports2.addMethod = addMethod;
|
|
688213
|
+
exports2.findClass = findClass;
|
|
688214
|
+
exports2.findNodes = findNodes;
|
|
688215
|
+
var ensure_typescript_1 = require_ensure_typescript2();
|
|
688216
|
+
var devkit_1 = require("@nx/devkit");
|
|
688217
|
+
var path_1 = require("path");
|
|
688218
|
+
var get_source_nodes_1 = require_get_source_nodes2();
|
|
688219
|
+
var normalizedAppRoot = devkit_1.workspaceRoot.replace(/\\/g, "/");
|
|
688220
|
+
var tsModule;
|
|
688221
|
+
var compilerHost;
|
|
688222
|
+
function resolveModuleByImport(importExpr, filePath, tsConfigPath) {
|
|
688223
|
+
compilerHost = compilerHost || getCompilerHost(tsConfigPath);
|
|
688224
|
+
const { options, host, moduleResolutionCache } = compilerHost;
|
|
688225
|
+
const { resolvedModule } = tsModule.resolveModuleName(importExpr, filePath, options, host, moduleResolutionCache);
|
|
688226
|
+
if (!resolvedModule) {
|
|
688227
|
+
return;
|
|
688228
|
+
} else {
|
|
688229
|
+
return resolvedModule.resolvedFileName.replace(`${normalizedAppRoot}/`, "");
|
|
688230
|
+
}
|
|
688231
|
+
}
|
|
688232
|
+
function getCompilerHost(tsConfigPath) {
|
|
688233
|
+
const options = readTsConfigOptions(tsConfigPath);
|
|
688234
|
+
const host = tsModule.createCompilerHost(options, true);
|
|
688235
|
+
const moduleResolutionCache = tsModule.createModuleResolutionCache(devkit_1.workspaceRoot, host.getCanonicalFileName);
|
|
688236
|
+
return { options, host, moduleResolutionCache };
|
|
688237
|
+
}
|
|
688238
|
+
function readTsConfigOptions(tsConfigPath) {
|
|
688239
|
+
if (!tsModule) {
|
|
688240
|
+
tsModule = require_typescript();
|
|
688241
|
+
}
|
|
688242
|
+
const readResult = tsModule.readConfigFile(tsConfigPath, tsModule.sys.readFile);
|
|
688243
|
+
const host = {
|
|
688244
|
+
readDirectory: () => [],
|
|
688245
|
+
readFile: () => "",
|
|
688246
|
+
fileExists: tsModule.sys.fileExists
|
|
688247
|
+
};
|
|
688248
|
+
return tsModule.parseJsonConfigFileContent(readResult.config, host, (0, path_1.dirname)(tsConfigPath)).options;
|
|
688249
|
+
}
|
|
688250
|
+
function nodesByPosition(first, second) {
|
|
688251
|
+
return first.getStart() - second.getStart();
|
|
688252
|
+
}
|
|
688253
|
+
function updateTsSourceFile(host, sourceFile, filePath) {
|
|
688254
|
+
const newFileContents = host.read(filePath).toString("utf-8");
|
|
688255
|
+
return sourceFile.update(newFileContents, {
|
|
688256
|
+
newLength: newFileContents.length,
|
|
688257
|
+
span: {
|
|
688258
|
+
length: sourceFile.text.length,
|
|
688259
|
+
start: 0
|
|
688260
|
+
}
|
|
688261
|
+
});
|
|
688262
|
+
}
|
|
688263
|
+
function insertChange(host, sourceFile, filePath, insertPosition, contentToInsert) {
|
|
688264
|
+
const content = host.read(filePath).toString();
|
|
688265
|
+
const prefix = content.substring(0, insertPosition);
|
|
688266
|
+
const suffix = content.substring(insertPosition);
|
|
688267
|
+
host.write(filePath, `${prefix}${contentToInsert}${suffix}`);
|
|
688268
|
+
return updateTsSourceFile(host, sourceFile, filePath);
|
|
688269
|
+
}
|
|
688270
|
+
function replaceChange(host, sourceFile, filePath, insertPosition, contentToInsert, oldContent) {
|
|
688271
|
+
const content = host.read(filePath, "utf-8");
|
|
688272
|
+
const prefix = content.substring(0, insertPosition);
|
|
688273
|
+
const suffix = content.substring(insertPosition + oldContent.length);
|
|
688274
|
+
const text = content.substring(insertPosition, insertPosition + oldContent.length);
|
|
688275
|
+
if (text !== oldContent) {
|
|
688276
|
+
throw new Error(`Invalid replace: "${text}" != "${oldContent}".`);
|
|
688277
|
+
}
|
|
688278
|
+
host.write(filePath, `${prefix}${contentToInsert}${suffix}`);
|
|
688279
|
+
return updateTsSourceFile(host, sourceFile, filePath);
|
|
688280
|
+
}
|
|
688281
|
+
function removeChange(host, sourceFile, filePath, removePosition, contentToRemove) {
|
|
688282
|
+
const content = host.read(filePath).toString();
|
|
688283
|
+
const prefix = content.substring(0, removePosition);
|
|
688284
|
+
const suffix = content.substring(removePosition + contentToRemove.length);
|
|
688285
|
+
host.write(filePath, `${prefix}${suffix}`);
|
|
688286
|
+
return updateTsSourceFile(host, sourceFile, filePath);
|
|
688287
|
+
}
|
|
688288
|
+
function insertImport(host, source, fileToEdit, symbolName, fileName, isDefault = false) {
|
|
688289
|
+
if (!tsModule) {
|
|
688290
|
+
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
|
688291
|
+
}
|
|
688292
|
+
const rootNode = source;
|
|
688293
|
+
const allImports = findNodes(rootNode, tsModule.SyntaxKind.ImportDeclaration);
|
|
688294
|
+
const relevantImports = allImports.filter((node) => {
|
|
688295
|
+
const importFiles = node.getChildren().filter((child) => child.kind === tsModule.SyntaxKind.StringLiteral).map((n) => n.text);
|
|
688296
|
+
return importFiles.filter((file) => file === fileName).length === 1;
|
|
688297
|
+
});
|
|
688298
|
+
if (relevantImports.length > 0) {
|
|
688299
|
+
let importsAsterisk = false;
|
|
688300
|
+
const imports = [];
|
|
688301
|
+
relevantImports.forEach((n) => {
|
|
688302
|
+
Array.prototype.push.apply(imports, findNodes(n, tsModule.SyntaxKind.Identifier));
|
|
688303
|
+
if (findNodes(n, tsModule.SyntaxKind.AsteriskToken).length > 0) {
|
|
688304
|
+
importsAsterisk = true;
|
|
688305
|
+
}
|
|
688306
|
+
});
|
|
688307
|
+
if (importsAsterisk) {
|
|
688308
|
+
return source;
|
|
688309
|
+
}
|
|
688310
|
+
const importTextNodes = imports.filter((n) => n.text === symbolName);
|
|
688311
|
+
if (importTextNodes.length === 0) {
|
|
688312
|
+
const fallbackPos2 = findNodes(relevantImports[0], tsModule.SyntaxKind.CloseBraceToken)[0].getStart() || findNodes(relevantImports[0], tsModule.SyntaxKind.FromKeyword)[0].getStart();
|
|
688313
|
+
return insertAfterLastOccurrence(host, source, imports, `, ${symbolName}`, fileToEdit, fallbackPos2);
|
|
688314
|
+
}
|
|
688315
|
+
return source;
|
|
688316
|
+
}
|
|
688317
|
+
const useStrict = findNodes(rootNode, tsModule.SyntaxKind.StringLiteral).filter((n) => n.text === "use strict");
|
|
688318
|
+
let fallbackPos = 0;
|
|
688319
|
+
if (useStrict.length > 0) {
|
|
688320
|
+
fallbackPos = useStrict[0].end;
|
|
688321
|
+
}
|
|
688322
|
+
const open2 = isDefault ? "" : "{ ";
|
|
688323
|
+
const close = isDefault ? "" : " }";
|
|
688324
|
+
const insertAtBeginning = allImports.length === 0 && useStrict.length === 0;
|
|
688325
|
+
const separator = insertAtBeginning ? "" : ";\n";
|
|
688326
|
+
const toInsert = `${separator}import ${open2}${symbolName}${close} from '${fileName}'${insertAtBeginning ? ";\n" : ""}`;
|
|
688327
|
+
return insertAfterLastOccurrence(host, source, allImports, toInsert, fileToEdit, fallbackPos, tsModule.SyntaxKind.StringLiteral);
|
|
688328
|
+
}
|
|
688329
|
+
function insertAfterLastOccurrence(host, sourceFile, nodes, toInsert, pathToFile, fallbackPos, syntaxKind) {
|
|
688330
|
+
let lastItem = [...nodes].sort(nodesByPosition).pop();
|
|
688331
|
+
if (!lastItem) {
|
|
688332
|
+
throw new Error();
|
|
688333
|
+
}
|
|
688334
|
+
if (syntaxKind) {
|
|
688335
|
+
lastItem = findNodes(lastItem, syntaxKind).sort(nodesByPosition).pop();
|
|
688336
|
+
}
|
|
688337
|
+
if (!lastItem && fallbackPos == void 0) {
|
|
688338
|
+
throw new Error(`tried to insert ${toInsert} as first occurrence with no fallback position`);
|
|
688339
|
+
}
|
|
688340
|
+
const lastItemPosition = lastItem ? lastItem.getEnd() : fallbackPos;
|
|
688341
|
+
return insertChange(host, sourceFile, pathToFile, lastItemPosition, toInsert);
|
|
688342
|
+
}
|
|
688343
|
+
function addGlobal(host, source, modulePath, statement) {
|
|
688344
|
+
if (!tsModule) {
|
|
688345
|
+
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
|
688346
|
+
}
|
|
688347
|
+
const allImports = findNodes(source, tsModule.SyntaxKind.ImportDeclaration);
|
|
688348
|
+
if (allImports.length > 0) {
|
|
688349
|
+
const lastImport = allImports[allImports.length - 1];
|
|
688350
|
+
return insertChange(host, source, modulePath, lastImport.end + 1, `
|
|
688351
|
+
${statement}
|
|
688352
|
+
`);
|
|
688353
|
+
} else {
|
|
688354
|
+
return insertChange(host, source, modulePath, 0, `${statement}
|
|
688355
|
+
`);
|
|
688356
|
+
}
|
|
688357
|
+
}
|
|
688358
|
+
function getImport(source, predicate) {
|
|
688359
|
+
if (!tsModule) {
|
|
688360
|
+
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
|
688361
|
+
}
|
|
688362
|
+
const allImports = findNodes(source, tsModule.SyntaxKind.ImportDeclaration);
|
|
688363
|
+
const matching = allImports.filter((i2) => predicate(i2.moduleSpecifier.getText()));
|
|
688364
|
+
return matching.map((i2) => {
|
|
688365
|
+
const moduleSpec = i2.moduleSpecifier.getText().substring(1, i2.moduleSpecifier.getText().length - 1);
|
|
688366
|
+
const t2 = i2.importClause.namedBindings.getText();
|
|
688367
|
+
const bindings = t2.replace("{", "").replace("}", "").split(",").map((q5) => q5.trim());
|
|
688368
|
+
return { moduleSpec, bindings };
|
|
688369
|
+
});
|
|
688370
|
+
}
|
|
688371
|
+
function replaceNodeValue(host, sourceFile, modulePath, node, content) {
|
|
688372
|
+
return replaceChange(host, sourceFile, modulePath, node.getStart(node.getSourceFile()), content, node.getText());
|
|
688373
|
+
}
|
|
688374
|
+
function addParameterToConstructor(tree, source, modulePath, opts) {
|
|
688375
|
+
if (!tsModule) {
|
|
688376
|
+
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
|
688377
|
+
}
|
|
688378
|
+
const clazz = findClass(source, opts.className);
|
|
688379
|
+
const constructor = clazz.members.filter((m3) => m3.kind === tsModule.SyntaxKind.Constructor)[0];
|
|
688380
|
+
if (constructor) {
|
|
688381
|
+
throw new Error("Should be tested");
|
|
688382
|
+
}
|
|
688383
|
+
return addMethod(tree, source, modulePath, {
|
|
688384
|
+
className: opts.className,
|
|
688385
|
+
methodHeader: `constructor(${opts.param})`
|
|
688386
|
+
});
|
|
688387
|
+
}
|
|
688388
|
+
function addMethod(tree, source, modulePath, opts) {
|
|
688389
|
+
const clazz = findClass(source, opts.className);
|
|
688390
|
+
const body = opts.body ? `
|
|
688391
|
+
${opts.methodHeader} {
|
|
688392
|
+
${opts.body}
|
|
688393
|
+
}
|
|
688394
|
+
` : `
|
|
688395
|
+
${opts.methodHeader} {}
|
|
688396
|
+
`;
|
|
688397
|
+
return insertChange(tree, source, modulePath, clazz.end - 1, body);
|
|
688398
|
+
}
|
|
688399
|
+
function findClass(source, className, silent = false) {
|
|
688400
|
+
if (!tsModule) {
|
|
688401
|
+
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
|
688402
|
+
}
|
|
688403
|
+
const nodes = (0, get_source_nodes_1.getSourceNodes)(source);
|
|
688404
|
+
const clazz = nodes.filter((n) => n.kind === tsModule.SyntaxKind.ClassDeclaration && n.name.text === className)[0];
|
|
688405
|
+
if (!clazz && !silent) {
|
|
688406
|
+
throw new Error(`Cannot find class '${className}'.`);
|
|
688407
|
+
}
|
|
688408
|
+
return clazz;
|
|
688409
|
+
}
|
|
688410
|
+
function findNodes(node, kind, max = Infinity) {
|
|
688411
|
+
if (!node || max == 0) {
|
|
688412
|
+
return [];
|
|
688413
|
+
}
|
|
688414
|
+
const arr = [];
|
|
688415
|
+
const hasMatch = Array.isArray(kind) ? kind.includes(node.kind) : node.kind === kind;
|
|
688416
|
+
if (hasMatch) {
|
|
688417
|
+
arr.push(node);
|
|
688418
|
+
max--;
|
|
688419
|
+
}
|
|
688420
|
+
if (max > 0) {
|
|
688421
|
+
for (const child of node.getChildren()) {
|
|
688422
|
+
findNodes(child, kind, max).forEach((node2) => {
|
|
688423
|
+
if (max > 0) {
|
|
688424
|
+
arr.push(node2);
|
|
688425
|
+
}
|
|
688426
|
+
max--;
|
|
688427
|
+
});
|
|
688428
|
+
if (max <= 0) {
|
|
688429
|
+
break;
|
|
688430
|
+
}
|
|
688431
|
+
}
|
|
688432
|
+
}
|
|
688433
|
+
return arr;
|
|
688434
|
+
}
|
|
688435
|
+
}
|
|
688436
|
+
});
|
|
688437
|
+
|
|
688438
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/watch-for-single-file-changes.js
|
|
688439
|
+
var require_watch_for_single_file_changes2 = __commonJS({
|
|
688440
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/watch-for-single-file-changes.js"(exports2) {
|
|
688441
|
+
"use strict";
|
|
688442
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688443
|
+
exports2.watchForSingleFileChanges = watchForSingleFileChanges;
|
|
688444
|
+
var devkit_1 = require("@nx/devkit");
|
|
688445
|
+
var client_1 = require("nx/src/daemon/client/client");
|
|
688446
|
+
var path_1 = require("path");
|
|
688447
|
+
async function watchForSingleFileChanges(projectName, projectRoot, relativeFilePath, callback) {
|
|
688448
|
+
const unregisterFileWatcher = await client_1.daemonClient.registerFileWatcher({ watchProjects: [projectName] }, (err, data2) => {
|
|
688449
|
+
if (err === "closed") {
|
|
688450
|
+
devkit_1.logger.error(`Watch error: Daemon closed the connection`);
|
|
688451
|
+
process.exit(1);
|
|
688452
|
+
} else if (err) {
|
|
688453
|
+
devkit_1.logger.error(`Watch error: ${err?.message ?? "Unknown"}`);
|
|
688454
|
+
} else if (data2.changedFiles.some((file) => file.path == (0, path_1.join)(projectRoot, relativeFilePath))) {
|
|
688455
|
+
callback();
|
|
688456
|
+
}
|
|
688457
|
+
});
|
|
688458
|
+
return () => unregisterFileWatcher();
|
|
688459
|
+
}
|
|
688460
|
+
}
|
|
688461
|
+
});
|
|
688462
|
+
|
|
688463
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/get-main-file-dir.js
|
|
688464
|
+
var require_get_main_file_dir2 = __commonJS({
|
|
688465
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/get-main-file-dir.js"(exports2) {
|
|
688466
|
+
"use strict";
|
|
688467
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688468
|
+
exports2.getRelativeDirectoryToProjectRoot = getRelativeDirectoryToProjectRoot;
|
|
688469
|
+
var path_1 = require("path");
|
|
688470
|
+
var path_2 = require("nx/src/utils/path");
|
|
688471
|
+
function getRelativeDirectoryToProjectRoot(file, projectRoot) {
|
|
688472
|
+
const dir = (0, path_1.dirname)(file);
|
|
688473
|
+
const relativeDir = (0, path_2.normalizePath)((0, path_1.relative)(projectRoot, dir));
|
|
688474
|
+
return relativeDir === "" ? `./` : `./${relativeDir}/`;
|
|
688475
|
+
}
|
|
688476
|
+
}
|
|
688477
|
+
});
|
|
688478
|
+
|
|
688479
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/package-json/update-package-json.js
|
|
688480
|
+
var require_update_package_json3 = __commonJS({
|
|
688481
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/package-json/update-package-json.js"(exports2) {
|
|
688482
|
+
"use strict";
|
|
688483
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688484
|
+
exports2.updatePackageJson = updatePackageJson;
|
|
688485
|
+
exports2.getExports = getExports;
|
|
688486
|
+
exports2.getUpdatedPackageJsonContent = getUpdatedPackageJsonContent;
|
|
688487
|
+
var lock_file_1 = require("nx/src/plugins/js/lock-file/lock-file");
|
|
688488
|
+
var create_package_json_1 = require("nx/src/plugins/js/package-json/create-package-json");
|
|
688489
|
+
var devkit_1 = require("@nx/devkit");
|
|
688490
|
+
var path_1 = require("path");
|
|
688491
|
+
var fs_extra_1 = require_lib3();
|
|
688492
|
+
var fileutils_1 = require("nx/src/utils/fileutils");
|
|
688493
|
+
var fs_1 = require("fs");
|
|
688494
|
+
var nx_deps_cache_1 = require("nx/src/project-graph/nx-deps-cache");
|
|
688495
|
+
var get_main_file_dir_1 = require_get_main_file_dir2();
|
|
688496
|
+
function updatePackageJson(options, context, target, dependencies, fileMap = null) {
|
|
688497
|
+
let packageJson;
|
|
688498
|
+
if (fileMap == null) {
|
|
688499
|
+
fileMap = (0, nx_deps_cache_1.readFileMapCache)()?.fileMap?.projectFileMap || {};
|
|
688500
|
+
}
|
|
688501
|
+
if (options.updateBuildableProjectDepsInPackageJson) {
|
|
688502
|
+
packageJson = (0, create_package_json_1.createPackageJson)(context.projectName, context.projectGraph, {
|
|
688503
|
+
target: context.targetName,
|
|
688504
|
+
root: context.root,
|
|
688505
|
+
// By default we remove devDependencies since this is a production build.
|
|
688506
|
+
isProduction: true
|
|
688507
|
+
}, fileMap);
|
|
688508
|
+
if (options.excludeLibsInPackageJson) {
|
|
688509
|
+
dependencies = dependencies.filter((dep) => dep.node.type !== "lib");
|
|
688510
|
+
}
|
|
688511
|
+
addMissingDependencies(packageJson, context, dependencies, options.buildableProjectDepsInPackageJsonType);
|
|
688512
|
+
} else {
|
|
688513
|
+
const pathToPackageJson = (0, path_1.join)(context.root, options.projectRoot, "package.json");
|
|
688514
|
+
packageJson = (0, fileutils_1.fileExists)(pathToPackageJson) ? (0, devkit_1.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
688515
|
+
}
|
|
688516
|
+
if (packageJson.type === "module") {
|
|
688517
|
+
if (options.format?.includes("cjs")) {
|
|
688518
|
+
devkit_1.logger.warn(`Package type is set to "module" but "cjs" format is included. Going to use "esm" format instead. You can change the package type to "commonjs" or remove type in the package.json file.`);
|
|
688519
|
+
}
|
|
688520
|
+
options.format = ["esm"];
|
|
688521
|
+
} else if (packageJson.type === "commonjs") {
|
|
688522
|
+
if (options.format?.includes("esm")) {
|
|
688523
|
+
devkit_1.logger.warn(`Package type is set to "commonjs" but "esm" format is included. Going to use "cjs" format instead. You can change the package type to "module" or remove type in the package.json file.`);
|
|
688524
|
+
}
|
|
688525
|
+
options.format = ["cjs"];
|
|
688526
|
+
}
|
|
688527
|
+
packageJson = getUpdatedPackageJsonContent(packageJson, options);
|
|
688528
|
+
(0, devkit_1.writeJsonFile)(`${options.outputPath}/package.json`, packageJson);
|
|
688529
|
+
if (options.generateLockfile) {
|
|
688530
|
+
const packageManager = (0, devkit_1.detectPackageManager)(context.root);
|
|
688531
|
+
if (packageManager === "bun") {
|
|
688532
|
+
devkit_1.logger.warn(`Bun lockfile generation is unsupported. Remove "generateLockfile" option or set it to false.`);
|
|
688533
|
+
} else {
|
|
688534
|
+
const lockFile = (0, lock_file_1.createLockFile)(packageJson, context.projectGraph, packageManager);
|
|
688535
|
+
(0, fs_extra_1.writeFileSync)(`${options.outputPath}/${(0, lock_file_1.getLockFileName)(packageManager)}`, lockFile, {
|
|
688536
|
+
encoding: "utf-8"
|
|
688537
|
+
});
|
|
688538
|
+
}
|
|
688539
|
+
}
|
|
688540
|
+
}
|
|
688541
|
+
function isNpmNode(node, graph) {
|
|
688542
|
+
return !!(graph.externalNodes[node.name]?.type === "npm");
|
|
688543
|
+
}
|
|
688544
|
+
function isWorkspaceProject(node, graph) {
|
|
688545
|
+
return !!graph.nodes[node.name];
|
|
688546
|
+
}
|
|
688547
|
+
function addMissingDependencies(packageJson, { projectName, targetName, configurationName, root, projectGraph }, dependencies, propType = "dependencies") {
|
|
688548
|
+
const workspacePackageJson = (0, devkit_1.readJsonFile)((0, devkit_1.joinPathFragments)(devkit_1.workspaceRoot, "package.json"));
|
|
688549
|
+
dependencies.forEach((entry) => {
|
|
688550
|
+
if (isNpmNode(entry.node, projectGraph)) {
|
|
688551
|
+
const { packageName, version: version3 } = entry.node.data;
|
|
688552
|
+
if (packageJson.dependencies?.[packageName] || packageJson.devDependencies?.[packageName] || packageJson.peerDependencies?.[packageName]) {
|
|
688553
|
+
return;
|
|
688554
|
+
}
|
|
688555
|
+
if (workspacePackageJson.devDependencies?.[packageName]) {
|
|
688556
|
+
return;
|
|
688557
|
+
}
|
|
688558
|
+
packageJson[propType] ??= {};
|
|
688559
|
+
packageJson[propType][packageName] = version3;
|
|
688560
|
+
} else if (isWorkspaceProject(entry.node, projectGraph)) {
|
|
688561
|
+
const packageName = entry.name;
|
|
688562
|
+
if (!!workspacePackageJson.devDependencies?.[packageName]) {
|
|
688563
|
+
return;
|
|
688564
|
+
}
|
|
688565
|
+
if (!packageJson.dependencies?.[packageName] && !packageJson.devDependencies?.[packageName] && !packageJson.peerDependencies?.[packageName]) {
|
|
688566
|
+
const outputs = (0, devkit_1.getOutputsForTargetAndConfiguration)({
|
|
688567
|
+
project: projectName,
|
|
688568
|
+
target: targetName,
|
|
688569
|
+
configuration: configurationName
|
|
688570
|
+
}, {}, entry.node);
|
|
688571
|
+
const depPackageJsonPath = (0, path_1.join)(root, outputs[0], "package.json");
|
|
688572
|
+
if ((0, fs_1.existsSync)(depPackageJsonPath)) {
|
|
688573
|
+
const version3 = (0, devkit_1.readJsonFile)(depPackageJsonPath).version;
|
|
688574
|
+
packageJson[propType] ??= {};
|
|
688575
|
+
packageJson[propType][packageName] = version3;
|
|
688576
|
+
}
|
|
688577
|
+
}
|
|
688578
|
+
}
|
|
688579
|
+
});
|
|
688580
|
+
}
|
|
688581
|
+
function getExports(options) {
|
|
688582
|
+
const mainFile = options.outputFileName ? options.outputFileName.replace(/\.[tj]s$/, "") : (0, path_1.basename)(options.main).replace(/\.[tj]s$/, "");
|
|
688583
|
+
const relativeMainFileDir = options.outputFileName ? "./" : (0, get_main_file_dir_1.getRelativeDirectoryToProjectRoot)(options.main, options.rootDir ?? options.projectRoot);
|
|
688584
|
+
const exports3 = {
|
|
688585
|
+
".": relativeMainFileDir + mainFile + options.fileExt
|
|
688586
|
+
};
|
|
688587
|
+
if (options.additionalEntryPoints) {
|
|
688588
|
+
const jsRegex = /\.[jt]sx?$/;
|
|
688589
|
+
for (const file of options.additionalEntryPoints) {
|
|
688590
|
+
const { ext: fileExt, name: fileName } = (0, path_1.parse)(file);
|
|
688591
|
+
const relativeDir = (0, get_main_file_dir_1.getRelativeDirectoryToProjectRoot)(file, options.projectRoot);
|
|
688592
|
+
const sourceFilePath = relativeDir + fileName;
|
|
688593
|
+
const entryRelativeDir = relativeDir.replace(/^\.\/src\//, "./");
|
|
688594
|
+
const entryFilepath = entryRelativeDir + fileName;
|
|
688595
|
+
const isJsFile = jsRegex.test(fileExt);
|
|
688596
|
+
if (isJsFile && fileName === "index") {
|
|
688597
|
+
const barrelEntry = entryRelativeDir.replace(/\/$/, "");
|
|
688598
|
+
exports3[barrelEntry] = sourceFilePath + options.fileExt;
|
|
688599
|
+
}
|
|
688600
|
+
exports3[isJsFile ? entryFilepath : entryFilepath + fileExt] = sourceFilePath + (isJsFile ? options.fileExt : fileExt);
|
|
688601
|
+
}
|
|
688602
|
+
}
|
|
688603
|
+
return exports3;
|
|
688604
|
+
}
|
|
688605
|
+
function getUpdatedPackageJsonContent(packageJson, options) {
|
|
688606
|
+
const hasCjsFormat = !options.format || options.format?.includes("cjs");
|
|
688607
|
+
const hasEsmFormat = options.format?.includes("esm");
|
|
688608
|
+
if (options.generateExportsField) {
|
|
688609
|
+
packageJson.exports ??= typeof packageJson.exports === "string" ? {} : { ...packageJson.exports };
|
|
688610
|
+
packageJson.exports["./package.json"] ??= "./package.json";
|
|
688611
|
+
}
|
|
688612
|
+
if (hasEsmFormat) {
|
|
688613
|
+
const esmExports = getExports({
|
|
688614
|
+
...options,
|
|
688615
|
+
fileExt: options.outputFileExtensionForEsm ?? ".js"
|
|
688616
|
+
});
|
|
688617
|
+
packageJson.module ??= esmExports["."];
|
|
688618
|
+
if (!hasCjsFormat) {
|
|
688619
|
+
packageJson.type ??= "module";
|
|
688620
|
+
packageJson.main ??= esmExports["."];
|
|
688621
|
+
}
|
|
688622
|
+
if (options.generateExportsField) {
|
|
688623
|
+
for (const [exportEntry, filePath] of Object.entries(esmExports)) {
|
|
688624
|
+
packageJson.exports[exportEntry] ??= hasCjsFormat ? { import: filePath } : filePath;
|
|
688625
|
+
}
|
|
688626
|
+
}
|
|
688627
|
+
}
|
|
688628
|
+
if (hasCjsFormat) {
|
|
688629
|
+
const cjsExports = getExports({
|
|
688630
|
+
...options,
|
|
688631
|
+
fileExt: options.outputFileExtensionForCjs ?? ".js"
|
|
688632
|
+
});
|
|
688633
|
+
packageJson.main ??= cjsExports["."];
|
|
688634
|
+
if (!hasEsmFormat) {
|
|
688635
|
+
packageJson.type ??= "commonjs";
|
|
688636
|
+
}
|
|
688637
|
+
if (options.generateExportsField) {
|
|
688638
|
+
for (const [exportEntry, filePath] of Object.entries(cjsExports)) {
|
|
688639
|
+
if (hasEsmFormat) {
|
|
688640
|
+
packageJson.exports[exportEntry]["default"] ??= filePath;
|
|
688641
|
+
} else {
|
|
688642
|
+
packageJson.exports[exportEntry] ??= filePath;
|
|
688643
|
+
}
|
|
688644
|
+
}
|
|
688645
|
+
}
|
|
688646
|
+
}
|
|
688647
|
+
if (!options.skipTypings) {
|
|
688648
|
+
const mainFile = (0, path_1.basename)(options.main).replace(/\.[tj]s$/, "");
|
|
688649
|
+
const relativeMainFileDir = (0, get_main_file_dir_1.getRelativeDirectoryToProjectRoot)(options.main, options.projectRoot);
|
|
688650
|
+
const typingsFile = `${relativeMainFileDir}${mainFile}.d.ts`;
|
|
688651
|
+
packageJson.types ??= typingsFile;
|
|
688652
|
+
}
|
|
688653
|
+
return packageJson;
|
|
688654
|
+
}
|
|
688655
|
+
}
|
|
688656
|
+
});
|
|
688657
|
+
|
|
688658
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/check-dependencies.js
|
|
688659
|
+
var require_check_dependencies2 = __commonJS({
|
|
688660
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/check-dependencies.js"(exports2) {
|
|
688661
|
+
"use strict";
|
|
688662
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688663
|
+
exports2.checkDependencies = checkDependencies;
|
|
688664
|
+
var buildable_libs_utils_1 = require_buildable_libs_utils2();
|
|
688665
|
+
function checkDependencies(context, tsConfigPath) {
|
|
688666
|
+
const { target, dependencies } = (0, buildable_libs_utils_1.calculateProjectBuildableDependencies)(context.taskGraph, context.projectGraph, context.root, context.projectName, context.targetName, context.configurationName);
|
|
688667
|
+
const projectRoot = target.data.root;
|
|
688668
|
+
if (dependencies.length > 0) {
|
|
688669
|
+
return {
|
|
688670
|
+
tmpTsConfig: (0, buildable_libs_utils_1.createTmpTsConfig)(tsConfigPath, context.root, projectRoot, dependencies),
|
|
688671
|
+
projectRoot,
|
|
688672
|
+
target,
|
|
688673
|
+
dependencies
|
|
688674
|
+
};
|
|
688675
|
+
}
|
|
688676
|
+
return {
|
|
688677
|
+
tmpTsConfig: null,
|
|
688678
|
+
projectRoot,
|
|
688679
|
+
target,
|
|
688680
|
+
dependencies
|
|
688681
|
+
};
|
|
688682
|
+
}
|
|
688683
|
+
}
|
|
688684
|
+
});
|
|
688685
|
+
|
|
688686
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/package-json/index.js
|
|
688687
|
+
var require_package_json2 = __commonJS({
|
|
688688
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/package-json/index.js"(exports2) {
|
|
688689
|
+
"use strict";
|
|
688690
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688691
|
+
exports2.copyPackageJson = copyPackageJson;
|
|
688692
|
+
var watch_for_single_file_changes_1 = require_watch_for_single_file_changes2();
|
|
688693
|
+
var update_package_json_1 = require_update_package_json3();
|
|
688694
|
+
var check_dependencies_1 = require_check_dependencies2();
|
|
688695
|
+
async function copyPackageJson(_options, context) {
|
|
688696
|
+
if (!context.target.options.tsConfig) {
|
|
688697
|
+
throw new Error(`Could not find tsConfig option for "${context.targetName}" target of "${context.projectName}" project. Check that your project configuration is correct.`);
|
|
688698
|
+
}
|
|
688699
|
+
let { target, dependencies, projectRoot } = (0, check_dependencies_1.checkDependencies)(context, context.target.options.tsConfig);
|
|
688700
|
+
const options = { ..._options, projectRoot };
|
|
688701
|
+
if (options.extraDependencies) {
|
|
688702
|
+
dependencies.push(...options.extraDependencies);
|
|
688703
|
+
}
|
|
688704
|
+
if (options.overrideDependencies) {
|
|
688705
|
+
dependencies = options.overrideDependencies;
|
|
688706
|
+
}
|
|
688707
|
+
if (options.watch) {
|
|
688708
|
+
const dispose = await (0, watch_for_single_file_changes_1.watchForSingleFileChanges)(context.projectName, options.projectRoot, "package.json", () => (0, update_package_json_1.updatePackageJson)(options, context, target, dependencies));
|
|
688709
|
+
(0, update_package_json_1.updatePackageJson)(options, context, target, dependencies);
|
|
688710
|
+
return { success: true, stop: dispose };
|
|
688711
|
+
} else {
|
|
688712
|
+
(0, update_package_json_1.updatePackageJson)(options, context, target, dependencies);
|
|
688713
|
+
return { success: true };
|
|
688714
|
+
}
|
|
688715
|
+
}
|
|
688716
|
+
}
|
|
688717
|
+
});
|
|
688718
|
+
|
|
688719
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/assets/copy-assets-handler.js
|
|
688720
|
+
var require_copy_assets_handler2 = __commonJS({
|
|
688721
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/assets/copy-assets-handler.js"(exports2) {
|
|
688722
|
+
"use strict";
|
|
688723
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688724
|
+
exports2.CopyAssetsHandler = exports2.defaultFileEventHandler = void 0;
|
|
688725
|
+
var minimatch_1 = require_cjs2();
|
|
688726
|
+
var pathPosix = require("node:path/posix");
|
|
688727
|
+
var path8 = require("node:path");
|
|
688728
|
+
var fse = require_lib3();
|
|
688729
|
+
var ignore_1 = require_ignore();
|
|
688730
|
+
var fg = require_out4();
|
|
688731
|
+
var devkit_1 = require("@nx/devkit");
|
|
688732
|
+
var client_1 = require("nx/src/daemon/client/client");
|
|
688733
|
+
var defaultFileEventHandler = (events) => {
|
|
688734
|
+
const dirs = new Set(events.map((event) => path8.dirname(event.dest)));
|
|
688735
|
+
dirs.forEach((d4) => fse.ensureDirSync(d4));
|
|
688736
|
+
events.forEach((event) => {
|
|
688737
|
+
if (event.type === "create" || event.type === "update") {
|
|
688738
|
+
if (fse.lstatSync(event.src).isFile()) {
|
|
688739
|
+
fse.copyFileSync(event.src, event.dest);
|
|
688740
|
+
}
|
|
688741
|
+
} else if (event.type === "delete") {
|
|
688742
|
+
fse.removeSync(event.dest);
|
|
688743
|
+
} else {
|
|
688744
|
+
devkit_1.logger.error(`Unknown file event: ${event.type}`);
|
|
688745
|
+
}
|
|
688746
|
+
});
|
|
688747
|
+
};
|
|
688748
|
+
exports2.defaultFileEventHandler = defaultFileEventHandler;
|
|
688749
|
+
var CopyAssetsHandler = class {
|
|
688750
|
+
constructor(opts) {
|
|
688751
|
+
this.rootDir = opts.rootDir;
|
|
688752
|
+
this.projectDir = opts.projectDir;
|
|
688753
|
+
this.outputDir = opts.outputDir;
|
|
688754
|
+
this.callback = opts.callback ?? exports2.defaultFileEventHandler;
|
|
688755
|
+
this.ignore = (0, ignore_1.default)();
|
|
688756
|
+
const gitignore = pathPosix.join(opts.rootDir, ".gitignore");
|
|
688757
|
+
const nxignore = pathPosix.join(opts.rootDir, ".nxignore");
|
|
688758
|
+
if (fse.existsSync(gitignore))
|
|
688759
|
+
this.ignore.add(fse.readFileSync(gitignore).toString());
|
|
688760
|
+
if (fse.existsSync(nxignore))
|
|
688761
|
+
this.ignore.add(fse.readFileSync(nxignore).toString());
|
|
688762
|
+
this.assetGlobs = opts.assets.map((f2) => {
|
|
688763
|
+
let isGlob = false;
|
|
688764
|
+
let pattern;
|
|
688765
|
+
let input;
|
|
688766
|
+
let output3;
|
|
688767
|
+
let ignore = null;
|
|
688768
|
+
if (typeof f2 === "string") {
|
|
688769
|
+
pattern = f2;
|
|
688770
|
+
input = path8.relative(opts.rootDir, opts.projectDir);
|
|
688771
|
+
output3 = path8.relative(opts.rootDir, opts.outputDir);
|
|
688772
|
+
} else {
|
|
688773
|
+
isGlob = true;
|
|
688774
|
+
pattern = pathPosix.join(f2.input, f2.glob);
|
|
688775
|
+
input = f2.input;
|
|
688776
|
+
output3 = pathPosix.join(path8.relative(opts.rootDir, opts.outputDir), f2.output);
|
|
688777
|
+
if (f2.ignore)
|
|
688778
|
+
ignore = f2.ignore.map((ig) => pathPosix.join(f2.input, ig));
|
|
688779
|
+
}
|
|
688780
|
+
return {
|
|
688781
|
+
isGlob,
|
|
688782
|
+
input,
|
|
688783
|
+
pattern,
|
|
688784
|
+
ignore,
|
|
688785
|
+
output: output3
|
|
688786
|
+
};
|
|
688787
|
+
});
|
|
688788
|
+
}
|
|
688789
|
+
async processAllAssetsOnce() {
|
|
688790
|
+
await Promise.all(this.assetGlobs.map(async (ag) => {
|
|
688791
|
+
const pattern = this.normalizeAssetPattern(ag);
|
|
688792
|
+
const files = await fg(pattern.replace(/\\/g, "/"), {
|
|
688793
|
+
cwd: this.rootDir,
|
|
688794
|
+
dot: true
|
|
688795
|
+
// enable hidden files
|
|
688796
|
+
});
|
|
688797
|
+
this.callback(this.filesToEvent(files, ag));
|
|
688798
|
+
}));
|
|
688799
|
+
}
|
|
688800
|
+
processAllAssetsOnceSync() {
|
|
688801
|
+
this.assetGlobs.forEach((ag) => {
|
|
688802
|
+
const pattern = this.normalizeAssetPattern(ag);
|
|
688803
|
+
const files = fg.sync(pattern.replace(/\\/g, "/"), {
|
|
688804
|
+
cwd: this.rootDir,
|
|
688805
|
+
dot: true
|
|
688806
|
+
// enable hidden files
|
|
688807
|
+
});
|
|
688808
|
+
this.callback(this.filesToEvent(files, ag));
|
|
688809
|
+
});
|
|
688810
|
+
}
|
|
688811
|
+
async watchAndProcessOnAssetChange() {
|
|
688812
|
+
const unregisterFileWatcher = await client_1.daemonClient.registerFileWatcher({
|
|
688813
|
+
watchProjects: "all",
|
|
688814
|
+
includeGlobalWorkspaceFiles: true
|
|
688815
|
+
}, (err, data2) => {
|
|
688816
|
+
if (err === "closed") {
|
|
688817
|
+
devkit_1.logger.error(`Watch error: Daemon closed the connection`);
|
|
688818
|
+
process.exit(1);
|
|
688819
|
+
} else if (err) {
|
|
688820
|
+
devkit_1.logger.error(`Watch error: ${err?.message ?? "Unknown"}`);
|
|
688821
|
+
} else {
|
|
688822
|
+
this.processWatchEvents(data2.changedFiles);
|
|
688823
|
+
}
|
|
688824
|
+
});
|
|
688825
|
+
return () => unregisterFileWatcher();
|
|
688826
|
+
}
|
|
688827
|
+
async processWatchEvents(events) {
|
|
688828
|
+
const fileEvents = [];
|
|
688829
|
+
for (const event of events) {
|
|
688830
|
+
const pathFromRoot = path8.relative(this.rootDir, event.path);
|
|
688831
|
+
for (const ag of this.assetGlobs) {
|
|
688832
|
+
if ((0, minimatch_1.minimatch)(pathFromRoot, ag.pattern) && !ag.ignore?.some((ig) => (0, minimatch_1.minimatch)(pathFromRoot, ig)) && !this.ignore.ignores(pathFromRoot)) {
|
|
688833
|
+
const relPath = path8.relative(ag.input, pathFromRoot);
|
|
688834
|
+
const destPath = relPath.startsWith("..") ? pathFromRoot : relPath;
|
|
688835
|
+
fileEvents.push({
|
|
688836
|
+
type: event.type,
|
|
688837
|
+
src: path8.join(this.rootDir, pathFromRoot),
|
|
688838
|
+
dest: path8.join(this.rootDir, ag.output, destPath)
|
|
688839
|
+
});
|
|
688840
|
+
break;
|
|
688841
|
+
}
|
|
688842
|
+
}
|
|
688843
|
+
}
|
|
688844
|
+
if (fileEvents.length > 0)
|
|
688845
|
+
this.callback(fileEvents);
|
|
688846
|
+
}
|
|
688847
|
+
filesToEvent(files, assetGlob) {
|
|
688848
|
+
return files.reduce((acc, src) => {
|
|
688849
|
+
if (!assetGlob.ignore?.some((ig) => (0, minimatch_1.minimatch)(src, ig)) && !this.ignore.ignores(src)) {
|
|
688850
|
+
const relPath = path8.relative(assetGlob.input, src);
|
|
688851
|
+
const dest = relPath.startsWith("..") ? src : relPath;
|
|
688852
|
+
acc.push({
|
|
688853
|
+
type: "create",
|
|
688854
|
+
src: path8.join(this.rootDir, src),
|
|
688855
|
+
dest: path8.join(this.rootDir, assetGlob.output, dest)
|
|
688856
|
+
});
|
|
688857
|
+
}
|
|
688858
|
+
return acc;
|
|
688859
|
+
}, []);
|
|
688860
|
+
}
|
|
688861
|
+
normalizeAssetPattern(assetEntry) {
|
|
688862
|
+
return typeof assetEntry === "string" ? assetEntry : assetEntry.pattern;
|
|
688863
|
+
}
|
|
688864
|
+
};
|
|
688865
|
+
exports2.CopyAssetsHandler = CopyAssetsHandler;
|
|
688866
|
+
}
|
|
688867
|
+
});
|
|
688868
|
+
|
|
688869
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/assets/index.js
|
|
688870
|
+
var require_assets2 = __commonJS({
|
|
688871
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/assets/index.js"(exports2) {
|
|
688872
|
+
"use strict";
|
|
688873
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688874
|
+
exports2.copyAssets = copyAssets;
|
|
688875
|
+
var copy_assets_handler_1 = require_copy_assets_handler2();
|
|
688876
|
+
var devkit_1 = require("@nx/devkit");
|
|
688877
|
+
async function copyAssets(options, context) {
|
|
688878
|
+
const assetHandler = new copy_assets_handler_1.CopyAssetsHandler({
|
|
688879
|
+
projectDir: context.projectsConfigurations.projects[context.projectName].root,
|
|
688880
|
+
rootDir: context.root,
|
|
688881
|
+
outputDir: options.outputPath,
|
|
688882
|
+
assets: options.assets,
|
|
688883
|
+
callback: typeof options?.watch === "object" ? options.watch.onCopy : void 0
|
|
688884
|
+
});
|
|
688885
|
+
const result = {
|
|
688886
|
+
success: true
|
|
688887
|
+
};
|
|
688888
|
+
if (!(0, devkit_1.isDaemonEnabled)() && options.watch) {
|
|
688889
|
+
devkit_1.output.warn({
|
|
688890
|
+
title: "Nx Daemon is not enabled. Assets will not be updated when they are changed."
|
|
688891
|
+
});
|
|
688892
|
+
}
|
|
688893
|
+
if ((0, devkit_1.isDaemonEnabled)() && options.watch) {
|
|
688894
|
+
result.stop = await assetHandler.watchAndProcessOnAssetChange();
|
|
688895
|
+
}
|
|
688896
|
+
try {
|
|
688897
|
+
await assetHandler.processAllAssetsOnce();
|
|
688898
|
+
} catch {
|
|
688899
|
+
result.success = false;
|
|
688900
|
+
}
|
|
688901
|
+
return result;
|
|
688902
|
+
}
|
|
688903
|
+
}
|
|
688904
|
+
});
|
|
688905
|
+
|
|
688906
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/package-json/create-entry-points.js
|
|
688907
|
+
var require_create_entry_points2 = __commonJS({
|
|
688908
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/package-json/create-entry-points.js"(exports2) {
|
|
688909
|
+
"use strict";
|
|
688910
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688911
|
+
exports2.createEntryPoints = createEntryPoints;
|
|
688912
|
+
var fast_glob_1 = require_out4();
|
|
688913
|
+
var devkit_1 = require("@nx/devkit");
|
|
688914
|
+
function createEntryPoints(additionalEntryPoints, root) {
|
|
688915
|
+
if (!additionalEntryPoints?.length)
|
|
688916
|
+
return [];
|
|
688917
|
+
const files = [];
|
|
688918
|
+
for (const pattern of additionalEntryPoints) {
|
|
688919
|
+
const matched = (0, fast_glob_1.sync)([pattern], { cwd: root });
|
|
688920
|
+
if (!matched.length)
|
|
688921
|
+
devkit_1.logger.warn(`The pattern ${pattern} did not match any files.`);
|
|
688922
|
+
files.push(...matched);
|
|
688923
|
+
}
|
|
688924
|
+
return files;
|
|
688925
|
+
}
|
|
688926
|
+
}
|
|
688927
|
+
});
|
|
688928
|
+
|
|
688929
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/swc/add-swc-config.js
|
|
688930
|
+
var require_add_swc_config2 = __commonJS({
|
|
688931
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/swc/add-swc-config.js"(exports2) {
|
|
688932
|
+
"use strict";
|
|
688933
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688934
|
+
exports2.defaultExclude = void 0;
|
|
688935
|
+
exports2.addSwcConfig = addSwcConfig;
|
|
688936
|
+
var path_1 = require("path");
|
|
688937
|
+
exports2.defaultExclude = [
|
|
688938
|
+
"jest.config.ts",
|
|
688939
|
+
".*\\.spec.tsx?$",
|
|
688940
|
+
".*\\.test.tsx?$",
|
|
688941
|
+
"./src/jest-setup.ts$",
|
|
688942
|
+
"./**/jest-setup.ts$",
|
|
688943
|
+
".*.js$"
|
|
688944
|
+
];
|
|
688945
|
+
var swcOptionsString = (type = "commonjs") => `{
|
|
688946
|
+
"jsc": {
|
|
688947
|
+
"target": "es2017",
|
|
688948
|
+
"parser": {
|
|
688949
|
+
"syntax": "typescript",
|
|
688950
|
+
"decorators": true,
|
|
688951
|
+
"dynamicImport": true
|
|
688952
|
+
},
|
|
688953
|
+
"transform": {
|
|
688954
|
+
"decoratorMetadata": true,
|
|
688955
|
+
"legacyDecorator": true
|
|
688956
|
+
},
|
|
688957
|
+
"keepClassNames": true,
|
|
688958
|
+
"externalHelpers": true,
|
|
688959
|
+
"loose": true
|
|
688960
|
+
},
|
|
688961
|
+
"module": {
|
|
688962
|
+
"type": "${type}"
|
|
688963
|
+
},
|
|
688964
|
+
"sourceMaps": true,
|
|
688965
|
+
"exclude": ${JSON.stringify(exports2.defaultExclude)}
|
|
688966
|
+
}`;
|
|
688967
|
+
function addSwcConfig(tree, projectDir, type = "commonjs") {
|
|
688968
|
+
const swcrcPath = (0, path_1.join)(projectDir, ".swcrc");
|
|
688969
|
+
if (tree.exists(swcrcPath))
|
|
688970
|
+
return;
|
|
688971
|
+
tree.write(swcrcPath, swcOptionsString(type));
|
|
688972
|
+
}
|
|
688973
|
+
}
|
|
688974
|
+
});
|
|
688975
|
+
|
|
688976
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/swc/add-swc-dependencies.js
|
|
688977
|
+
var require_add_swc_dependencies2 = __commonJS({
|
|
688978
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/swc/add-swc-dependencies.js"(exports2) {
|
|
688979
|
+
"use strict";
|
|
688980
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
688981
|
+
exports2.addSwcDependencies = addSwcDependencies;
|
|
688982
|
+
exports2.addSwcRegisterDependencies = addSwcRegisterDependencies;
|
|
688983
|
+
var devkit_1 = require("@nx/devkit");
|
|
688984
|
+
var versions_1 = require_versions4();
|
|
688985
|
+
function addSwcDependencies(tree) {
|
|
688986
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
688987
|
+
"@swc/helpers": versions_1.swcHelpersVersion
|
|
688988
|
+
}, {
|
|
688989
|
+
"@swc/core": versions_1.swcCoreVersion,
|
|
688990
|
+
"@swc/cli": versions_1.swcCliVersion
|
|
688991
|
+
});
|
|
688992
|
+
}
|
|
688993
|
+
function addSwcRegisterDependencies(tree) {
|
|
688994
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { "@swc-node/register": versions_1.swcNodeVersion, "@swc/core": versions_1.swcCoreVersion });
|
|
688995
|
+
}
|
|
688996
|
+
}
|
|
688997
|
+
});
|
|
688998
|
+
|
|
688999
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/generators/init/init.js
|
|
689000
|
+
var require_init3 = __commonJS({
|
|
689001
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/generators/init/init.js"(exports2) {
|
|
689002
|
+
"use strict";
|
|
689003
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
689004
|
+
exports2.initGenerator = initGenerator2;
|
|
689005
|
+
exports2.initGeneratorInternal = initGeneratorInternal;
|
|
689006
|
+
var devkit_1 = require("@nx/devkit");
|
|
689007
|
+
var semver_1 = require("@nx/devkit/src/utils/semver");
|
|
689008
|
+
var package_json_1 = require("nx/src/utils/package-json");
|
|
689009
|
+
var semver_2 = require_semver2();
|
|
689010
|
+
var ts_config_1 = require_ts_config2();
|
|
689011
|
+
var versions_1 = require_versions4();
|
|
689012
|
+
var path_1 = require("path");
|
|
689013
|
+
async function getInstalledTypescriptVersion(tree) {
|
|
689014
|
+
const rootPackageJson = (0, devkit_1.readJson)(tree, "package.json");
|
|
689015
|
+
const tsVersionInRootPackageJson = rootPackageJson.devDependencies?.["typescript"] ?? rootPackageJson.dependencies?.["typescript"];
|
|
689016
|
+
if (!tsVersionInRootPackageJson) {
|
|
689017
|
+
return null;
|
|
689018
|
+
}
|
|
689019
|
+
if ((0, semver_2.valid)(tsVersionInRootPackageJson)) {
|
|
689020
|
+
return tsVersionInRootPackageJson;
|
|
689021
|
+
}
|
|
689022
|
+
try {
|
|
689023
|
+
const tsPackageJson = (0, package_json_1.readModulePackageJson)("typescript").packageJson;
|
|
689024
|
+
const installedTsVersion = tsPackageJson.devDependencies?.["typescript"] ?? tsPackageJson.dependencies?.["typescript"];
|
|
689025
|
+
if (installedTsVersion && (0, semver_2.satisfies)(installedTsVersion, tsVersionInRootPackageJson)) {
|
|
689026
|
+
return installedTsVersion;
|
|
689027
|
+
}
|
|
689028
|
+
} finally {
|
|
689029
|
+
return (0, semver_1.checkAndCleanWithSemver)("typescript", tsVersionInRootPackageJson);
|
|
689030
|
+
}
|
|
689031
|
+
}
|
|
689032
|
+
async function initGenerator2(tree, schema) {
|
|
689033
|
+
return initGeneratorInternal(tree, {
|
|
689034
|
+
addTsConfigBase: true,
|
|
689035
|
+
setUpPrettier: true,
|
|
689036
|
+
...schema
|
|
689037
|
+
});
|
|
689038
|
+
}
|
|
689039
|
+
async function initGeneratorInternal(tree, schema) {
|
|
689040
|
+
const tasks = [];
|
|
689041
|
+
if (schema.addTsConfigBase && !(0, ts_config_1.getRootTsConfigFileName)(tree)) {
|
|
689042
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, "./files"), ".", {
|
|
689043
|
+
fileName: schema.tsConfigName ?? "tsconfig.base.json"
|
|
689044
|
+
});
|
|
689045
|
+
}
|
|
689046
|
+
const devDependencies = {
|
|
689047
|
+
"@nx/js": versions_1.nxVersion,
|
|
689048
|
+
// When loading .ts config files (e.g. webpack.config.ts, jest.config.ts, etc.)
|
|
689049
|
+
// we prefer to use SWC, and fallback to ts-node for workspaces that don't use SWC.
|
|
689050
|
+
"@swc-node/register": versions_1.swcNodeVersion,
|
|
689051
|
+
"@swc/core": versions_1.swcCoreVersion,
|
|
689052
|
+
"@swc/helpers": versions_1.swcHelpersVersion
|
|
689053
|
+
};
|
|
689054
|
+
if (!schema.js && !schema.keepExistingVersions) {
|
|
689055
|
+
const installedTsVersion = await getInstalledTypescriptVersion(tree);
|
|
689056
|
+
if (!installedTsVersion || !(0, semver_2.satisfies)(installedTsVersion, versions_1.supportedTypescriptVersions, {
|
|
689057
|
+
includePrerelease: true
|
|
689058
|
+
})) {
|
|
689059
|
+
devDependencies["typescript"] = versions_1.typescriptVersion;
|
|
689060
|
+
}
|
|
689061
|
+
}
|
|
689062
|
+
if (schema.setUpPrettier) {
|
|
689063
|
+
devDependencies["prettier"] = versions_1.prettierVersion;
|
|
689064
|
+
const prettierrcNameOptions = [
|
|
689065
|
+
".prettierrc",
|
|
689066
|
+
".prettierrc.json",
|
|
689067
|
+
".prettierrc.yml",
|
|
689068
|
+
".prettierrc.yaml",
|
|
689069
|
+
".prettierrc.json5",
|
|
689070
|
+
".prettierrc.js",
|
|
689071
|
+
".prettierrc.cjs",
|
|
689072
|
+
".prettierrc.mjs",
|
|
689073
|
+
".prettierrc.toml",
|
|
689074
|
+
"prettier.config.js",
|
|
689075
|
+
"prettier.config.cjs",
|
|
689076
|
+
"prettier.config.mjs"
|
|
689077
|
+
];
|
|
689078
|
+
if (prettierrcNameOptions.every((name) => !tree.exists(name))) {
|
|
689079
|
+
(0, devkit_1.writeJson)(tree, ".prettierrc", {
|
|
689080
|
+
singleQuote: true
|
|
689081
|
+
});
|
|
689082
|
+
}
|
|
689083
|
+
if (!tree.exists(`.prettierignore`)) {
|
|
689084
|
+
tree.write(".prettierignore", (0, devkit_1.stripIndents)`
|
|
689085
|
+
# Add files here to ignore them from prettier formatting
|
|
689086
|
+
/dist
|
|
689087
|
+
/coverage
|
|
689088
|
+
/.nx/cache
|
|
689089
|
+
/.nx/workspace-data
|
|
689090
|
+
`);
|
|
689091
|
+
}
|
|
689092
|
+
}
|
|
689093
|
+
if (tree.exists(".vscode/extensions.json")) {
|
|
689094
|
+
(0, devkit_1.updateJson)(tree, ".vscode/extensions.json", (json) => {
|
|
689095
|
+
json.recommendations ??= [];
|
|
689096
|
+
const extension = "esbenp.prettier-vscode";
|
|
689097
|
+
if (!json.recommendations.includes(extension)) {
|
|
689098
|
+
json.recommendations.push(extension);
|
|
689099
|
+
}
|
|
689100
|
+
return json;
|
|
689101
|
+
});
|
|
689102
|
+
}
|
|
689103
|
+
const installTask = !schema.skipPackageJson ? (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies, void 0, schema.keepExistingVersions) : () => {
|
|
689104
|
+
};
|
|
689105
|
+
tasks.push(installTask);
|
|
689106
|
+
if (schema.setUpPrettier) {
|
|
689107
|
+
(0, devkit_1.ensurePackage)("prettier", versions_1.prettierVersion);
|
|
689108
|
+
if (!schema.skipFormat)
|
|
689109
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
689110
|
+
}
|
|
689111
|
+
return async () => {
|
|
689112
|
+
for (const task of tasks) {
|
|
689113
|
+
await task();
|
|
689114
|
+
}
|
|
689115
|
+
};
|
|
689116
|
+
}
|
|
689117
|
+
exports2.default = initGenerator2;
|
|
689118
|
+
}
|
|
689119
|
+
});
|
|
689120
|
+
|
|
689121
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/generators/setup-verdaccio/generator.js
|
|
689122
|
+
var require_generator2 = __commonJS({
|
|
689123
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/generators/setup-verdaccio/generator.js"(exports2) {
|
|
689124
|
+
"use strict";
|
|
689125
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
689126
|
+
exports2.setupVerdaccio = setupVerdaccio2;
|
|
689127
|
+
var devkit_1 = require("@nx/devkit");
|
|
689128
|
+
var path8 = require("path");
|
|
689129
|
+
var versions_1 = require_versions4();
|
|
689130
|
+
var child_process_1 = require("child_process");
|
|
689131
|
+
async function setupVerdaccio2(tree, options) {
|
|
689132
|
+
if (!tree.exists(".verdaccio/config.yml")) {
|
|
689133
|
+
(0, devkit_1.generateFiles)(tree, path8.join(__dirname, "files"), ".verdaccio", {
|
|
689134
|
+
npmUplinkRegistry: (0, child_process_1.execSync)("npm config get registry")?.toString()?.trim() ?? "https://registry.npmjs.org"
|
|
689135
|
+
});
|
|
689136
|
+
}
|
|
689137
|
+
const verdaccioTarget = {
|
|
689138
|
+
executor: "@nx/js:verdaccio",
|
|
689139
|
+
options: {
|
|
689140
|
+
port: 4873,
|
|
689141
|
+
config: ".verdaccio/config.yml",
|
|
689142
|
+
storage: "tmp/local-registry/storage"
|
|
689143
|
+
}
|
|
689144
|
+
};
|
|
689145
|
+
if (!tree.exists("project.json")) {
|
|
689146
|
+
const { name } = (0, devkit_1.readJson)(tree, "package.json");
|
|
689147
|
+
(0, devkit_1.updateJson)(tree, "package.json", (json) => {
|
|
689148
|
+
if (!json.nx) {
|
|
689149
|
+
json.nx = {
|
|
689150
|
+
includedScripts: []
|
|
689151
|
+
};
|
|
689152
|
+
}
|
|
689153
|
+
return json;
|
|
689154
|
+
});
|
|
689155
|
+
(0, devkit_1.addProjectConfiguration)(tree, name, {
|
|
689156
|
+
root: ".",
|
|
689157
|
+
targets: {
|
|
689158
|
+
["local-registry"]: verdaccioTarget
|
|
689159
|
+
}
|
|
689160
|
+
});
|
|
689161
|
+
} else {
|
|
689162
|
+
(0, devkit_1.updateJson)(tree, "project.json", (json) => {
|
|
689163
|
+
if (!json.targets) {
|
|
689164
|
+
json.targets = {};
|
|
689165
|
+
}
|
|
689166
|
+
json.targets["local-registry"] ??= verdaccioTarget;
|
|
689167
|
+
return json;
|
|
689168
|
+
});
|
|
689169
|
+
}
|
|
689170
|
+
if (!options.skipFormat) {
|
|
689171
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
689172
|
+
}
|
|
689173
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { verdaccio: versions_1.verdaccioVersion });
|
|
689174
|
+
}
|
|
689175
|
+
exports2.default = setupVerdaccio2;
|
|
689176
|
+
}
|
|
689177
|
+
});
|
|
689178
|
+
|
|
689179
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/generators/library/library.js
|
|
689180
|
+
var require_library2 = __commonJS({
|
|
689181
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/generators/library/library.js"(exports2) {
|
|
689182
|
+
"use strict";
|
|
689183
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
689184
|
+
exports2.libraryGenerator = libraryGenerator;
|
|
689185
|
+
exports2.libraryGeneratorInternal = libraryGeneratorInternal;
|
|
689186
|
+
exports2.addLint = addLint2;
|
|
689187
|
+
var devkit_1 = require("@nx/devkit");
|
|
689188
|
+
var project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
689189
|
+
var target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
|
689190
|
+
var log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
689191
|
+
var find_matching_projects_1 = require("nx/src/utils/find-matching-projects");
|
|
689192
|
+
var path_1 = require("path");
|
|
689193
|
+
var add_swc_config_1 = require_add_swc_config2();
|
|
689194
|
+
var add_swc_dependencies_1 = require_add_swc_dependencies2();
|
|
689195
|
+
var create_ts_config_1 = require_create_ts_config2();
|
|
689196
|
+
var ts_config_1 = require_ts_config2();
|
|
689197
|
+
var versions_1 = require_versions4();
|
|
689198
|
+
var init_1 = require_init3();
|
|
689199
|
+
var generator_1 = require_generator2();
|
|
689200
|
+
var defaultOutputDirectory = "dist";
|
|
689201
|
+
async function libraryGenerator(tree, schema) {
|
|
689202
|
+
return await libraryGeneratorInternal(tree, {
|
|
689203
|
+
addPlugin: false,
|
|
689204
|
+
// provide a default projectNameAndRootFormat to avoid breaking changes
|
|
689205
|
+
// to external generators invoking this one
|
|
689206
|
+
projectNameAndRootFormat: "derived",
|
|
689207
|
+
...schema
|
|
689208
|
+
});
|
|
689209
|
+
}
|
|
689210
|
+
async function libraryGeneratorInternal(tree, schema) {
|
|
689211
|
+
const tasks = [];
|
|
689212
|
+
tasks.push(await (0, init_1.default)(tree, {
|
|
689213
|
+
...schema,
|
|
689214
|
+
skipFormat: true,
|
|
689215
|
+
tsConfigName: schema.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
689216
|
+
}));
|
|
689217
|
+
const options = await normalizeOptions2(tree, schema);
|
|
689218
|
+
createFiles(tree, options);
|
|
689219
|
+
await addProject(tree, options);
|
|
689220
|
+
if (!options.skipPackageJson) {
|
|
689221
|
+
tasks.push(addProjectDependencies(tree, options));
|
|
689222
|
+
}
|
|
689223
|
+
if (options.publishable) {
|
|
689224
|
+
tasks.push(await (0, generator_1.default)(tree, { ...options, skipFormat: true }));
|
|
689225
|
+
}
|
|
689226
|
+
if (options.bundler === "rollup") {
|
|
689227
|
+
const { configurationGenerator } = (0, devkit_1.ensurePackage)("@nx/rollup", versions_1.nxVersion);
|
|
689228
|
+
await configurationGenerator(tree, {
|
|
689229
|
+
project: options.name,
|
|
689230
|
+
compiler: "swc",
|
|
689231
|
+
format: ["cjs", "esm"]
|
|
689232
|
+
});
|
|
689233
|
+
}
|
|
689234
|
+
if (options.bundler === "vite") {
|
|
689235
|
+
const { viteConfigurationGenerator, createOrEditViteConfig } = (0, devkit_1.ensurePackage)("@nx/vite", versions_1.nxVersion);
|
|
689236
|
+
const viteTask = await viteConfigurationGenerator(tree, {
|
|
689237
|
+
project: options.name,
|
|
689238
|
+
newProject: true,
|
|
689239
|
+
uiFramework: "none",
|
|
689240
|
+
includeVitest: options.unitTestRunner === "vitest",
|
|
689241
|
+
includeLib: true,
|
|
689242
|
+
skipFormat: true,
|
|
689243
|
+
testEnvironment: options.testEnvironment,
|
|
689244
|
+
addPlugin: options.addPlugin
|
|
689245
|
+
});
|
|
689246
|
+
tasks.push(viteTask);
|
|
689247
|
+
createOrEditViteConfig(tree, {
|
|
689248
|
+
project: options.name,
|
|
689249
|
+
includeLib: true,
|
|
689250
|
+
includeVitest: options.unitTestRunner === "vitest",
|
|
689251
|
+
testEnvironment: options.testEnvironment
|
|
689252
|
+
}, false);
|
|
689253
|
+
}
|
|
689254
|
+
if (options.linter !== "none") {
|
|
689255
|
+
const lintCallback = await addLint2(tree, options);
|
|
689256
|
+
tasks.push(lintCallback);
|
|
689257
|
+
}
|
|
689258
|
+
if (options.unitTestRunner === "jest") {
|
|
689259
|
+
const jestCallback = await addJest(tree, options);
|
|
689260
|
+
tasks.push(jestCallback);
|
|
689261
|
+
if (options.bundler === "swc" || options.bundler === "rollup") {
|
|
689262
|
+
replaceJestConfig(tree, options);
|
|
689263
|
+
}
|
|
689264
|
+
} else if (options.unitTestRunner === "vitest" && options.bundler !== "vite") {
|
|
689265
|
+
const { vitestGenerator, createOrEditViteConfig } = (0, devkit_1.ensurePackage)("@nx/vite", versions_1.nxVersion);
|
|
689266
|
+
const vitestTask = await vitestGenerator(tree, {
|
|
689267
|
+
project: options.name,
|
|
689268
|
+
uiFramework: "none",
|
|
689269
|
+
coverageProvider: "v8",
|
|
689270
|
+
skipFormat: true,
|
|
689271
|
+
testEnvironment: options.testEnvironment
|
|
689272
|
+
});
|
|
689273
|
+
tasks.push(vitestTask);
|
|
689274
|
+
createOrEditViteConfig(tree, {
|
|
689275
|
+
project: options.name,
|
|
689276
|
+
includeLib: false,
|
|
689277
|
+
includeVitest: true,
|
|
689278
|
+
testEnvironment: options.testEnvironment
|
|
689279
|
+
}, true);
|
|
689280
|
+
}
|
|
689281
|
+
if (!schema.skipTsConfig) {
|
|
689282
|
+
(0, ts_config_1.addTsConfigPath)(tree, options.importPath, [
|
|
689283
|
+
(0, devkit_1.joinPathFragments)(options.projectRoot, "./src", "index." + (options.js ? "js" : "ts"))
|
|
689284
|
+
]);
|
|
689285
|
+
}
|
|
689286
|
+
if (options.bundler !== "none") {
|
|
689287
|
+
addBundlerDependencies(tree, options);
|
|
689288
|
+
}
|
|
689289
|
+
if (!options.skipFormat) {
|
|
689290
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
689291
|
+
}
|
|
689292
|
+
if (options.publishable) {
|
|
689293
|
+
tasks.push(() => {
|
|
689294
|
+
logNxReleaseDocsInfo();
|
|
689295
|
+
});
|
|
689296
|
+
}
|
|
689297
|
+
tasks.push(() => {
|
|
689298
|
+
(0, log_show_project_command_1.logShowProjectCommand)(options.name);
|
|
689299
|
+
});
|
|
689300
|
+
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
689301
|
+
}
|
|
689302
|
+
async function addProject(tree, options) {
|
|
689303
|
+
const projectConfiguration = {
|
|
689304
|
+
root: options.projectRoot,
|
|
689305
|
+
sourceRoot: (0, devkit_1.joinPathFragments)(options.projectRoot, "src"),
|
|
689306
|
+
projectType: "library",
|
|
689307
|
+
targets: {},
|
|
689308
|
+
tags: options.parsedTags
|
|
689309
|
+
};
|
|
689310
|
+
if (options.bundler && options.bundler !== "none" && options.config !== "npm-scripts") {
|
|
689311
|
+
if (options.bundler !== "rollup") {
|
|
689312
|
+
const outputPath = getOutputPath2(options);
|
|
689313
|
+
const executor = getBuildExecutor(options.bundler);
|
|
689314
|
+
(0, target_defaults_utils_1.addBuildTargetDefaults)(tree, executor);
|
|
689315
|
+
projectConfiguration.targets.build = {
|
|
689316
|
+
executor,
|
|
689317
|
+
outputs: ["{options.outputPath}"],
|
|
689318
|
+
options: {
|
|
689319
|
+
outputPath,
|
|
689320
|
+
main: `${options.projectRoot}/src/index` + (options.js ? ".js" : ".ts"),
|
|
689321
|
+
tsConfig: `${options.projectRoot}/tsconfig.lib.json`,
|
|
689322
|
+
assets: []
|
|
689323
|
+
}
|
|
689324
|
+
};
|
|
689325
|
+
if (options.bundler === "esbuild") {
|
|
689326
|
+
projectConfiguration.targets.build.options.generatePackageJson = true;
|
|
689327
|
+
projectConfiguration.targets.build.options.format = ["cjs"];
|
|
689328
|
+
}
|
|
689329
|
+
if (options.bundler === "swc" && options.skipTypeCheck) {
|
|
689330
|
+
projectConfiguration.targets.build.options.skipTypeCheck = true;
|
|
689331
|
+
}
|
|
689332
|
+
if (!options.minimal) {
|
|
689333
|
+
projectConfiguration.targets.build.options.assets ??= [];
|
|
689334
|
+
projectConfiguration.targets.build.options.assets.push((0, devkit_1.joinPathFragments)(options.projectRoot, "*.md"));
|
|
689335
|
+
}
|
|
689336
|
+
}
|
|
689337
|
+
if (options.publishable) {
|
|
689338
|
+
const packageRoot = (0, devkit_1.joinPathFragments)(defaultOutputDirectory, "{projectRoot}");
|
|
689339
|
+
projectConfiguration.targets ??= {};
|
|
689340
|
+
projectConfiguration.targets["nx-release-publish"] = {
|
|
689341
|
+
options: {
|
|
689342
|
+
packageRoot
|
|
689343
|
+
}
|
|
689344
|
+
};
|
|
689345
|
+
projectConfiguration.release = {
|
|
689346
|
+
version: {
|
|
689347
|
+
generatorOptions: {
|
|
689348
|
+
packageRoot,
|
|
689349
|
+
// using git tags to determine the current version is required here because
|
|
689350
|
+
// the version in the package root is overridden with every build
|
|
689351
|
+
currentVersionResolver: "git-tag"
|
|
689352
|
+
}
|
|
689353
|
+
}
|
|
689354
|
+
};
|
|
689355
|
+
await addProjectToNxReleaseConfig(tree, options, projectConfiguration);
|
|
689356
|
+
}
|
|
689357
|
+
}
|
|
689358
|
+
if (options.config === "workspace" || options.config === "project") {
|
|
689359
|
+
(0, devkit_1.addProjectConfiguration)(tree, options.name, projectConfiguration);
|
|
689360
|
+
} else {
|
|
689361
|
+
(0, devkit_1.addProjectConfiguration)(tree, options.name, {
|
|
689362
|
+
root: projectConfiguration.root,
|
|
689363
|
+
tags: projectConfiguration.tags,
|
|
689364
|
+
targets: {}
|
|
689365
|
+
}, true);
|
|
689366
|
+
}
|
|
689367
|
+
}
|
|
689368
|
+
async function addLint2(tree, options) {
|
|
689369
|
+
const { lintProjectGenerator } = (0, devkit_1.ensurePackage)("@nx/eslint", versions_1.nxVersion);
|
|
689370
|
+
const projectConfiguration = (0, devkit_1.readProjectConfiguration)(tree, options.name);
|
|
689371
|
+
const task = await lintProjectGenerator(tree, {
|
|
689372
|
+
project: options.name,
|
|
689373
|
+
linter: options.linter,
|
|
689374
|
+
skipFormat: true,
|
|
689375
|
+
tsConfigPaths: [
|
|
689376
|
+
(0, devkit_1.joinPathFragments)(options.projectRoot, "tsconfig.lib.json")
|
|
689377
|
+
],
|
|
689378
|
+
unitTestRunner: options.unitTestRunner,
|
|
689379
|
+
setParserOptionsProject: options.setParserOptionsProject,
|
|
689380
|
+
rootProject: options.rootProject,
|
|
689381
|
+
addPlugin: options.addPlugin,
|
|
689382
|
+
// Since the build target is inferred now, we need to let the generator know to add @nx/dependency-checks regardless.
|
|
689383
|
+
addPackageJsonDependencyChecks: options.bundler !== "none"
|
|
689384
|
+
});
|
|
689385
|
+
const {
|
|
689386
|
+
addOverrideToLintConfig,
|
|
689387
|
+
lintConfigHasOverride,
|
|
689388
|
+
isEslintConfigSupported,
|
|
689389
|
+
updateOverrideInLintConfig
|
|
689390
|
+
// nx-ignore-next-line
|
|
689391
|
+
} = require_eslint_file();
|
|
689392
|
+
if (!isEslintConfigSupported(tree)) {
|
|
689393
|
+
return task;
|
|
689394
|
+
}
|
|
689395
|
+
if (options.rootProject) {
|
|
689396
|
+
addOverrideToLintConfig(tree, "", {
|
|
689397
|
+
files: ["*.json"],
|
|
689398
|
+
parser: "jsonc-eslint-parser",
|
|
689399
|
+
rules: {
|
|
689400
|
+
"@nx/dependency-checks": "error"
|
|
689401
|
+
}
|
|
689402
|
+
});
|
|
689403
|
+
}
|
|
689404
|
+
if (lintConfigHasOverride(tree, projectConfiguration.root, (o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/), true)) {
|
|
689405
|
+
updateOverrideInLintConfig(tree, projectConfiguration.root, (o) => o.rules?.["@nx/dependency-checks"], (o) => {
|
|
689406
|
+
const value2 = o.rules["@nx/dependency-checks"];
|
|
689407
|
+
let ruleSeverity;
|
|
689408
|
+
let ruleOptions;
|
|
689409
|
+
if (Array.isArray(value2)) {
|
|
689410
|
+
ruleSeverity = value2[0];
|
|
689411
|
+
ruleOptions = value2[1];
|
|
689412
|
+
} else {
|
|
689413
|
+
ruleSeverity = value2;
|
|
689414
|
+
ruleOptions = {};
|
|
689415
|
+
}
|
|
689416
|
+
if (options.bundler === "vite" || options.unitTestRunner === "vitest") {
|
|
689417
|
+
ruleOptions.ignoredFiles = [
|
|
689418
|
+
"{projectRoot}/vite.config.{js,ts,mjs,mts}"
|
|
689419
|
+
];
|
|
689420
|
+
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
689421
|
+
} else if (options.bundler === "rollup") {
|
|
689422
|
+
ruleOptions.ignoredFiles = [
|
|
689423
|
+
"{projectRoot}/rollup.config.{js,ts,mjs,mts}"
|
|
689424
|
+
];
|
|
689425
|
+
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
689426
|
+
} else if (options.bundler === "esbuild") {
|
|
689427
|
+
ruleOptions.ignoredFiles = [
|
|
689428
|
+
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
689429
|
+
];
|
|
689430
|
+
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
689431
|
+
}
|
|
689432
|
+
return o;
|
|
689433
|
+
});
|
|
689434
|
+
}
|
|
689435
|
+
return task;
|
|
689436
|
+
}
|
|
689437
|
+
function addBundlerDependencies(tree, options) {
|
|
689438
|
+
(0, devkit_1.updateJson)(tree, `${options.projectRoot}/package.json`, (json) => {
|
|
689439
|
+
if (options.bundler === "tsc") {
|
|
689440
|
+
json.dependencies = {
|
|
689441
|
+
...json.dependencies,
|
|
689442
|
+
tslib: versions_1.tsLibVersion
|
|
689443
|
+
};
|
|
689444
|
+
} else if (options.bundler === "swc") {
|
|
689445
|
+
json.dependencies = {
|
|
689446
|
+
...json.dependencies,
|
|
689447
|
+
"@swc/helpers": versions_1.swcHelpersVersion
|
|
689448
|
+
};
|
|
689449
|
+
}
|
|
689450
|
+
return json;
|
|
689451
|
+
});
|
|
689452
|
+
}
|
|
689453
|
+
function updateTsConfig(tree, options) {
|
|
689454
|
+
(0, devkit_1.updateJson)(tree, (0, path_1.join)(options.projectRoot, "tsconfig.json"), (json) => {
|
|
689455
|
+
if (options.strict) {
|
|
689456
|
+
json.compilerOptions = {
|
|
689457
|
+
...json.compilerOptions,
|
|
689458
|
+
forceConsistentCasingInFileNames: true,
|
|
689459
|
+
strict: true,
|
|
689460
|
+
noImplicitOverride: true,
|
|
689461
|
+
noPropertyAccessFromIndexSignature: true,
|
|
689462
|
+
noImplicitReturns: true,
|
|
689463
|
+
noFallthroughCasesInSwitch: true
|
|
689464
|
+
};
|
|
689465
|
+
}
|
|
689466
|
+
return json;
|
|
689467
|
+
});
|
|
689468
|
+
}
|
|
689469
|
+
function addBabelRc(tree, options) {
|
|
689470
|
+
const filename = ".babelrc";
|
|
689471
|
+
const babelrc = {
|
|
689472
|
+
presets: [["@nx/js/babel", { useBuiltIns: "usage" }]]
|
|
689473
|
+
};
|
|
689474
|
+
(0, devkit_1.writeJson)(tree, (0, path_1.join)(options.projectRoot, filename), babelrc);
|
|
689475
|
+
}
|
|
689476
|
+
function createFiles(tree, options) {
|
|
689477
|
+
const { className, name, propertyName } = (0, devkit_1.names)(options.projectNames.projectFileName);
|
|
689478
|
+
createProjectTsConfigJson2(tree, options);
|
|
689479
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, "./files/lib"), options.projectRoot, {
|
|
689480
|
+
...options,
|
|
689481
|
+
dot: ".",
|
|
689482
|
+
className,
|
|
689483
|
+
name,
|
|
689484
|
+
propertyName,
|
|
689485
|
+
js: !!options.js,
|
|
689486
|
+
cliCommand: "nx",
|
|
689487
|
+
strict: void 0,
|
|
689488
|
+
tmpl: "",
|
|
689489
|
+
offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot),
|
|
689490
|
+
buildable: options.bundler && options.bundler !== "none",
|
|
689491
|
+
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
689492
|
+
});
|
|
689493
|
+
if (!options.rootProject) {
|
|
689494
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, "./files/readme"), options.projectRoot, {
|
|
689495
|
+
...options,
|
|
689496
|
+
dot: ".",
|
|
689497
|
+
className,
|
|
689498
|
+
name,
|
|
689499
|
+
propertyName,
|
|
689500
|
+
js: !!options.js,
|
|
689501
|
+
cliCommand: "nx",
|
|
689502
|
+
strict: void 0,
|
|
689503
|
+
tmpl: "",
|
|
689504
|
+
offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot),
|
|
689505
|
+
buildable: options.bundler && options.bundler !== "none",
|
|
689506
|
+
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
689507
|
+
});
|
|
689508
|
+
}
|
|
689509
|
+
if (options.bundler === "swc" || options.bundler === "rollup") {
|
|
689510
|
+
(0, add_swc_dependencies_1.addSwcDependencies)(tree);
|
|
689511
|
+
(0, add_swc_config_1.addSwcConfig)(tree, options.projectRoot, options.bundler === "swc" ? "commonjs" : "es6");
|
|
689512
|
+
} else if (options.includeBabelRc) {
|
|
689513
|
+
addBabelRc(tree, options);
|
|
689514
|
+
}
|
|
689515
|
+
if (options.unitTestRunner === "none") {
|
|
689516
|
+
tree.delete((0, path_1.join)(options.projectRoot, "src/lib", `${options.fileName}.spec.ts`));
|
|
689517
|
+
tree.delete((0, path_1.join)(options.projectRoot, "src/app", `${options.fileName}.spec.ts`));
|
|
689518
|
+
}
|
|
689519
|
+
if (options.js) {
|
|
689520
|
+
(0, devkit_1.toJS)(tree);
|
|
689521
|
+
}
|
|
689522
|
+
const packageJsonPath = (0, devkit_1.joinPathFragments)(options.projectRoot, "package.json");
|
|
689523
|
+
if (tree.exists(packageJsonPath)) {
|
|
689524
|
+
(0, devkit_1.updateJson)(tree, packageJsonPath, (json) => {
|
|
689525
|
+
json.name = options.importPath;
|
|
689526
|
+
json.version = "0.0.1";
|
|
689527
|
+
if (json.private && (options.publishable || options.rootProject)) {
|
|
689528
|
+
delete json.private;
|
|
689529
|
+
}
|
|
689530
|
+
if (!options.publishable && !options.rootProject) {
|
|
689531
|
+
json.private = true;
|
|
689532
|
+
}
|
|
689533
|
+
return {
|
|
689534
|
+
...json,
|
|
689535
|
+
dependencies: {
|
|
689536
|
+
...json.dependencies,
|
|
689537
|
+
...determineDependencies(options)
|
|
689538
|
+
},
|
|
689539
|
+
...determineEntryFields(options)
|
|
689540
|
+
};
|
|
689541
|
+
});
|
|
689542
|
+
} else {
|
|
689543
|
+
const packageJson = {
|
|
689544
|
+
name: options.importPath,
|
|
689545
|
+
version: "0.0.1",
|
|
689546
|
+
dependencies: determineDependencies(options),
|
|
689547
|
+
...determineEntryFields(options)
|
|
689548
|
+
};
|
|
689549
|
+
if (!options.publishable && !options.rootProject) {
|
|
689550
|
+
packageJson.private = true;
|
|
689551
|
+
}
|
|
689552
|
+
(0, devkit_1.writeJson)(tree, packageJsonPath, packageJson);
|
|
689553
|
+
}
|
|
689554
|
+
if (options.config === "npm-scripts") {
|
|
689555
|
+
(0, devkit_1.updateJson)(tree, packageJsonPath, (json) => {
|
|
689556
|
+
json.scripts = {
|
|
689557
|
+
build: "echo 'implement build'",
|
|
689558
|
+
test: "echo 'implement test'"
|
|
689559
|
+
};
|
|
689560
|
+
return json;
|
|
689561
|
+
});
|
|
689562
|
+
} else if ((!options.bundler || options.bundler === "none") && !(options.projectRoot === ".")) {
|
|
689563
|
+
tree.delete(packageJsonPath);
|
|
689564
|
+
}
|
|
689565
|
+
if (options.minimal && !(options.projectRoot === ".")) {
|
|
689566
|
+
tree.delete((0, path_1.join)(options.projectRoot, "README.md"));
|
|
689567
|
+
}
|
|
689568
|
+
updateTsConfig(tree, options);
|
|
689569
|
+
}
|
|
689570
|
+
async function addJest(tree, options) {
|
|
689571
|
+
const { configurationGenerator } = (0, devkit_1.ensurePackage)("@nx/jest", versions_1.nxVersion);
|
|
689572
|
+
return await configurationGenerator(tree, {
|
|
689573
|
+
...options,
|
|
689574
|
+
project: options.name,
|
|
689575
|
+
setupFile: "none",
|
|
689576
|
+
supportTsx: false,
|
|
689577
|
+
skipSerializers: true,
|
|
689578
|
+
testEnvironment: options.testEnvironment,
|
|
689579
|
+
skipFormat: true,
|
|
689580
|
+
compiler: options.bundler === "swc" || options.bundler === "tsc" ? options.bundler : options.bundler === "rollup" ? "swc" : void 0
|
|
689581
|
+
});
|
|
689582
|
+
}
|
|
689583
|
+
function replaceJestConfig(tree, options) {
|
|
689584
|
+
const filesDir = (0, path_1.join)(__dirname, "./files/jest-config");
|
|
689585
|
+
const existingJestConfig = (0, devkit_1.joinPathFragments)(filesDir, `jest.config.${options.js ? "js" : "ts"}`);
|
|
689586
|
+
if (tree.exists(existingJestConfig)) {
|
|
689587
|
+
tree.delete(existingJestConfig);
|
|
689588
|
+
}
|
|
689589
|
+
const jestPreset = findRootJestPreset(tree) ?? "jest.presets.js";
|
|
689590
|
+
(0, devkit_1.generateFiles)(tree, filesDir, options.projectRoot, {
|
|
689591
|
+
ext: options.js ? "js" : "ts",
|
|
689592
|
+
jestPreset,
|
|
689593
|
+
js: !!options.js,
|
|
689594
|
+
project: options.name,
|
|
689595
|
+
offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot),
|
|
689596
|
+
projectRoot: options.projectRoot,
|
|
689597
|
+
testEnvironment: options.testEnvironment
|
|
689598
|
+
});
|
|
689599
|
+
}
|
|
689600
|
+
async function normalizeOptions2(tree, options) {
|
|
689601
|
+
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
689602
|
+
const addPlugin = process.env.NX_ADD_PLUGINS !== "false" && nxJson.useInferencePlugins !== false;
|
|
689603
|
+
options.addPlugin ??= addPlugin;
|
|
689604
|
+
options.bundler = options.bundler ?? options.compiler ?? "tsc";
|
|
689605
|
+
if (!options.config) {
|
|
689606
|
+
options.config = "project";
|
|
689607
|
+
}
|
|
689608
|
+
if (options.publishable) {
|
|
689609
|
+
if (!options.importPath) {
|
|
689610
|
+
throw new Error(`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`);
|
|
689611
|
+
}
|
|
689612
|
+
if (options.bundler === "none") {
|
|
689613
|
+
options.bundler = "tsc";
|
|
689614
|
+
}
|
|
689615
|
+
}
|
|
689616
|
+
if (options.publishable === false && options.buildable === false) {
|
|
689617
|
+
options.bundler = "none";
|
|
689618
|
+
}
|
|
689619
|
+
const { Linter } = (0, devkit_1.ensurePackage)("@nx/eslint", versions_1.nxVersion);
|
|
689620
|
+
if (options.config === "npm-scripts") {
|
|
689621
|
+
options.unitTestRunner = "none";
|
|
689622
|
+
options.linter = Linter.None;
|
|
689623
|
+
options.bundler = "none";
|
|
689624
|
+
}
|
|
689625
|
+
if ((options.bundler === "swc" || options.bundler === "rollup") && options.skipTypeCheck == null) {
|
|
689626
|
+
options.skipTypeCheck = false;
|
|
689627
|
+
}
|
|
689628
|
+
if (!options.unitTestRunner && options.bundler === "vite") {
|
|
689629
|
+
options.unitTestRunner = "vitest";
|
|
689630
|
+
} else if (!options.unitTestRunner && options.config !== "npm-scripts") {
|
|
689631
|
+
options.unitTestRunner = "jest";
|
|
689632
|
+
}
|
|
689633
|
+
if (!options.linter && options.config !== "npm-scripts") {
|
|
689634
|
+
options.linter = Linter.EsLint;
|
|
689635
|
+
}
|
|
689636
|
+
const { projectName, names: projectNames, projectRoot, importPath } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(tree, {
|
|
689637
|
+
name: options.name,
|
|
689638
|
+
projectType: "library",
|
|
689639
|
+
directory: options.directory,
|
|
689640
|
+
importPath: options.importPath,
|
|
689641
|
+
projectNameAndRootFormat: options.projectNameAndRootFormat,
|
|
689642
|
+
rootProject: options.rootProject,
|
|
689643
|
+
callingGenerator: "@nx/js:library"
|
|
689644
|
+
});
|
|
689645
|
+
options.rootProject = projectRoot === ".";
|
|
689646
|
+
const fileName = getCaseAwareFileName({
|
|
689647
|
+
fileName: options.simpleName ? projectNames.projectSimpleName : projectNames.projectFileName,
|
|
689648
|
+
pascalCaseFiles: options.pascalCaseFiles
|
|
689649
|
+
});
|
|
689650
|
+
const parsedTags = options.tags ? options.tags.split(",").map((s2) => s2.trim()) : [];
|
|
689651
|
+
options.minimal ??= false;
|
|
689652
|
+
return {
|
|
689653
|
+
...options,
|
|
689654
|
+
fileName,
|
|
689655
|
+
name: projectName,
|
|
689656
|
+
projectNames,
|
|
689657
|
+
projectRoot,
|
|
689658
|
+
parsedTags,
|
|
689659
|
+
importPath
|
|
689660
|
+
};
|
|
689661
|
+
}
|
|
689662
|
+
function getCaseAwareFileName(options) {
|
|
689663
|
+
const normalized = (0, devkit_1.names)(options.fileName);
|
|
689664
|
+
return options.pascalCaseFiles ? normalized.className : normalized.fileName;
|
|
689665
|
+
}
|
|
689666
|
+
function addProjectDependencies(tree, options) {
|
|
689667
|
+
if (options.bundler == "esbuild") {
|
|
689668
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
689669
|
+
"@nx/esbuild": versions_1.nxVersion,
|
|
689670
|
+
"@types/node": versions_1.typesNodeVersion,
|
|
689671
|
+
esbuild: versions_1.esbuildVersion
|
|
689672
|
+
});
|
|
689673
|
+
} else if (options.bundler == "rollup") {
|
|
689674
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { "@nx/rollup": versions_1.nxVersion, "@types/node": versions_1.typesNodeVersion });
|
|
689675
|
+
} else {
|
|
689676
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { "@types/node": versions_1.typesNodeVersion });
|
|
689677
|
+
}
|
|
689678
|
+
return () => {
|
|
689679
|
+
};
|
|
689680
|
+
}
|
|
689681
|
+
function getBuildExecutor(bundler) {
|
|
689682
|
+
switch (bundler) {
|
|
689683
|
+
case "esbuild":
|
|
689684
|
+
return `@nx/esbuild:esbuild`;
|
|
689685
|
+
case "rollup":
|
|
689686
|
+
return `@nx/rollup:rollup`;
|
|
689687
|
+
case "swc":
|
|
689688
|
+
case "tsc":
|
|
689689
|
+
return `@nx/js:${bundler}`;
|
|
689690
|
+
case "vite":
|
|
689691
|
+
return `@nx/vite:build`;
|
|
689692
|
+
case "none":
|
|
689693
|
+
default:
|
|
689694
|
+
return void 0;
|
|
689695
|
+
}
|
|
689696
|
+
}
|
|
689697
|
+
function getOutputPath2(options) {
|
|
689698
|
+
const parts = [defaultOutputDirectory];
|
|
689699
|
+
if (options.projectRoot === ".") {
|
|
689700
|
+
parts.push(options.name);
|
|
689701
|
+
} else {
|
|
689702
|
+
parts.push(options.projectRoot);
|
|
689703
|
+
}
|
|
689704
|
+
return (0, devkit_1.joinPathFragments)(...parts);
|
|
689705
|
+
}
|
|
689706
|
+
function createProjectTsConfigJson2(tree, options) {
|
|
689707
|
+
const tsconfig = {
|
|
689708
|
+
extends: options.rootProject ? void 0 : (0, ts_config_1.getRelativePathToRootTsConfig)(tree, options.projectRoot),
|
|
689709
|
+
compilerOptions: {
|
|
689710
|
+
...options.rootProject ? create_ts_config_1.tsConfigBaseOptions : {},
|
|
689711
|
+
module: "commonjs",
|
|
689712
|
+
allowJs: options.js ? true : void 0
|
|
689713
|
+
},
|
|
689714
|
+
files: [],
|
|
689715
|
+
include: [],
|
|
689716
|
+
references: [
|
|
689717
|
+
{
|
|
689718
|
+
path: "./tsconfig.lib.json"
|
|
689719
|
+
}
|
|
689720
|
+
]
|
|
689721
|
+
};
|
|
689722
|
+
(0, devkit_1.writeJson)(tree, (0, devkit_1.joinPathFragments)(options.projectRoot, "tsconfig.json"), tsconfig);
|
|
689723
|
+
}
|
|
689724
|
+
function determineDependencies(options) {
|
|
689725
|
+
switch (options.bundler) {
|
|
689726
|
+
case "tsc":
|
|
689727
|
+
return {
|
|
689728
|
+
tslib: versions_1.tsLibVersion
|
|
689729
|
+
};
|
|
689730
|
+
case "swc":
|
|
689731
|
+
return {
|
|
689732
|
+
"@swc/helpers": versions_1.swcHelpersVersion
|
|
689733
|
+
};
|
|
689734
|
+
default: {
|
|
689735
|
+
return {};
|
|
689736
|
+
}
|
|
689737
|
+
}
|
|
689738
|
+
}
|
|
689739
|
+
function determineEntryFields(options) {
|
|
689740
|
+
switch (options.bundler) {
|
|
689741
|
+
case "tsc":
|
|
689742
|
+
return {
|
|
689743
|
+
type: "commonjs",
|
|
689744
|
+
main: "./src/index.js",
|
|
689745
|
+
typings: "./src/index.d.ts"
|
|
689746
|
+
};
|
|
689747
|
+
case "swc":
|
|
689748
|
+
return {
|
|
689749
|
+
type: "commonjs",
|
|
689750
|
+
main: "./src/index.js",
|
|
689751
|
+
typings: "./src/index.d.ts"
|
|
689752
|
+
};
|
|
689753
|
+
case "rollup":
|
|
689754
|
+
return {
|
|
689755
|
+
// Since we're publishing both formats, skip the type field.
|
|
689756
|
+
// Bundlers or Node will determine the entry point to use.
|
|
689757
|
+
main: "./index.cjs",
|
|
689758
|
+
module: "./index.js"
|
|
689759
|
+
};
|
|
689760
|
+
case "vite":
|
|
689761
|
+
return {
|
|
689762
|
+
// Since we're publishing both formats, skip the type field.
|
|
689763
|
+
// Bundlers or Node will determine the entry point to use.
|
|
689764
|
+
main: "./index.js",
|
|
689765
|
+
module: "./index.mjs",
|
|
689766
|
+
typings: "./index.d.ts"
|
|
689767
|
+
};
|
|
689768
|
+
case "esbuild":
|
|
689769
|
+
return {
|
|
689770
|
+
type: "commonjs",
|
|
689771
|
+
main: "./index.cjs"
|
|
689772
|
+
// typings is missing for esbuild currently
|
|
689773
|
+
};
|
|
689774
|
+
default: {
|
|
689775
|
+
return {
|
|
689776
|
+
// Safest option is to not set a type field.
|
|
689777
|
+
// Allow the user to decide which module format their library is using
|
|
689778
|
+
type: void 0
|
|
689779
|
+
};
|
|
689780
|
+
}
|
|
689781
|
+
}
|
|
689782
|
+
}
|
|
689783
|
+
function projectsConfigMatchesProject(projectsConfig, project) {
|
|
689784
|
+
if (!projectsConfig) {
|
|
689785
|
+
return false;
|
|
689786
|
+
}
|
|
689787
|
+
if (typeof projectsConfig === "string") {
|
|
689788
|
+
projectsConfig = [projectsConfig];
|
|
689789
|
+
}
|
|
689790
|
+
const graph = {
|
|
689791
|
+
[project.name]: project
|
|
689792
|
+
};
|
|
689793
|
+
const matchingProjects = (0, find_matching_projects_1.findMatchingProjects)(projectsConfig, graph);
|
|
689794
|
+
return matchingProjects.includes(project.name);
|
|
689795
|
+
}
|
|
689796
|
+
async function addProjectToNxReleaseConfig(tree, options, projectConfiguration) {
|
|
689797
|
+
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
689798
|
+
const addPreVersionCommand = () => {
|
|
689799
|
+
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
689800
|
+
nxJson.release = {
|
|
689801
|
+
...nxJson.release,
|
|
689802
|
+
version: {
|
|
689803
|
+
preVersionCommand: `${pmc.dlx} nx run-many -t build`,
|
|
689804
|
+
...nxJson.release?.version
|
|
689805
|
+
}
|
|
689806
|
+
};
|
|
689807
|
+
};
|
|
689808
|
+
if (!nxJson.release || !nxJson.release.projects && !nxJson.release.groups) {
|
|
689809
|
+
addPreVersionCommand();
|
|
689810
|
+
(0, devkit_1.writeJson)(tree, "nx.json", nxJson);
|
|
689811
|
+
return;
|
|
689812
|
+
}
|
|
689813
|
+
const project = {
|
|
689814
|
+
name: options.name,
|
|
689815
|
+
type: "lib",
|
|
689816
|
+
data: {
|
|
689817
|
+
root: projectConfiguration.root,
|
|
689818
|
+
tags: projectConfiguration.tags
|
|
689819
|
+
}
|
|
689820
|
+
};
|
|
689821
|
+
if (projectsConfigMatchesProject(nxJson.release.projects, project)) {
|
|
689822
|
+
devkit_1.output.log({
|
|
689823
|
+
title: `Project already included in existing release configuration`
|
|
689824
|
+
});
|
|
689825
|
+
addPreVersionCommand();
|
|
689826
|
+
(0, devkit_1.writeJson)(tree, "nx.json", nxJson);
|
|
689827
|
+
return;
|
|
689828
|
+
}
|
|
689829
|
+
if (Array.isArray(nxJson.release.projects)) {
|
|
689830
|
+
nxJson.release.projects.push(options.name);
|
|
689831
|
+
addPreVersionCommand();
|
|
689832
|
+
(0, devkit_1.writeJson)(tree, "nx.json", nxJson);
|
|
689833
|
+
devkit_1.output.log({
|
|
689834
|
+
title: `Added project to existing release configuration`
|
|
689835
|
+
});
|
|
689836
|
+
}
|
|
689837
|
+
if (nxJson.release.groups) {
|
|
689838
|
+
const allGroups = Object.entries(nxJson.release.groups);
|
|
689839
|
+
for (const [name, group] of allGroups) {
|
|
689840
|
+
if (projectsConfigMatchesProject(group.projects, project)) {
|
|
689841
|
+
addPreVersionCommand();
|
|
689842
|
+
(0, devkit_1.writeJson)(tree, "nx.json", nxJson);
|
|
689843
|
+
return `Project already included in existing release configuration for group ${name}`;
|
|
689844
|
+
}
|
|
689845
|
+
}
|
|
689846
|
+
devkit_1.output.warn({
|
|
689847
|
+
title: `Could not find a release group that includes ${options.name}`,
|
|
689848
|
+
bodyLines: [
|
|
689849
|
+
`Ensure that ${options.name} is included in a release group's "projects" list in nx.json so it can be published with "nx release"`
|
|
689850
|
+
]
|
|
689851
|
+
});
|
|
689852
|
+
addPreVersionCommand();
|
|
689853
|
+
(0, devkit_1.writeJson)(tree, "nx.json", nxJson);
|
|
689854
|
+
return;
|
|
689855
|
+
}
|
|
689856
|
+
if (typeof nxJson.release.projects === "string") {
|
|
689857
|
+
nxJson.release.projects = [nxJson.release.projects, options.name];
|
|
689858
|
+
addPreVersionCommand();
|
|
689859
|
+
(0, devkit_1.writeJson)(tree, "nx.json", nxJson);
|
|
689860
|
+
devkit_1.output.log({
|
|
689861
|
+
title: `Added project to existing release configuration`
|
|
689862
|
+
});
|
|
689863
|
+
return;
|
|
689864
|
+
}
|
|
689865
|
+
}
|
|
689866
|
+
function logNxReleaseDocsInfo() {
|
|
689867
|
+
devkit_1.output.log({
|
|
689868
|
+
title: `\u{1F4E6} To learn how to publish this library, see https://nx.dev/core-features/manage-releases.`
|
|
689869
|
+
});
|
|
689870
|
+
}
|
|
689871
|
+
function findRootJestPreset(tree) {
|
|
689872
|
+
const ext2 = ["js", "cjs", "mjs"].find((ext3) => tree.exists(`jest.preset.${ext3}`));
|
|
689873
|
+
return ext2 ? `jest.preset.${ext2}` : null;
|
|
689874
|
+
}
|
|
689875
|
+
exports2.default = libraryGenerator;
|
|
689876
|
+
}
|
|
689877
|
+
});
|
|
689878
|
+
|
|
689879
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/is-valid-variable.js
|
|
689880
|
+
var require_is_valid_variable2 = __commonJS({
|
|
689881
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/utils/is-valid-variable.js"(exports2) {
|
|
689882
|
+
"use strict";
|
|
689883
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
689884
|
+
exports2.isValidVariable = isValidVariable;
|
|
689885
|
+
function isValidVariable(name) {
|
|
689886
|
+
const validRegex = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
|
|
689887
|
+
if (validRegex.test(name)) {
|
|
689888
|
+
return { isValid: true, message: "The name is a valid identifier." };
|
|
689889
|
+
} else {
|
|
689890
|
+
if (name === "") {
|
|
689891
|
+
return { isValid: false, message: "The name cannot be empty." };
|
|
689892
|
+
} else if (/^[0-9]/.test(name)) {
|
|
689893
|
+
return { isValid: false, message: "The name cannot start with a digit." };
|
|
689894
|
+
} else if (/[^a-zA-Z0-9_$]/.test(name)) {
|
|
689895
|
+
return {
|
|
689896
|
+
isValid: false,
|
|
689897
|
+
message: "The name can only contain letters, digits, underscores, and dollar signs."
|
|
689898
|
+
};
|
|
689899
|
+
} else if (/^[^a-zA-Z_$]/.test(name)) {
|
|
689900
|
+
return {
|
|
689901
|
+
isValid: false,
|
|
689902
|
+
message: "The name must start with a letter, underscore, or dollar sign."
|
|
689903
|
+
};
|
|
689904
|
+
}
|
|
689905
|
+
return {
|
|
689906
|
+
isValid: false,
|
|
689907
|
+
message: "The name is not a valid JavaScript identifier."
|
|
689908
|
+
};
|
|
689909
|
+
}
|
|
689910
|
+
}
|
|
689911
|
+
}
|
|
689912
|
+
});
|
|
689913
|
+
|
|
689914
|
+
// node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/index.js
|
|
689915
|
+
var require_src5 = __commonJS({
|
|
689916
|
+
"node_modules/.pnpm/@nx+js@19.6.2_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_lhlivgongalu53yquefncoftna/node_modules/@nx/js/src/index.js"(exports2) {
|
|
689917
|
+
"use strict";
|
|
689918
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
689919
|
+
exports2.createPackageJson = exports2.getLockFileName = exports2.createLockFile = exports2.isValidVariable = exports2.setupVerdaccio = exports2.initGenerator = exports2.libraryGenerator = void 0;
|
|
689920
|
+
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
689921
|
+
tslib_1.__exportStar(require_add_tslib_dependencies2(), exports2);
|
|
689922
|
+
tslib_1.__exportStar(require_load_ts_transformers2(), exports2);
|
|
689923
|
+
tslib_1.__exportStar(require_print_diagnostics2(), exports2);
|
|
689924
|
+
tslib_1.__exportStar(require_run_type_check2(), exports2);
|
|
689925
|
+
tslib_1.__exportStar(require_get_source_nodes2(), exports2);
|
|
689926
|
+
tslib_1.__exportStar(require_compiler_helper_dependency2(), exports2);
|
|
689927
|
+
tslib_1.__exportStar(require_ts_config2(), exports2);
|
|
689928
|
+
tslib_1.__exportStar(require_create_ts_config2(), exports2);
|
|
689929
|
+
tslib_1.__exportStar(require_ast_utils5(), exports2);
|
|
689930
|
+
tslib_1.__exportStar(require_package_json2(), exports2);
|
|
689931
|
+
tslib_1.__exportStar(require_assets2(), exports2);
|
|
689932
|
+
tslib_1.__exportStar(require_update_package_json3(), exports2);
|
|
689933
|
+
tslib_1.__exportStar(require_create_entry_points2(), exports2);
|
|
689934
|
+
var library_1 = require_library2();
|
|
689935
|
+
Object.defineProperty(exports2, "libraryGenerator", { enumerable: true, get: function() {
|
|
689936
|
+
return library_1.libraryGenerator;
|
|
689937
|
+
} });
|
|
689938
|
+
var init_1 = require_init3();
|
|
689939
|
+
Object.defineProperty(exports2, "initGenerator", { enumerable: true, get: function() {
|
|
689940
|
+
return init_1.initGenerator;
|
|
689941
|
+
} });
|
|
689942
|
+
var generator_1 = require_generator2();
|
|
689943
|
+
Object.defineProperty(exports2, "setupVerdaccio", { enumerable: true, get: function() {
|
|
689944
|
+
return generator_1.setupVerdaccio;
|
|
689945
|
+
} });
|
|
689946
|
+
var is_valid_variable_1 = require_is_valid_variable2();
|
|
689947
|
+
Object.defineProperty(exports2, "isValidVariable", { enumerable: true, get: function() {
|
|
689948
|
+
return is_valid_variable_1.isValidVariable;
|
|
689949
|
+
} });
|
|
689950
|
+
var lock_file_1 = require("nx/src/plugins/js/lock-file/lock-file");
|
|
689951
|
+
Object.defineProperty(exports2, "createLockFile", { enumerable: true, get: function() {
|
|
689952
|
+
return lock_file_1.createLockFile;
|
|
689953
|
+
} });
|
|
689954
|
+
Object.defineProperty(exports2, "getLockFileName", { enumerable: true, get: function() {
|
|
689955
|
+
return lock_file_1.getLockFileName;
|
|
689956
|
+
} });
|
|
689957
|
+
var create_package_json_1 = require("nx/src/plugins/js/package-json/create-package-json");
|
|
689958
|
+
Object.defineProperty(exports2, "createPackageJson", { enumerable: true, get: function() {
|
|
689959
|
+
return create_package_json_1.createPackageJson;
|
|
689960
|
+
} });
|
|
689961
|
+
}
|
|
689962
|
+
});
|
|
689963
|
+
|
|
689964
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/with-nx/normalize-options.js
|
|
687101
689965
|
var require_normalize_options2 = __commonJS({
|
|
687102
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
689966
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/with-nx/normalize-options.js"(exports2) {
|
|
687103
689967
|
"use strict";
|
|
687104
689968
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
687105
689969
|
exports2.normalizeOptions = normalizeOptions2;
|
|
687106
689970
|
var node_path_1 = require("node:path");
|
|
687107
689971
|
var node_fs_1 = require("node:fs");
|
|
687108
689972
|
var devkit_1 = require("@nx/devkit");
|
|
687109
|
-
var js_1 =
|
|
689973
|
+
var js_1 = require_src5();
|
|
687110
689974
|
function normalizeOptions2(projectRoot, sourceRoot, options) {
|
|
687111
689975
|
if (global.NX_GRAPH_CREATION)
|
|
687112
689976
|
return options;
|
|
@@ -711370,7 +714234,7 @@ ${module_1.builtinModules.filter((name) => !name.startsWith("_") && !name.includ
|
|
|
711370
714234
|
});
|
|
711371
714235
|
|
|
711372
714236
|
// node_modules/.pnpm/ts-node@10.9.2_@swc+core@1.5.29_@swc+helpers@0.5.11__@swc+wasm@1.6.5_@types+node@20.14.11_typescript@5.5.3/node_modules/ts-node/package.json
|
|
711373
|
-
var
|
|
714237
|
+
var require_package9 = __commonJS({
|
|
711374
714238
|
"node_modules/.pnpm/ts-node@10.9.2_@swc+core@1.5.29_@swc+helpers@0.5.11__@swc+wasm@1.6.5_@types+node@20.14.11_typescript@5.5.3/node_modules/ts-node/package.json"(exports2, module2) {
|
|
711375
714239
|
module2.exports = {
|
|
711376
714240
|
name: "ts-node",
|
|
@@ -713865,7 +716729,7 @@ var require_dist4 = __commonJS({
|
|
|
713865
716729
|
return fn2(x5);
|
|
713866
716730
|
};
|
|
713867
716731
|
} : (_6, fn2) => fn2;
|
|
713868
|
-
exports2.VERSION =
|
|
716732
|
+
exports2.VERSION = require_package9().version;
|
|
713869
716733
|
exports2.DEFAULTS = {
|
|
713870
716734
|
cwd: (_a = exports2.env.TS_NODE_CWD) !== null && _a !== void 0 ? _a : exports2.env.TS_NODE_DIR,
|
|
713871
716735
|
emit: (0, util_1.yn)(exports2.env.TS_NODE_EMIT),
|
|
@@ -714569,7 +717433,7 @@ ${sourceMapContent}`;
|
|
|
714569
717433
|
});
|
|
714570
717434
|
|
|
714571
717435
|
// node_modules/.pnpm/postcss-load-config@3.1.4_postcss@8.4.40_ts-node@10.9.2_@swc+core@1.5.29_@swc+helpers@0.5.11__wvawkoe23vu42z6vpefvz3jvie/node_modules/postcss-load-config/src/index.js
|
|
714572
|
-
var
|
|
717436
|
+
var require_src6 = __commonJS({
|
|
714573
717437
|
"node_modules/.pnpm/postcss-load-config@3.1.4_postcss@8.4.40_ts-node@10.9.2_@swc+core@1.5.29_@swc+helpers@0.5.11__wvawkoe23vu42z6vpefvz3jvie/node_modules/postcss-load-config/src/index.js"(exports2, module2) {
|
|
714574
717438
|
"use strict";
|
|
714575
717439
|
var resolve4 = require("path").resolve;
|
|
@@ -720343,7 +723207,7 @@ var require_createICSSRules = __commonJS({
|
|
|
720343
723207
|
});
|
|
720344
723208
|
|
|
720345
723209
|
// node_modules/.pnpm/icss-utils@5.1.0_postcss@8.4.40/node_modules/icss-utils/src/index.js
|
|
720346
|
-
var
|
|
723210
|
+
var require_src7 = __commonJS({
|
|
720347
723211
|
"node_modules/.pnpm/icss-utils@5.1.0_postcss@8.4.40/node_modules/icss-utils/src/index.js"(exports2, module2) {
|
|
720348
723212
|
var replaceValueSymbols = require_replaceValueSymbols();
|
|
720349
723213
|
var replaceSymbols = require_replaceSymbols();
|
|
@@ -720359,12 +723223,12 @@ var require_src6 = __commonJS({
|
|
|
720359
723223
|
});
|
|
720360
723224
|
|
|
720361
723225
|
// node_modules/.pnpm/postcss-modules-local-by-default@4.0.5_postcss@8.4.40/node_modules/postcss-modules-local-by-default/src/index.js
|
|
720362
|
-
var
|
|
723226
|
+
var require_src8 = __commonJS({
|
|
720363
723227
|
"node_modules/.pnpm/postcss-modules-local-by-default@4.0.5_postcss@8.4.40/node_modules/postcss-modules-local-by-default/src/index.js"(exports2, module2) {
|
|
720364
723228
|
"use strict";
|
|
720365
723229
|
var selectorParser = require_dist6();
|
|
720366
723230
|
var valueParser = require_lib40();
|
|
720367
|
-
var { extractICSS } =
|
|
723231
|
+
var { extractICSS } = require_src7();
|
|
720368
723232
|
var isSpacing = (node) => node.type === "combinator" && node.value === " ";
|
|
720369
723233
|
function normalizeNodeArray(nodes) {
|
|
720370
723234
|
const array = [];
|
|
@@ -720869,7 +723733,7 @@ var require_topologicalSort = __commonJS({
|
|
|
720869
723733
|
});
|
|
720870
723734
|
|
|
720871
723735
|
// node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.4.40/node_modules/postcss-modules-extract-imports/src/index.js
|
|
720872
|
-
var
|
|
723736
|
+
var require_src9 = __commonJS({
|
|
720873
723737
|
"node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.4.40/node_modules/postcss-modules-extract-imports/src/index.js"(exports2, module2) {
|
|
720874
723738
|
var topologicalSort = require_topologicalSort();
|
|
720875
723739
|
var matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
@@ -721020,7 +723884,7 @@ var require_src8 = __commonJS({
|
|
|
721020
723884
|
});
|
|
721021
723885
|
|
|
721022
723886
|
// node_modules/.pnpm/postcss-modules-scope@3.2.0_postcss@8.4.40/node_modules/postcss-modules-scope/src/index.js
|
|
721023
|
-
var
|
|
723887
|
+
var require_src10 = __commonJS({
|
|
721024
723888
|
"node_modules/.pnpm/postcss-modules-scope@3.2.0_postcss@8.4.40/node_modules/postcss-modules-scope/src/index.js"(exports2, module2) {
|
|
721025
723889
|
"use strict";
|
|
721026
723890
|
var selectorParser = require_dist6();
|
|
@@ -721299,10 +724163,10 @@ ${rule}`);
|
|
|
721299
724163
|
});
|
|
721300
724164
|
|
|
721301
724165
|
// node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.4.40/node_modules/postcss-modules-values/src/index.js
|
|
721302
|
-
var
|
|
724166
|
+
var require_src11 = __commonJS({
|
|
721303
724167
|
"node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.4.40/node_modules/postcss-modules-values/src/index.js"(exports2, module2) {
|
|
721304
724168
|
"use strict";
|
|
721305
|
-
var ICSSUtils =
|
|
724169
|
+
var ICSSUtils = require_src7();
|
|
721306
724170
|
var matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
721307
724171
|
var matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
|
|
721308
724172
|
var matchImport = /^([\w-]+)(?:\s+as\s+([\w-]+))?/;
|
|
@@ -721422,13 +724286,13 @@ var require_behaviours = __commonJS({
|
|
|
721422
724286
|
exports2.behaviours = void 0;
|
|
721423
724287
|
exports2.getDefaultPlugins = getDefaultPlugins;
|
|
721424
724288
|
exports2.isValidBehaviour = isValidBehaviour;
|
|
721425
|
-
var _postcssModulesLocalByDefault =
|
|
724289
|
+
var _postcssModulesLocalByDefault = require_src8();
|
|
721426
724290
|
var _postcssModulesLocalByDefault2 = _interopRequireDefault(_postcssModulesLocalByDefault);
|
|
721427
|
-
var _postcssModulesExtractImports =
|
|
724291
|
+
var _postcssModulesExtractImports = require_src9();
|
|
721428
724292
|
var _postcssModulesExtractImports2 = _interopRequireDefault(_postcssModulesExtractImports);
|
|
721429
|
-
var _postcssModulesScope =
|
|
724293
|
+
var _postcssModulesScope = require_src10();
|
|
721430
724294
|
var _postcssModulesScope2 = _interopRequireDefault(_postcssModulesScope);
|
|
721431
|
-
var _postcssModulesValues =
|
|
724295
|
+
var _postcssModulesValues = require_src11();
|
|
721432
724296
|
var _postcssModulesValues2 = _interopRequireDefault(_postcssModulesValues);
|
|
721433
724297
|
function _interopRequireDefault(obj) {
|
|
721434
724298
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -723464,7 +726328,7 @@ var require_commentParser = __commonJS({
|
|
|
723464
726328
|
});
|
|
723465
726329
|
|
|
723466
726330
|
// node_modules/.pnpm/postcss-discard-comments@5.1.2_postcss@8.4.40/node_modules/postcss-discard-comments/src/index.js
|
|
723467
|
-
var
|
|
726331
|
+
var require_src12 = __commonJS({
|
|
723468
726332
|
"node_modules/.pnpm/postcss-discard-comments@5.1.2_postcss@8.4.40/node_modules/postcss-discard-comments/src/index.js"(exports2, module2) {
|
|
723469
726333
|
"use strict";
|
|
723470
726334
|
var CommentRemover = require_commentRemover();
|
|
@@ -728219,7 +731083,7 @@ var require_toInitial = __commonJS({
|
|
|
728219
731083
|
});
|
|
728220
731084
|
|
|
728221
731085
|
// node_modules/.pnpm/postcss-reduce-initial@5.1.2_postcss@8.4.40/node_modules/postcss-reduce-initial/src/index.js
|
|
728222
|
-
var
|
|
731086
|
+
var require_src13 = __commonJS({
|
|
728223
731087
|
"node_modules/.pnpm/postcss-reduce-initial@5.1.2_postcss@8.4.40/node_modules/postcss-reduce-initial/src/index.js"(exports2, module2) {
|
|
728224
731088
|
"use strict";
|
|
728225
731089
|
var browserslist = require_browserslist();
|
|
@@ -728356,7 +731220,7 @@ var require_sameParent = __commonJS({
|
|
|
728356
731220
|
});
|
|
728357
731221
|
|
|
728358
731222
|
// node_modules/.pnpm/cssnano-utils@3.1.0_postcss@8.4.40/node_modules/cssnano-utils/src/index.js
|
|
728359
|
-
var
|
|
731223
|
+
var require_src14 = __commonJS({
|
|
728360
731224
|
"node_modules/.pnpm/cssnano-utils@3.1.0_postcss@8.4.40/node_modules/cssnano-utils/src/index.js"(exports2, module2) {
|
|
728361
731225
|
"use strict";
|
|
728362
731226
|
var rawCache = require_rawCache();
|
|
@@ -728622,11 +731486,11 @@ var require_isColorStop = __commonJS({
|
|
|
728622
731486
|
});
|
|
728623
731487
|
|
|
728624
731488
|
// node_modules/.pnpm/postcss-minify-gradients@5.1.1_postcss@8.4.40/node_modules/postcss-minify-gradients/src/index.js
|
|
728625
|
-
var
|
|
731489
|
+
var require_src15 = __commonJS({
|
|
728626
731490
|
"node_modules/.pnpm/postcss-minify-gradients@5.1.1_postcss@8.4.40/node_modules/postcss-minify-gradients/src/index.js"(exports2, module2) {
|
|
728627
731491
|
"use strict";
|
|
728628
731492
|
var valueParser = require_lib40();
|
|
728629
|
-
var { getArguments } =
|
|
731493
|
+
var { getArguments } = require_src14();
|
|
728630
731494
|
var isColorStop = require_isColorStop();
|
|
728631
731495
|
var angles = {
|
|
728632
731496
|
top: "0deg",
|
|
@@ -754548,7 +757412,7 @@ var require_walker = __commonJS({
|
|
|
754548
757412
|
});
|
|
754549
757413
|
|
|
754550
757414
|
// node_modules/.pnpm/css-tree@1.1.3/node_modules/css-tree/package.json
|
|
754551
|
-
var
|
|
757415
|
+
var require_package10 = __commonJS({
|
|
754552
757416
|
"node_modules/.pnpm/css-tree@1.1.3/node_modules/css-tree/package.json"(exports2, module2) {
|
|
754553
757417
|
module2.exports = {
|
|
754554
757418
|
name: "css-tree",
|
|
@@ -754633,7 +757497,7 @@ var require_syntax = __commonJS({
|
|
|
754633
757497
|
require_walker()
|
|
754634
757498
|
)
|
|
754635
757499
|
);
|
|
754636
|
-
module2.exports.version =
|
|
757500
|
+
module2.exports.version = require_package10().version;
|
|
754637
757501
|
}
|
|
754638
757502
|
});
|
|
754639
757503
|
|
|
@@ -758230,7 +761094,7 @@ var require_compress = __commonJS({
|
|
|
758230
761094
|
});
|
|
758231
761095
|
|
|
758232
761096
|
// node_modules/.pnpm/csso@4.2.0/node_modules/csso/package.json
|
|
758233
|
-
var
|
|
761097
|
+
var require_package11 = __commonJS({
|
|
758234
761098
|
"node_modules/.pnpm/csso@4.2.0/node_modules/csso/package.json"(exports2, module2) {
|
|
758235
761099
|
module2.exports = {
|
|
758236
761100
|
name: "csso",
|
|
@@ -758411,7 +761275,7 @@ var require_lib52 = __commonJS({
|
|
|
758411
761275
|
return minify("declarationList", source, options);
|
|
758412
761276
|
}
|
|
758413
761277
|
module2.exports = {
|
|
758414
|
-
version:
|
|
761278
|
+
version: require_package11().version,
|
|
758415
761279
|
// main methods
|
|
758416
761280
|
minify: minifyStylesheet,
|
|
758417
761281
|
minifyBlock,
|
|
@@ -765443,7 +768307,7 @@ var require_url2 = __commonJS({
|
|
|
765443
768307
|
});
|
|
765444
768308
|
|
|
765445
768309
|
// node_modules/.pnpm/postcss-svgo@5.1.0_postcss@8.4.40/node_modules/postcss-svgo/src/index.js
|
|
765446
|
-
var
|
|
768310
|
+
var require_src16 = __commonJS({
|
|
765447
768311
|
"node_modules/.pnpm/postcss-svgo@5.1.0_postcss@8.4.40/node_modules/postcss-svgo/src/index.js"(exports2, module2) {
|
|
765448
768312
|
"use strict";
|
|
765449
768313
|
var valueParser = require_lib40();
|
|
@@ -765548,7 +768412,7 @@ var require_src15 = __commonJS({
|
|
|
765548
768412
|
});
|
|
765549
768413
|
|
|
765550
768414
|
// node_modules/.pnpm/postcss-reduce-transforms@5.1.0_postcss@8.4.40/node_modules/postcss-reduce-transforms/src/index.js
|
|
765551
|
-
var
|
|
768415
|
+
var require_src17 = __commonJS({
|
|
765552
768416
|
"node_modules/.pnpm/postcss-reduce-transforms@5.1.0_postcss@8.4.40/node_modules/postcss-reduce-transforms/src/index.js"(exports2, module2) {
|
|
765553
768417
|
"use strict";
|
|
765554
768418
|
var valueParser = require_lib40();
|
|
@@ -765809,7 +768673,7 @@ var require_convert = __commonJS({
|
|
|
765809
768673
|
});
|
|
765810
768674
|
|
|
765811
768675
|
// node_modules/.pnpm/postcss-convert-values@5.1.3_postcss@8.4.40/node_modules/postcss-convert-values/src/index.js
|
|
765812
|
-
var
|
|
768676
|
+
var require_src18 = __commonJS({
|
|
765813
768677
|
"node_modules/.pnpm/postcss-convert-values@5.1.3_postcss@8.4.40/node_modules/postcss-convert-values/src/index.js"(exports2, module2) {
|
|
765814
768678
|
"use strict";
|
|
765815
768679
|
var valueParser = require_lib40();
|
|
@@ -768871,7 +771735,7 @@ var require_transform2 = __commonJS({
|
|
|
768871
771735
|
});
|
|
768872
771736
|
|
|
768873
771737
|
// node_modules/.pnpm/postcss-calc@8.2.4_postcss@8.4.40/node_modules/postcss-calc/src/index.js
|
|
768874
|
-
var
|
|
771738
|
+
var require_src19 = __commonJS({
|
|
768875
771739
|
"node_modules/.pnpm/postcss-calc@8.2.4_postcss@8.4.40/node_modules/postcss-calc/src/index.js"(exports2, module2) {
|
|
768876
771740
|
"use strict";
|
|
768877
771741
|
var transform2 = require_transform2();
|
|
@@ -768969,7 +771833,7 @@ var require_minifyColor = __commonJS({
|
|
|
768969
771833
|
});
|
|
768970
771834
|
|
|
768971
771835
|
// node_modules/.pnpm/postcss-colormin@5.3.1_postcss@8.4.40/node_modules/postcss-colormin/src/index.js
|
|
768972
|
-
var
|
|
771836
|
+
var require_src20 = __commonJS({
|
|
768973
771837
|
"node_modules/.pnpm/postcss-colormin@5.3.1_postcss@8.4.40/node_modules/postcss-colormin/src/index.js"(exports2, module2) {
|
|
768974
771838
|
"use strict";
|
|
768975
771839
|
var browserslist = require_browserslist();
|
|
@@ -769218,7 +772082,7 @@ var require_animation2 = __commonJS({
|
|
|
769218
772082
|
"node_modules/.pnpm/postcss-ordered-values@5.1.3_postcss@8.4.40/node_modules/postcss-ordered-values/src/rules/animation.js"(exports2, module2) {
|
|
769219
772083
|
"use strict";
|
|
769220
772084
|
var { unit } = require_lib40();
|
|
769221
|
-
var { getArguments } =
|
|
772085
|
+
var { getArguments } = require_src14();
|
|
769222
772086
|
var addSpace = require_addSpace();
|
|
769223
772087
|
var getValue = require_getValue();
|
|
769224
772088
|
var functions = /* @__PURE__ */ new Set(["steps", "cubic-bezier", "frames"]);
|
|
@@ -769397,7 +772261,7 @@ var require_boxShadow = __commonJS({
|
|
|
769397
772261
|
"node_modules/.pnpm/postcss-ordered-values@5.1.3_postcss@8.4.40/node_modules/postcss-ordered-values/src/rules/boxShadow.js"(exports2, module2) {
|
|
769398
772262
|
"use strict";
|
|
769399
772263
|
var { unit } = require_lib40();
|
|
769400
|
-
var { getArguments } =
|
|
772264
|
+
var { getArguments } = require_src14();
|
|
769401
772265
|
var addSpace = require_addSpace();
|
|
769402
772266
|
var getValue = require_getValue();
|
|
769403
772267
|
var mathFunctions = require_mathfunctions();
|
|
@@ -769482,7 +772346,7 @@ var require_transition2 = __commonJS({
|
|
|
769482
772346
|
"node_modules/.pnpm/postcss-ordered-values@5.1.3_postcss@8.4.40/node_modules/postcss-ordered-values/src/rules/transition.js"(exports2, module2) {
|
|
769483
772347
|
"use strict";
|
|
769484
772348
|
var { unit } = require_lib40();
|
|
769485
|
-
var { getArguments } =
|
|
772349
|
+
var { getArguments } = require_src14();
|
|
769486
772350
|
var addSpace = require_addSpace();
|
|
769487
772351
|
var getValue = require_getValue();
|
|
769488
772352
|
var timingFunctions = /* @__PURE__ */ new Set([
|
|
@@ -769712,7 +772576,7 @@ var require_columns = __commonJS({
|
|
|
769712
772576
|
});
|
|
769713
772577
|
|
|
769714
772578
|
// node_modules/.pnpm/postcss-ordered-values@5.1.3_postcss@8.4.40/node_modules/postcss-ordered-values/src/index.js
|
|
769715
|
-
var
|
|
772579
|
+
var require_src21 = __commonJS({
|
|
769716
772580
|
"node_modules/.pnpm/postcss-ordered-values@5.1.3_postcss@8.4.40/node_modules/postcss-ordered-values/src/index.js"(exports2, module2) {
|
|
769717
772581
|
"use strict";
|
|
769718
772582
|
var valueParser = require_lib40();
|
|
@@ -769858,7 +772722,7 @@ var require_canUnquote = __commonJS({
|
|
|
769858
772722
|
});
|
|
769859
772723
|
|
|
769860
772724
|
// node_modules/.pnpm/postcss-minify-selectors@5.2.1_postcss@8.4.40/node_modules/postcss-minify-selectors/src/index.js
|
|
769861
|
-
var
|
|
772725
|
+
var require_src22 = __commonJS({
|
|
769862
772726
|
"node_modules/.pnpm/postcss-minify-selectors@5.2.1_postcss@8.4.40/node_modules/postcss-minify-selectors/src/index.js"(exports2, module2) {
|
|
769863
772727
|
"use strict";
|
|
769864
772728
|
var parser = require_dist6();
|
|
@@ -770048,12 +772912,12 @@ var require_src21 = __commonJS({
|
|
|
770048
772912
|
});
|
|
770049
772913
|
|
|
770050
772914
|
// node_modules/.pnpm/postcss-minify-params@5.1.4_postcss@8.4.40/node_modules/postcss-minify-params/src/index.js
|
|
770051
|
-
var
|
|
772915
|
+
var require_src23 = __commonJS({
|
|
770052
772916
|
"node_modules/.pnpm/postcss-minify-params@5.1.4_postcss@8.4.40/node_modules/postcss-minify-params/src/index.js"(exports2, module2) {
|
|
770053
772917
|
"use strict";
|
|
770054
772918
|
var browserslist = require_browserslist();
|
|
770055
772919
|
var valueParser = require_lib40();
|
|
770056
|
-
var { getArguments } =
|
|
772920
|
+
var { getArguments } = require_src14();
|
|
770057
772921
|
function gcd(a2, b6) {
|
|
770058
772922
|
return b6 ? gcd(b6, a2 % b6) : a2;
|
|
770059
772923
|
}
|
|
@@ -770142,7 +773006,7 @@ var require_src22 = __commonJS({
|
|
|
770142
773006
|
});
|
|
770143
773007
|
|
|
770144
773008
|
// node_modules/.pnpm/postcss-normalize-charset@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-charset/src/index.js
|
|
770145
|
-
var
|
|
773009
|
+
var require_src24 = __commonJS({
|
|
770146
773010
|
"node_modules/.pnpm/postcss-normalize-charset@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-charset/src/index.js"(exports2, module2) {
|
|
770147
773011
|
"use strict";
|
|
770148
773012
|
var charset = "charset";
|
|
@@ -770463,7 +773327,7 @@ var require_minify_font = __commonJS({
|
|
|
770463
773327
|
});
|
|
770464
773328
|
|
|
770465
773329
|
// node_modules/.pnpm/postcss-minify-font-values@5.1.0_postcss@8.4.40/node_modules/postcss-minify-font-values/src/index.js
|
|
770466
|
-
var
|
|
773330
|
+
var require_src25 = __commonJS({
|
|
770467
773331
|
"node_modules/.pnpm/postcss-minify-font-values@5.1.0_postcss@8.4.40/node_modules/postcss-minify-font-values/src/index.js"(exports2, module2) {
|
|
770468
773332
|
"use strict";
|
|
770469
773333
|
var valueParser = require_lib40();
|
|
@@ -770685,7 +773549,7 @@ var require_normalize_url = __commonJS({
|
|
|
770685
773549
|
});
|
|
770686
773550
|
|
|
770687
773551
|
// node_modules/.pnpm/postcss-normalize-url@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-url/src/index.js
|
|
770688
|
-
var
|
|
773552
|
+
var require_src26 = __commonJS({
|
|
770689
773553
|
"node_modules/.pnpm/postcss-normalize-url@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-url/src/index.js"(exports2, module2) {
|
|
770690
773554
|
"use strict";
|
|
770691
773555
|
var path8 = require("path");
|
|
@@ -770920,7 +773784,7 @@ var require_browsers4 = __commonJS({
|
|
|
770920
773784
|
});
|
|
770921
773785
|
|
|
770922
773786
|
// node_modules/.pnpm/stylehacks@5.1.1_postcss@8.4.40/node_modules/stylehacks/src/dictionary/identifiers.js
|
|
770923
|
-
var
|
|
773787
|
+
var require_identifiers4 = __commonJS({
|
|
770924
773788
|
"node_modules/.pnpm/stylehacks@5.1.1_postcss@8.4.40/node_modules/stylehacks/src/dictionary/identifiers.js"(exports2, module2) {
|
|
770925
773789
|
"use strict";
|
|
770926
773790
|
var MEDIA_QUERY = "media query";
|
|
@@ -770961,7 +773825,7 @@ var require_bodyEmpty = __commonJS({
|
|
|
770961
773825
|
var isMixin = require_isMixin();
|
|
770962
773826
|
var BasePlugin = require_plugin4();
|
|
770963
773827
|
var { FF_2 } = require_browsers4();
|
|
770964
|
-
var { SELECTOR } =
|
|
773828
|
+
var { SELECTOR } = require_identifiers4();
|
|
770965
773829
|
var { RULE } = require_postcss2();
|
|
770966
773830
|
var { BODY } = require_tags();
|
|
770967
773831
|
module2.exports = class BodyEmpty extends BasePlugin {
|
|
@@ -771008,7 +773872,7 @@ var require_htmlCombinatorCommentBody = __commonJS({
|
|
|
771008
773872
|
var isMixin = require_isMixin();
|
|
771009
773873
|
var BasePlugin = require_plugin4();
|
|
771010
773874
|
var { IE_5_5, IE_6, IE_7 } = require_browsers4();
|
|
771011
|
-
var { SELECTOR } =
|
|
773875
|
+
var { SELECTOR } = require_identifiers4();
|
|
771012
773876
|
var { RULE } = require_postcss2();
|
|
771013
773877
|
var { BODY, HTML } = require_tags();
|
|
771014
773878
|
module2.exports = class HtmlCombinatorCommentBody extends BasePlugin {
|
|
@@ -771056,7 +773920,7 @@ var require_htmlFirstChild = __commonJS({
|
|
|
771056
773920
|
var isMixin = require_isMixin();
|
|
771057
773921
|
var BasePlugin = require_plugin4();
|
|
771058
773922
|
var { OP_9 } = require_browsers4();
|
|
771059
|
-
var { SELECTOR } =
|
|
773923
|
+
var { SELECTOR } = require_identifiers4();
|
|
771060
773924
|
var { RULE } = require_postcss2();
|
|
771061
773925
|
var { HTML } = require_tags();
|
|
771062
773926
|
module2.exports = class HtmlFirstChild extends BasePlugin {
|
|
@@ -771130,7 +773994,7 @@ var require_leadingStar = __commonJS({
|
|
|
771130
773994
|
"use strict";
|
|
771131
773995
|
var BasePlugin = require_plugin4();
|
|
771132
773996
|
var { IE_5_5, IE_6, IE_7 } = require_browsers4();
|
|
771133
|
-
var { PROPERTY } =
|
|
773997
|
+
var { PROPERTY } = require_identifiers4();
|
|
771134
773998
|
var { ATRULE, DECL } = require_postcss2();
|
|
771135
773999
|
var hacks = "!_$_&_*_)_=_%_+_,_._/_`_]_#_~_?_:_|".split("_");
|
|
771136
774000
|
module2.exports = class LeadingStar extends BasePlugin {
|
|
@@ -771185,7 +774049,7 @@ var require_leadingUnderscore = __commonJS({
|
|
|
771185
774049
|
"use strict";
|
|
771186
774050
|
var BasePlugin = require_plugin4();
|
|
771187
774051
|
var { IE_6 } = require_browsers4();
|
|
771188
|
-
var { PROPERTY } =
|
|
774052
|
+
var { PROPERTY } = require_identifiers4();
|
|
771189
774053
|
var { DECL } = require_postcss2();
|
|
771190
774054
|
function vendorPrefix(prop) {
|
|
771191
774055
|
let match2 = prop.match(/^(-\w+-)/);
|
|
@@ -771228,7 +774092,7 @@ var require_mediaSlash0 = __commonJS({
|
|
|
771228
774092
|
"use strict";
|
|
771229
774093
|
var BasePlugin = require_plugin4();
|
|
771230
774094
|
var { IE_8 } = require_browsers4();
|
|
771231
|
-
var { MEDIA_QUERY } =
|
|
774095
|
+
var { MEDIA_QUERY } = require_identifiers4();
|
|
771232
774096
|
var { ATRULE } = require_postcss2();
|
|
771233
774097
|
module2.exports = class MediaSlash0 extends BasePlugin {
|
|
771234
774098
|
/** @param {import('postcss').Result} result */
|
|
@@ -771258,7 +774122,7 @@ var require_mediaSlash0Slash9 = __commonJS({
|
|
|
771258
774122
|
"use strict";
|
|
771259
774123
|
var BasePlugin = require_plugin4();
|
|
771260
774124
|
var { IE_5_5, IE_6, IE_7, IE_8 } = require_browsers4();
|
|
771261
|
-
var { MEDIA_QUERY } =
|
|
774125
|
+
var { MEDIA_QUERY } = require_identifiers4();
|
|
771262
774126
|
var { ATRULE } = require_postcss2();
|
|
771263
774127
|
module2.exports = class MediaSlash0Slash9 extends BasePlugin {
|
|
771264
774128
|
/** @param {import('postcss').Result} result */
|
|
@@ -771288,7 +774152,7 @@ var require_mediaSlash9 = __commonJS({
|
|
|
771288
774152
|
"use strict";
|
|
771289
774153
|
var BasePlugin = require_plugin4();
|
|
771290
774154
|
var { IE_5_5, IE_6, IE_7 } = require_browsers4();
|
|
771291
|
-
var { MEDIA_QUERY } =
|
|
774155
|
+
var { MEDIA_QUERY } = require_identifiers4();
|
|
771292
774156
|
var { ATRULE } = require_postcss2();
|
|
771293
774157
|
module2.exports = class MediaSlash9 extends BasePlugin {
|
|
771294
774158
|
/** @param {import('postcss').Result} result */
|
|
@@ -771318,7 +774182,7 @@ var require_slash9 = __commonJS({
|
|
|
771318
774182
|
"use strict";
|
|
771319
774183
|
var BasePlugin = require_plugin4();
|
|
771320
774184
|
var { IE_6, IE_7, IE_8 } = require_browsers4();
|
|
771321
|
-
var { VALUE } =
|
|
774185
|
+
var { VALUE } = require_identifiers4();
|
|
771322
774186
|
var { DECL } = require_postcss2();
|
|
771323
774187
|
module2.exports = class Slash9 extends BasePlugin {
|
|
771324
774188
|
/** @param {import('postcss').Result=} result */
|
|
@@ -771351,7 +774215,7 @@ var require_starHtml = __commonJS({
|
|
|
771351
774215
|
var isMixin = require_isMixin();
|
|
771352
774216
|
var BasePlugin = require_plugin4();
|
|
771353
774217
|
var { IE_5_5, IE_6 } = require_browsers4();
|
|
771354
|
-
var { SELECTOR } =
|
|
774218
|
+
var { SELECTOR } = require_identifiers4();
|
|
771355
774219
|
var { RULE } = require_postcss2();
|
|
771356
774220
|
var { HTML } = require_tags();
|
|
771357
774221
|
module2.exports = class StarHtml extends BasePlugin {
|
|
@@ -771396,7 +774260,7 @@ var require_trailingSlashComma = __commonJS({
|
|
|
771396
774260
|
var BasePlugin = require_plugin4();
|
|
771397
774261
|
var isMixin = require_isMixin();
|
|
771398
774262
|
var { IE_5_5, IE_6, IE_7 } = require_browsers4();
|
|
771399
|
-
var { SELECTOR } =
|
|
774263
|
+
var { SELECTOR } = require_identifiers4();
|
|
771400
774264
|
var { RULE } = require_postcss2();
|
|
771401
774265
|
module2.exports = class TrailingSlashComma extends BasePlugin {
|
|
771402
774266
|
/** @param {import('postcss').Result=} result */
|
|
@@ -771458,7 +774322,7 @@ var require_plugins8 = __commonJS({
|
|
|
771458
774322
|
});
|
|
771459
774323
|
|
|
771460
774324
|
// node_modules/.pnpm/stylehacks@5.1.1_postcss@8.4.40/node_modules/stylehacks/src/index.js
|
|
771461
|
-
var
|
|
774325
|
+
var require_src27 = __commonJS({
|
|
771462
774326
|
"node_modules/.pnpm/stylehacks@5.1.1_postcss@8.4.40/node_modules/stylehacks/src/index.js"(exports2, module2) {
|
|
771463
774327
|
"use strict";
|
|
771464
774328
|
var browserslist = require_browserslist();
|
|
@@ -772035,7 +774899,7 @@ var require_borders = __commonJS({
|
|
|
772035
774899
|
"node_modules/.pnpm/postcss-merge-longhand@5.1.7_postcss@8.4.40/node_modules/postcss-merge-longhand/src/lib/decl/borders.js"(exports2, module2) {
|
|
772036
774900
|
"use strict";
|
|
772037
774901
|
var { list } = require_postcss();
|
|
772038
|
-
var stylehacks =
|
|
774902
|
+
var stylehacks = require_src27();
|
|
772039
774903
|
var insertCloned = require_insertCloned();
|
|
772040
774904
|
var parseTrbl = require_parseTrbl();
|
|
772041
774905
|
var hasAllProps = require_hasAllProps();
|
|
@@ -772676,7 +775540,7 @@ var require_columns2 = __commonJS({
|
|
|
772676
775540
|
"use strict";
|
|
772677
775541
|
var { list } = require_postcss();
|
|
772678
775542
|
var { unit } = require_lib40();
|
|
772679
|
-
var stylehacks =
|
|
775543
|
+
var stylehacks = require_src27();
|
|
772680
775544
|
var canMerge = require_canMerge();
|
|
772681
775545
|
var getDecls = require_getDecls();
|
|
772682
775546
|
var getValue = require_getValue2();
|
|
@@ -772798,7 +775662,7 @@ var require_mergeValues = __commonJS({
|
|
|
772798
775662
|
var require_boxBase = __commonJS({
|
|
772799
775663
|
"node_modules/.pnpm/postcss-merge-longhand@5.1.7_postcss@8.4.40/node_modules/postcss-merge-longhand/src/lib/decl/boxBase.js"(exports2, module2) {
|
|
772800
775664
|
"use strict";
|
|
772801
|
-
var stylehacks =
|
|
775665
|
+
var stylehacks = require_src27();
|
|
772802
775666
|
var canMerge = require_canMerge();
|
|
772803
775667
|
var getDecls = require_getDecls();
|
|
772804
775668
|
var minifyTrbl = require_minifyTrbl();
|
|
@@ -772917,7 +775781,7 @@ var require_decl = __commonJS({
|
|
|
772917
775781
|
});
|
|
772918
775782
|
|
|
772919
775783
|
// node_modules/.pnpm/postcss-merge-longhand@5.1.7_postcss@8.4.40/node_modules/postcss-merge-longhand/src/index.js
|
|
772920
|
-
var
|
|
775784
|
+
var require_src28 = __commonJS({
|
|
772921
775785
|
"node_modules/.pnpm/postcss-merge-longhand@5.1.7_postcss@8.4.40/node_modules/postcss-merge-longhand/src/index.js"(exports2, module2) {
|
|
772922
775786
|
"use strict";
|
|
772923
775787
|
var processors = require_decl();
|
|
@@ -772940,7 +775804,7 @@ var require_src27 = __commonJS({
|
|
|
772940
775804
|
});
|
|
772941
775805
|
|
|
772942
775806
|
// node_modules/.pnpm/postcss-discard-duplicates@5.1.0_postcss@8.4.40/node_modules/postcss-discard-duplicates/src/index.js
|
|
772943
|
-
var
|
|
775807
|
+
var require_src29 = __commonJS({
|
|
772944
775808
|
"node_modules/.pnpm/postcss-discard-duplicates@5.1.0_postcss@8.4.40/node_modules/postcss-discard-duplicates/src/index.js"(exports2, module2) {
|
|
772945
775809
|
"use strict";
|
|
772946
775810
|
function trimValue(value2) {
|
|
@@ -773066,7 +775930,7 @@ var require_src28 = __commonJS({
|
|
|
773066
775930
|
});
|
|
773067
775931
|
|
|
773068
775932
|
// node_modules/.pnpm/postcss-discard-overridden@5.1.0_postcss@8.4.40/node_modules/postcss-discard-overridden/src/index.js
|
|
773069
|
-
var
|
|
775933
|
+
var require_src30 = __commonJS({
|
|
773070
775934
|
"node_modules/.pnpm/postcss-discard-overridden@5.1.0_postcss@8.4.40/node_modules/postcss-discard-overridden/src/index.js"(exports2, module2) {
|
|
773071
775935
|
"use strict";
|
|
773072
775936
|
var OVERRIDABLE_RULES = /* @__PURE__ */ new Set(["keyframes", "counter-style"]);
|
|
@@ -773147,7 +776011,7 @@ var require_map = __commonJS({
|
|
|
773147
776011
|
});
|
|
773148
776012
|
|
|
773149
776013
|
// node_modules/.pnpm/postcss-normalize-repeat-style@5.1.1_postcss@8.4.40/node_modules/postcss-normalize-repeat-style/src/index.js
|
|
773150
|
-
var
|
|
776014
|
+
var require_src31 = __commonJS({
|
|
773151
776015
|
"node_modules/.pnpm/postcss-normalize-repeat-style@5.1.1_postcss@8.4.40/node_modules/postcss-normalize-repeat-style/src/index.js"(exports2, module2) {
|
|
773152
776016
|
"use strict";
|
|
773153
776017
|
var valueParser = require_lib40();
|
|
@@ -773447,11 +776311,11 @@ var require_ensureCompatibility = __commonJS({
|
|
|
773447
776311
|
});
|
|
773448
776312
|
|
|
773449
776313
|
// node_modules/.pnpm/postcss-merge-rules@5.1.4_postcss@8.4.40/node_modules/postcss-merge-rules/src/index.js
|
|
773450
|
-
var
|
|
776314
|
+
var require_src32 = __commonJS({
|
|
773451
776315
|
"node_modules/.pnpm/postcss-merge-rules@5.1.4_postcss@8.4.40/node_modules/postcss-merge-rules/src/index.js"(exports2, module2) {
|
|
773452
776316
|
"use strict";
|
|
773453
776317
|
var browserslist = require_browserslist();
|
|
773454
|
-
var { sameParent } =
|
|
776318
|
+
var { sameParent } = require_src14();
|
|
773455
776319
|
var {
|
|
773456
776320
|
ensureCompatibility,
|
|
773457
776321
|
sameVendor,
|
|
@@ -773718,7 +776582,7 @@ var require_src31 = __commonJS({
|
|
|
773718
776582
|
});
|
|
773719
776583
|
|
|
773720
776584
|
// node_modules/.pnpm/postcss-discard-empty@5.1.1_postcss@8.4.40/node_modules/postcss-discard-empty/src/index.js
|
|
773721
|
-
var
|
|
776585
|
+
var require_src33 = __commonJS({
|
|
773722
776586
|
"node_modules/.pnpm/postcss-discard-empty@5.1.1_postcss@8.4.40/node_modules/postcss-discard-empty/src/index.js"(exports2, module2) {
|
|
773723
776587
|
"use strict";
|
|
773724
776588
|
var plugin = "postcss-discard-empty";
|
|
@@ -773758,7 +776622,7 @@ var require_src32 = __commonJS({
|
|
|
773758
776622
|
});
|
|
773759
776623
|
|
|
773760
776624
|
// node_modules/.pnpm/postcss-unique-selectors@5.1.1_postcss@8.4.40/node_modules/postcss-unique-selectors/src/index.js
|
|
773761
|
-
var
|
|
776625
|
+
var require_src34 = __commonJS({
|
|
773762
776626
|
"node_modules/.pnpm/postcss-unique-selectors@5.1.1_postcss@8.4.40/node_modules/postcss-unique-selectors/src/index.js"(exports2, module2) {
|
|
773763
776627
|
"use strict";
|
|
773764
776628
|
var selectorParser = require_dist6();
|
|
@@ -773804,7 +776668,7 @@ var require_src33 = __commonJS({
|
|
|
773804
776668
|
});
|
|
773805
776669
|
|
|
773806
776670
|
// node_modules/.pnpm/postcss-normalize-string@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-string/src/index.js
|
|
773807
|
-
var
|
|
776671
|
+
var require_src35 = __commonJS({
|
|
773808
776672
|
"node_modules/.pnpm/postcss-normalize-string@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-string/src/index.js"(exports2, module2) {
|
|
773809
776673
|
"use strict";
|
|
773810
776674
|
var valueParser = require_lib40();
|
|
@@ -774012,7 +776876,7 @@ var require_src34 = __commonJS({
|
|
|
774012
776876
|
});
|
|
774013
776877
|
|
|
774014
776878
|
// node_modules/.pnpm/postcss-normalize-positions@5.1.1_postcss@8.4.40/node_modules/postcss-normalize-positions/src/index.js
|
|
774015
|
-
var
|
|
776879
|
+
var require_src36 = __commonJS({
|
|
774016
776880
|
"node_modules/.pnpm/postcss-normalize-positions@5.1.1_postcss@8.4.40/node_modules/postcss-normalize-positions/src/index.js"(exports2, module2) {
|
|
774017
776881
|
"use strict";
|
|
774018
776882
|
var valueParser = require_lib40();
|
|
@@ -774183,7 +777047,7 @@ var require_src35 = __commonJS({
|
|
|
774183
777047
|
});
|
|
774184
777048
|
|
|
774185
777049
|
// node_modules/.pnpm/postcss-normalize-whitespace@5.1.1_postcss@8.4.40/node_modules/postcss-normalize-whitespace/src/index.js
|
|
774186
|
-
var
|
|
777050
|
+
var require_src37 = __commonJS({
|
|
774187
777051
|
"node_modules/.pnpm/postcss-normalize-whitespace@5.1.1_postcss@8.4.40/node_modules/postcss-normalize-whitespace/src/index.js"(exports2, module2) {
|
|
774188
777052
|
"use strict";
|
|
774189
777053
|
var valueParser = require_lib40();
|
|
@@ -774265,7 +777129,7 @@ var require_src36 = __commonJS({
|
|
|
774265
777129
|
});
|
|
774266
777130
|
|
|
774267
777131
|
// node_modules/.pnpm/postcss-normalize-unicode@5.1.1_postcss@8.4.40/node_modules/postcss-normalize-unicode/src/index.js
|
|
774268
|
-
var
|
|
777132
|
+
var require_src38 = __commonJS({
|
|
774269
777133
|
"node_modules/.pnpm/postcss-normalize-unicode@5.1.1_postcss@8.4.40/node_modules/postcss-normalize-unicode/src/index.js"(exports2, module2) {
|
|
774270
777134
|
"use strict";
|
|
774271
777135
|
var browserslist = require_browserslist();
|
|
@@ -774400,7 +777264,7 @@ var require_map2 = __commonJS({
|
|
|
774400
777264
|
});
|
|
774401
777265
|
|
|
774402
777266
|
// node_modules/.pnpm/postcss-normalize-display-values@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-display-values/src/index.js
|
|
774403
|
-
var
|
|
777267
|
+
var require_src39 = __commonJS({
|
|
774404
777268
|
"node_modules/.pnpm/postcss-normalize-display-values@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-display-values/src/index.js"(exports2, module2) {
|
|
774405
777269
|
"use strict";
|
|
774406
777270
|
var valueParser = require_lib40();
|
|
@@ -774451,7 +777315,7 @@ var require_src38 = __commonJS({
|
|
|
774451
777315
|
});
|
|
774452
777316
|
|
|
774453
777317
|
// node_modules/.pnpm/postcss-normalize-timing-functions@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-timing-functions/src/index.js
|
|
774454
|
-
var
|
|
777318
|
+
var require_src40 = __commonJS({
|
|
774455
777319
|
"node_modules/.pnpm/postcss-normalize-timing-functions@5.1.0_postcss@8.4.40/node_modules/postcss-normalize-timing-functions/src/index.js"(exports2, module2) {
|
|
774456
777320
|
"use strict";
|
|
774457
777321
|
var valueParser = require_lib40();
|
|
@@ -774539,38 +777403,38 @@ var require_src39 = __commonJS({
|
|
|
774539
777403
|
});
|
|
774540
777404
|
|
|
774541
777405
|
// node_modules/.pnpm/cssnano-preset-default@5.2.14_postcss@8.4.40/node_modules/cssnano-preset-default/src/index.js
|
|
774542
|
-
var
|
|
777406
|
+
var require_src41 = __commonJS({
|
|
774543
777407
|
"node_modules/.pnpm/cssnano-preset-default@5.2.14_postcss@8.4.40/node_modules/cssnano-preset-default/src/index.js"(exports2, module2) {
|
|
774544
777408
|
"use strict";
|
|
774545
777409
|
var cssDeclarationSorter = require_main2();
|
|
774546
|
-
var postcssDiscardComments =
|
|
774547
|
-
var postcssReduceInitial =
|
|
774548
|
-
var postcssMinifyGradients =
|
|
774549
|
-
var postcssSvgo =
|
|
774550
|
-
var postcssReduceTransforms =
|
|
774551
|
-
var postcssConvertValues =
|
|
774552
|
-
var postcssCalc =
|
|
774553
|
-
var postcssColormin =
|
|
774554
|
-
var postcssOrderedValues =
|
|
774555
|
-
var postcssMinifySelectors =
|
|
774556
|
-
var postcssMinifyParams =
|
|
774557
|
-
var postcssNormalizeCharset =
|
|
774558
|
-
var postcssMinifyFontValues =
|
|
774559
|
-
var postcssNormalizeUrl =
|
|
774560
|
-
var postcssMergeLonghand =
|
|
774561
|
-
var postcssDiscardDuplicates =
|
|
774562
|
-
var postcssDiscardOverridden =
|
|
774563
|
-
var postcssNormalizeRepeatStyle =
|
|
774564
|
-
var postcssMergeRules =
|
|
774565
|
-
var postcssDiscardEmpty =
|
|
774566
|
-
var postcssUniqueSelectors =
|
|
774567
|
-
var postcssNormalizeString =
|
|
774568
|
-
var postcssNormalizePositions =
|
|
774569
|
-
var postcssNormalizeWhitespace =
|
|
774570
|
-
var postcssNormalizeUnicode =
|
|
774571
|
-
var postcssNormalizeDisplayValues =
|
|
774572
|
-
var postcssNormalizeTimingFunctions =
|
|
774573
|
-
var { rawCache } =
|
|
777410
|
+
var postcssDiscardComments = require_src12();
|
|
777411
|
+
var postcssReduceInitial = require_src13();
|
|
777412
|
+
var postcssMinifyGradients = require_src15();
|
|
777413
|
+
var postcssSvgo = require_src16();
|
|
777414
|
+
var postcssReduceTransforms = require_src17();
|
|
777415
|
+
var postcssConvertValues = require_src18();
|
|
777416
|
+
var postcssCalc = require_src19();
|
|
777417
|
+
var postcssColormin = require_src20();
|
|
777418
|
+
var postcssOrderedValues = require_src21();
|
|
777419
|
+
var postcssMinifySelectors = require_src22();
|
|
777420
|
+
var postcssMinifyParams = require_src23();
|
|
777421
|
+
var postcssNormalizeCharset = require_src24();
|
|
777422
|
+
var postcssMinifyFontValues = require_src25();
|
|
777423
|
+
var postcssNormalizeUrl = require_src26();
|
|
777424
|
+
var postcssMergeLonghand = require_src28();
|
|
777425
|
+
var postcssDiscardDuplicates = require_src29();
|
|
777426
|
+
var postcssDiscardOverridden = require_src30();
|
|
777427
|
+
var postcssNormalizeRepeatStyle = require_src31();
|
|
777428
|
+
var postcssMergeRules = require_src32();
|
|
777429
|
+
var postcssDiscardEmpty = require_src33();
|
|
777430
|
+
var postcssUniqueSelectors = require_src34();
|
|
777431
|
+
var postcssNormalizeString = require_src35();
|
|
777432
|
+
var postcssNormalizePositions = require_src36();
|
|
777433
|
+
var postcssNormalizeWhitespace = require_src37();
|
|
777434
|
+
var postcssNormalizeUnicode = require_src38();
|
|
777435
|
+
var postcssNormalizeDisplayValues = require_src39();
|
|
777436
|
+
var postcssNormalizeTimingFunctions = require_src40();
|
|
777437
|
+
var { rawCache } = require_src14();
|
|
774574
777438
|
var defaultOpts = {
|
|
774575
777439
|
convertValues: {
|
|
774576
777440
|
length: false
|
|
@@ -774622,7 +777486,7 @@ var require_src40 = __commonJS({
|
|
|
774622
777486
|
});
|
|
774623
777487
|
|
|
774624
777488
|
// node_modules/.pnpm/cssnano@5.1.15_postcss@8.4.40/node_modules/cssnano/src/index.js
|
|
774625
|
-
var
|
|
777489
|
+
var require_src42 = __commonJS({
|
|
774626
777490
|
"node_modules/.pnpm/cssnano@5.1.15_postcss@8.4.40/node_modules/cssnano/src/index.js"(exports2, module2) {
|
|
774627
777491
|
"use strict";
|
|
774628
777492
|
var path8 = require("path");
|
|
@@ -774651,7 +777515,7 @@ var require_src41 = __commonJS({
|
|
|
774651
777515
|
return preset.plugins;
|
|
774652
777516
|
}
|
|
774653
777517
|
if (fn2 === "default") {
|
|
774654
|
-
return
|
|
777518
|
+
return require_src41()(options).plugins;
|
|
774655
777519
|
}
|
|
774656
777520
|
if (typeof fn2 === "function") {
|
|
774657
777521
|
return fn2(options).plugins;
|
|
@@ -774747,7 +777611,7 @@ var require_dist8 = __commonJS({
|
|
|
774747
777611
|
var series = require_promise();
|
|
774748
777612
|
var importCwd = require_import_cwd();
|
|
774749
777613
|
var postcss = require_postcss();
|
|
774750
|
-
var findPostcssConfig =
|
|
777614
|
+
var findPostcssConfig = require_src6();
|
|
774751
777615
|
var safeIdentifier = require_safe_identifier();
|
|
774752
777616
|
var pify = require_pify();
|
|
774753
777617
|
var resolve4 = require_resolve2();
|
|
@@ -774971,7 +777835,7 @@ var require_dist8 = __commonJS({
|
|
|
774971
777835
|
})));
|
|
774972
777836
|
}
|
|
774973
777837
|
if (!shouldExtract && options.minimize) {
|
|
774974
|
-
plugins.push(
|
|
777838
|
+
plugins.push(require_src42()(options.minimize));
|
|
774975
777839
|
}
|
|
774976
777840
|
const postcssOptions = _objectSpread2(_objectSpread2(_objectSpread2({}, _this.options.postcss), config.options), {}, {
|
|
774977
777841
|
// Allow overriding `to` for some plugins that are relying on this value
|
|
@@ -775512,7 +778376,7 @@ styleInject(${cssVariableName}${Object.keys(options.inject).length > 0 ? `,${JSO
|
|
|
775512
778376
|
};
|
|
775513
778377
|
cssOptions.to = codeFileName;
|
|
775514
778378
|
}
|
|
775515
|
-
const result = yield
|
|
778379
|
+
const result = yield require_src42()(postcssLoaderOptions.minimize).process(code, cssOptions);
|
|
775516
778380
|
code = result.css;
|
|
775517
778381
|
if (sourceMap === true && result.map && result.map.toString) {
|
|
775518
778382
|
map = result.map.toString();
|
|
@@ -777536,7 +780400,7 @@ var require_lib53 = __commonJS({
|
|
|
777536
780400
|
});
|
|
777537
780401
|
|
|
777538
780402
|
// node_modules/.pnpm/tslib@2.6.3/node_modules/tslib/package.json
|
|
777539
|
-
var
|
|
780403
|
+
var require_package12 = __commonJS({
|
|
777540
780404
|
"node_modules/.pnpm/tslib@2.6.3/node_modules/tslib/package.json"(exports2, module2) {
|
|
777541
780405
|
module2.exports = {
|
|
777542
780406
|
name: "tslib",
|
|
@@ -789283,7 +792147,7 @@ ${JSON.stringify(excluded, void 0, 4)}`);
|
|
|
789283
792147
|
var tslibSource;
|
|
789284
792148
|
var tslibVersion;
|
|
789285
792149
|
try {
|
|
789286
|
-
const tslibPackage =
|
|
792150
|
+
const tslibPackage = require_package12();
|
|
789287
792151
|
const tslibPath = require.resolve("tslib/" + tslibPackage.module);
|
|
789288
792152
|
tslibSource = require$$0$2.readFileSync(tslibPath, "utf8");
|
|
789289
792153
|
tslibVersion = tslibPackage.version;
|
|
@@ -789581,9 +792445,9 @@ ${JSON.stringify(rollupOptions, void 0, 4)}`);
|
|
|
789581
792445
|
}
|
|
789582
792446
|
});
|
|
789583
792447
|
|
|
789584
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
792448
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/with-nx/with-nx.js
|
|
789585
792449
|
var require_with_nx = __commonJS({
|
|
789586
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
792450
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/plugins/with-nx/with-nx.js"(exports2) {
|
|
789587
792451
|
"use strict";
|
|
789588
792452
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
789589
792453
|
exports2.withNx = withNx;
|
|
@@ -789593,7 +792457,7 @@ var require_with_nx = __commonJS({
|
|
|
789593
792457
|
var plugin_babel_1 = require_cjs7();
|
|
789594
792458
|
var autoprefixer = require_autoprefixer();
|
|
789595
792459
|
var devkit_1 = require("@nx/devkit");
|
|
789596
|
-
var buildable_libs_utils_1 =
|
|
792460
|
+
var buildable_libs_utils_1 = require_buildable_libs_utils2();
|
|
789597
792461
|
var plugin_node_resolve_1 = require_cjs8();
|
|
789598
792462
|
var type_definitions_1 = require_type_definitions();
|
|
789599
792463
|
var analyze_1 = require_analyze();
|
|
@@ -789801,9 +792665,9 @@ var require_with_nx = __commonJS({
|
|
|
789801
792665
|
}
|
|
789802
792666
|
});
|
|
789803
792667
|
|
|
789804
|
-
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
792668
|
+
// node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/executors/rollup/rollup.impl.js
|
|
789805
792669
|
var require_rollup_impl = __commonJS({
|
|
789806
|
-
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+
|
|
792670
|
+
"node_modules/.pnpm/@nx+rollup@19.6.2_@babel+core@7.24.7_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+cor_v3oyba3jmengz5byv5hblw7yfm/node_modules/@nx/rollup/src/executors/rollup/rollup.impl.js"(exports2) {
|
|
789807
792671
|
"use strict";
|
|
789808
792672
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
789809
792673
|
exports2.rollupExecutor = rollupExecutor2;
|
|
@@ -789816,7 +792680,7 @@ var require_rollup_impl = __commonJS({
|
|
|
789816
792680
|
var async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
|
|
789817
792681
|
var with_nx_1 = require_with_nx();
|
|
789818
792682
|
var generate_package_json_1 = require_generate_package_json();
|
|
789819
|
-
var buildable_libs_utils_1 =
|
|
792683
|
+
var buildable_libs_utils_1 = require_buildable_libs_utils2();
|
|
789820
792684
|
async function* rollupExecutor2(rawOptions, context) {
|
|
789821
792685
|
process.env.NODE_ENV ??= "production";
|
|
789822
792686
|
const options = (0, normalize_1.normalizeRollupExecutorOptions)(rawOptions, context);
|
|
@@ -814052,9 +816916,9 @@ var require_TypiaProgrammer = __commonJS({
|
|
|
814052
816916
|
}
|
|
814053
816917
|
});
|
|
814054
816918
|
|
|
814055
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
814056
|
-
var
|
|
814057
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
816919
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/package.js
|
|
816920
|
+
var require_package13 = __commonJS({
|
|
816921
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/package.js"(exports2) {
|
|
814058
816922
|
"use strict";
|
|
814059
816923
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
814060
816924
|
exports2.Package = void 0;
|
|
@@ -816287,9 +819151,9 @@ var require_npa = __commonJS({
|
|
|
816287
819151
|
}
|
|
816288
819152
|
});
|
|
816289
819153
|
|
|
816290
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
819154
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/resolve-version-spec.js
|
|
816291
819155
|
var require_resolve_version_spec = __commonJS({
|
|
816292
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
819156
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/resolve-version-spec.js"(exports2) {
|
|
816293
819157
|
"use strict";
|
|
816294
819158
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
816295
819159
|
exports2.resolveVersionSpec = resolveVersionSpec;
|
|
@@ -816315,15 +819179,15 @@ var require_resolve_version_spec = __commonJS({
|
|
|
816315
819179
|
}
|
|
816316
819180
|
});
|
|
816317
819181
|
|
|
816318
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
819182
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies.js
|
|
816319
819183
|
var require_resolve_local_package_dependencies = __commonJS({
|
|
816320
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
819184
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies.js"(exports2) {
|
|
816321
819185
|
"use strict";
|
|
816322
819186
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
816323
819187
|
exports2.resolveLocalPackageDependencies = resolveLocalPackageDependencies2;
|
|
816324
819188
|
var devkit_1 = require("@nx/devkit");
|
|
816325
819189
|
var semver_1 = require_semver2();
|
|
816326
|
-
var package_1 =
|
|
819190
|
+
var package_1 = require_package13();
|
|
816327
819191
|
var resolve_version_spec_1 = require_resolve_version_spec();
|
|
816328
819192
|
function resolveLocalPackageDependencies2(tree, projectGraph, filteredProjects, projectNameToPackageRootMap, resolvePackageRoot, includeAll = false) {
|
|
816329
819193
|
const localPackageDependencies = {};
|
|
@@ -816385,9 +819249,9 @@ var require_resolve_local_package_dependencies = __commonJS({
|
|
|
816385
819249
|
}
|
|
816386
819250
|
});
|
|
816387
819251
|
|
|
816388
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
819252
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/update-lock-file.js
|
|
816389
819253
|
var require_update_lock_file = __commonJS({
|
|
816390
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
819254
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/update-lock-file.js"(exports2) {
|
|
816391
819255
|
"use strict";
|
|
816392
819256
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
816393
819257
|
exports2.updateLockFile = updateLockFile2;
|
|
@@ -826801,7 +829665,13 @@ var import_rollup = __toESM(require_rollup_impl());
|
|
|
826801
829665
|
var import_fs_extra2 = __toESM(require_lib3());
|
|
826802
829666
|
var import_path = require("path");
|
|
826803
829667
|
async function* rollupExecutorFn(options, context, config) {
|
|
826804
|
-
const {
|
|
829668
|
+
const {
|
|
829669
|
+
writeDebug: writeDebug2,
|
|
829670
|
+
writeTrace: writeTrace2,
|
|
829671
|
+
formatLogMessage: formatLogMessage2,
|
|
829672
|
+
findWorkspaceRoot: findWorkspaceRoot2,
|
|
829673
|
+
correctPaths: correctPaths2
|
|
829674
|
+
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
826805
829675
|
if (!context?.projectName || !context?.projectsConfigurations?.projects?.[context.projectName]?.root) {
|
|
826806
829676
|
throw new Error("Nx executor context was invalid");
|
|
826807
829677
|
}
|
|
@@ -826831,7 +829701,7 @@ async function* rollupExecutorFn(options, context, config) {
|
|
|
826831
829701
|
output: "."
|
|
826832
829702
|
});
|
|
826833
829703
|
}
|
|
826834
|
-
if (options.fileLevelInput) {
|
|
829704
|
+
if (options.fileLevelInput !== false) {
|
|
826835
829705
|
const files = await new Glob("**/*.{ts,mts,cts,tsx}", {
|
|
826836
829706
|
absolute: true,
|
|
826837
829707
|
cwd: sourceRoot,
|
|
@@ -826854,7 +829724,13 @@ async function* rollupExecutorFn(options, context, config) {
|
|
|
826854
829724
|
`\u{1F4E6} Running Storm Rollup build process on the ${context?.projectName} project`,
|
|
826855
829725
|
config
|
|
826856
829726
|
);
|
|
826857
|
-
|
|
829727
|
+
const rollupOptions = { ...options, main: options.entry };
|
|
829728
|
+
writeTrace2(
|
|
829729
|
+
`Rollup schema options \u2699\uFE0F
|
|
829730
|
+
${formatLogMessage2(rollupOptions)}`,
|
|
829731
|
+
config
|
|
829732
|
+
);
|
|
829733
|
+
yield* (0, import_rollup.rollupExecutor)(rollupOptions, context);
|
|
826858
829734
|
return {
|
|
826859
829735
|
success: true
|
|
826860
829736
|
};
|
|
@@ -830611,6 +833487,13 @@ var ProjectTagConstants = {
|
|
|
830611
833487
|
},
|
|
830612
833488
|
Provider: {
|
|
830613
833489
|
TAG_ID: "provider"
|
|
833490
|
+
},
|
|
833491
|
+
Registry: {
|
|
833492
|
+
TAG_ID: "registry",
|
|
833493
|
+
CARGO: "cargo",
|
|
833494
|
+
NPM: "npm",
|
|
833495
|
+
CONTAINER: "container",
|
|
833496
|
+
CYCLONE: "cyclone"
|
|
830614
833497
|
}
|
|
830615
833498
|
};
|
|
830616
833499
|
var formatProjectTag = (variant, value2) => {
|