@storm-software/workspace-tools 1.29.0 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +48 -2
- package/index.js +47 -42
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +47 -42
- package/src/executors/tsup/get-config.js +14 -13
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +5 -0
- package/src/executors/tsup-browser/executor.js +47 -42
- package/src/executors/tsup-neutral/executor.js +47 -42
- package/src/executors/tsup-node/executor.js +47 -42
package/package.json
CHANGED
|
@@ -117216,22 +117216,23 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
117216
117216
|
platform,
|
|
117217
117217
|
...rest
|
|
117218
117218
|
}) {
|
|
117219
|
-
const
|
|
117220
|
-
|
|
117221
|
-
|
|
117222
|
-
|
|
117223
|
-
|
|
117224
|
-
|
|
117225
|
-
|
|
117226
|
-
|
|
117227
|
-
|
|
117228
|
-
|
|
117229
|
-
|
|
117230
|
-
|
|
117219
|
+
const entryPoints = [];
|
|
117220
|
+
if (rest.entry) {
|
|
117221
|
+
entryPoints.push(rest.entry);
|
|
117222
|
+
}
|
|
117223
|
+
if (rest.packageAll !== false) {
|
|
117224
|
+
entryPoints.push((0, import_devkit.joinPathFragments)(sourceRoot, "**/*.{ts,tsx}"));
|
|
117225
|
+
}
|
|
117226
|
+
if (additionalEntryPoints) {
|
|
117227
|
+
entryPoints.push(...additionalEntryPoints);
|
|
117228
|
+
}
|
|
117229
|
+
const entry = globSync(entryPoints, {
|
|
117230
|
+
withFileTypes: true
|
|
117231
|
+
}).reduce((ret, filePath) => {
|
|
117231
117232
|
let propertyKey = (0, import_devkit.joinPathFragments)(
|
|
117232
117233
|
filePath.path,
|
|
117233
117234
|
removeExtension(filePath.name)
|
|
117234
|
-
).replaceAll(
|
|
117235
|
+
).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(1).replaceAll("\\", "/"), "").replaceAll(sourceRoot.replaceAll("\\", "/"), "").replaceAll(projectRoot.replaceAll("\\", "/"), "");
|
|
117235
117236
|
if (propertyKey) {
|
|
117236
117237
|
while (propertyKey.startsWith("/")) {
|
|
117237
117238
|
propertyKey = propertyKey.substring(1);
|
|
@@ -117357,16 +117358,17 @@ ${Object.keys(options).map(
|
|
|
117357
117358
|
if (implicitDependencies && implicitDependencies.length > 0) {
|
|
117358
117359
|
options.external = implicitDependencies.reduce(
|
|
117359
117360
|
(ret, key) => {
|
|
117360
|
-
if (context.projectsConfigurations.projects[key].
|
|
117361
|
-
const
|
|
117362
|
-
|
|
117363
|
-
|
|
117364
|
-
|
|
117365
|
-
|
|
117366
|
-
|
|
117367
|
-
|
|
117368
|
-
|
|
117369
|
-
|
|
117361
|
+
if (Object.keys(context.projectsConfigurations.projects[key]?.targets).length > 0) {
|
|
117362
|
+
const buildTargetName = Object.keys(
|
|
117363
|
+
context.projectsConfigurations.projects[key].targets
|
|
117364
|
+
).find((name) => name.toLowerCase() === "build");
|
|
117365
|
+
if (buildTargetName && context.projectsConfigurations.projects[key].targets[buildTargetName]?.options?.project) {
|
|
117366
|
+
const packageJson = (0, import_devkit2.readJsonFile)(
|
|
117367
|
+
context.projectsConfigurations.projects[key].targets[buildTargetName].options.project
|
|
117368
|
+
);
|
|
117369
|
+
if (packageJson?.name && !options.external.includes(packageJson.name)) {
|
|
117370
|
+
ret.push(packageJson.name);
|
|
117371
|
+
}
|
|
117370
117372
|
}
|
|
117371
117373
|
}
|
|
117372
117374
|
return ret;
|
|
@@ -117374,7 +117376,7 @@ ${Object.keys(options).map(
|
|
|
117374
117376
|
options.external
|
|
117375
117377
|
);
|
|
117376
117378
|
}
|
|
117377
|
-
|
|
117379
|
+
let externalDependencies = options.external.reduce((acc, name) => {
|
|
117378
117380
|
const externalNode = context.projectGraph.externalNodes[`npm:${name}`];
|
|
117379
117381
|
if (externalNode) {
|
|
117380
117382
|
acc.push({
|
|
@@ -117382,22 +117384,20 @@ ${Object.keys(options).map(
|
|
|
117382
117384
|
outputs: [],
|
|
117383
117385
|
node: externalNode
|
|
117384
117386
|
});
|
|
117385
|
-
} else {
|
|
117386
|
-
const workspaceNode = context.projectGraph.nodes[name];
|
|
117387
|
-
if (workspaceNode) {
|
|
117388
|
-
acc.push({
|
|
117389
|
-
name,
|
|
117390
|
-
outputs: [],
|
|
117391
|
-
node: workspaceNode
|
|
117392
|
-
});
|
|
117393
|
-
}
|
|
117394
117387
|
}
|
|
117395
117388
|
return acc;
|
|
117396
117389
|
}, []);
|
|
117397
|
-
|
|
117398
|
-
|
|
117399
|
-
|
|
117400
|
-
|
|
117390
|
+
externalDependencies = implicitDependencies.reduce((acc, name) => {
|
|
117391
|
+
const internalNode = context.projectGraph.nodes[name];
|
|
117392
|
+
if (internalNode) {
|
|
117393
|
+
acc.push({
|
|
117394
|
+
name,
|
|
117395
|
+
outputs: [],
|
|
117396
|
+
node: internalNode
|
|
117397
|
+
});
|
|
117398
|
+
}
|
|
117399
|
+
return acc;
|
|
117400
|
+
}, externalDependencies);
|
|
117401
117401
|
if (options.bundle === false) {
|
|
117402
117402
|
for (const thirdPartyDependency of (0, import_get_extra_dependencies.getExtraDependencies)(
|
|
117403
117403
|
context.projectName,
|
|
@@ -117410,6 +117410,10 @@ ${externalDependencies.map((dep) => {
|
|
|
117410
117410
|
}
|
|
117411
117411
|
}
|
|
117412
117412
|
}
|
|
117413
|
+
console.log(`Building with the following dependencies marked as external:
|
|
117414
|
+
${externalDependencies.map((dep) => {
|
|
117415
|
+
return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
|
|
117416
|
+
}).join("\n")}`);
|
|
117413
117417
|
const prettierOptions = {
|
|
117414
117418
|
plugins: ["prettier-plugin-packagejson"],
|
|
117415
117419
|
trailingComma: "none",
|
|
@@ -117452,20 +117456,20 @@ ${externalDependencies.map((dep) => {
|
|
|
117452
117456
|
default: "./dist/modern/index.cjs"
|
|
117453
117457
|
},
|
|
117454
117458
|
default: {
|
|
117455
|
-
types: "./dist/modern
|
|
117456
|
-
default: "./dist/modern
|
|
117459
|
+
types: "./dist/modern/index.d.ts",
|
|
117460
|
+
default: "./dist/modern/index.js"
|
|
117457
117461
|
},
|
|
117458
117462
|
"./*": {
|
|
117459
117463
|
"import": {
|
|
117460
|
-
types: "./dist/modern
|
|
117464
|
+
types: "./dist/modern/index.d.ts",
|
|
117461
117465
|
default: "./dist/modern/**/*.js"
|
|
117462
117466
|
},
|
|
117463
117467
|
require: {
|
|
117464
|
-
types: "./dist/modern
|
|
117468
|
+
types: "./dist/modern/index.d.cts",
|
|
117465
117469
|
default: "./dist/modern/**/*.cjs"
|
|
117466
117470
|
},
|
|
117467
117471
|
"default": {
|
|
117468
|
-
types: "./dist/modern
|
|
117472
|
+
types: "./dist/modern/index.d.ts",
|
|
117469
117473
|
default: "./dist/modern/**/*.js"
|
|
117470
117474
|
}
|
|
117471
117475
|
},
|
|
@@ -117691,6 +117695,7 @@ var applyDefaultOptions = (options) => {
|
|
|
117691
117695
|
options.apiReport ??= true;
|
|
117692
117696
|
options.docModel ??= true;
|
|
117693
117697
|
options.tsdocMetadata ??= true;
|
|
117698
|
+
options.packageAll ??= true;
|
|
117694
117699
|
options.define ??= {};
|
|
117695
117700
|
options.env ??= {};
|
|
117696
117701
|
options.verbose ??= !!process.env.CI;
|
|
@@ -88613,22 +88613,23 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
88613
88613
|
platform,
|
|
88614
88614
|
...rest
|
|
88615
88615
|
}) {
|
|
88616
|
-
const
|
|
88617
|
-
|
|
88618
|
-
|
|
88619
|
-
|
|
88620
|
-
|
|
88621
|
-
|
|
88622
|
-
|
|
88623
|
-
|
|
88624
|
-
|
|
88625
|
-
|
|
88626
|
-
|
|
88627
|
-
|
|
88616
|
+
const entryPoints = [];
|
|
88617
|
+
if (rest.entry) {
|
|
88618
|
+
entryPoints.push(rest.entry);
|
|
88619
|
+
}
|
|
88620
|
+
if (rest.packageAll !== false) {
|
|
88621
|
+
entryPoints.push((0, import_devkit.joinPathFragments)(sourceRoot, "**/*.{ts,tsx}"));
|
|
88622
|
+
}
|
|
88623
|
+
if (additionalEntryPoints) {
|
|
88624
|
+
entryPoints.push(...additionalEntryPoints);
|
|
88625
|
+
}
|
|
88626
|
+
const entry = globSync(entryPoints, {
|
|
88627
|
+
withFileTypes: true
|
|
88628
|
+
}).reduce((ret, filePath) => {
|
|
88628
88629
|
let propertyKey = (0, import_devkit.joinPathFragments)(
|
|
88629
88630
|
filePath.path,
|
|
88630
88631
|
removeExtension(filePath.name)
|
|
88631
|
-
).replaceAll(
|
|
88632
|
+
).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(1).replaceAll("\\", "/"), "").replaceAll(sourceRoot.replaceAll("\\", "/"), "").replaceAll(projectRoot.replaceAll("\\", "/"), "");
|
|
88632
88633
|
if (propertyKey) {
|
|
88633
88634
|
while (propertyKey.startsWith("/")) {
|
|
88634
88635
|
propertyKey = propertyKey.substring(1);
|
|
@@ -71,6 +71,11 @@
|
|
|
71
71
|
"description": "Should the source files be added to the distribution folder in an `src` directory.",
|
|
72
72
|
"default": false
|
|
73
73
|
},
|
|
74
|
+
"packageAll": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"description": "Should the build run for each file contained in the package individually.",
|
|
77
|
+
"default": true
|
|
78
|
+
},
|
|
74
79
|
"generatePackageJson": {
|
|
75
80
|
"type": "boolean",
|
|
76
81
|
"description": "Should a package.json file be generated in the output folder or should the existing one be copied in.",
|
|
@@ -117247,22 +117247,23 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
117247
117247
|
platform,
|
|
117248
117248
|
...rest
|
|
117249
117249
|
}) {
|
|
117250
|
-
const
|
|
117251
|
-
|
|
117252
|
-
|
|
117253
|
-
|
|
117254
|
-
|
|
117255
|
-
|
|
117256
|
-
|
|
117257
|
-
|
|
117258
|
-
|
|
117259
|
-
|
|
117260
|
-
|
|
117261
|
-
|
|
117250
|
+
const entryPoints = [];
|
|
117251
|
+
if (rest.entry) {
|
|
117252
|
+
entryPoints.push(rest.entry);
|
|
117253
|
+
}
|
|
117254
|
+
if (rest.packageAll !== false) {
|
|
117255
|
+
entryPoints.push((0, import_devkit.joinPathFragments)(sourceRoot, "**/*.{ts,tsx}"));
|
|
117256
|
+
}
|
|
117257
|
+
if (additionalEntryPoints) {
|
|
117258
|
+
entryPoints.push(...additionalEntryPoints);
|
|
117259
|
+
}
|
|
117260
|
+
const entry = globSync(entryPoints, {
|
|
117261
|
+
withFileTypes: true
|
|
117262
|
+
}).reduce((ret, filePath) => {
|
|
117262
117263
|
let propertyKey = (0, import_devkit.joinPathFragments)(
|
|
117263
117264
|
filePath.path,
|
|
117264
117265
|
removeExtension(filePath.name)
|
|
117265
|
-
).replaceAll(
|
|
117266
|
+
).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(1).replaceAll("\\", "/"), "").replaceAll(sourceRoot.replaceAll("\\", "/"), "").replaceAll(projectRoot.replaceAll("\\", "/"), "");
|
|
117266
117267
|
if (propertyKey) {
|
|
117267
117268
|
while (propertyKey.startsWith("/")) {
|
|
117268
117269
|
propertyKey = propertyKey.substring(1);
|
|
@@ -117388,16 +117389,17 @@ ${Object.keys(options).map(
|
|
|
117388
117389
|
if (implicitDependencies && implicitDependencies.length > 0) {
|
|
117389
117390
|
options.external = implicitDependencies.reduce(
|
|
117390
117391
|
(ret, key) => {
|
|
117391
|
-
if (context.projectsConfigurations.projects[key].
|
|
117392
|
-
const
|
|
117393
|
-
|
|
117394
|
-
|
|
117395
|
-
|
|
117396
|
-
|
|
117397
|
-
|
|
117398
|
-
|
|
117399
|
-
|
|
117400
|
-
|
|
117392
|
+
if (Object.keys(context.projectsConfigurations.projects[key]?.targets).length > 0) {
|
|
117393
|
+
const buildTargetName = Object.keys(
|
|
117394
|
+
context.projectsConfigurations.projects[key].targets
|
|
117395
|
+
).find((name) => name.toLowerCase() === "build");
|
|
117396
|
+
if (buildTargetName && context.projectsConfigurations.projects[key].targets[buildTargetName]?.options?.project) {
|
|
117397
|
+
const packageJson = (0, import_devkit2.readJsonFile)(
|
|
117398
|
+
context.projectsConfigurations.projects[key].targets[buildTargetName].options.project
|
|
117399
|
+
);
|
|
117400
|
+
if (packageJson?.name && !options.external.includes(packageJson.name)) {
|
|
117401
|
+
ret.push(packageJson.name);
|
|
117402
|
+
}
|
|
117401
117403
|
}
|
|
117402
117404
|
}
|
|
117403
117405
|
return ret;
|
|
@@ -117405,7 +117407,7 @@ ${Object.keys(options).map(
|
|
|
117405
117407
|
options.external
|
|
117406
117408
|
);
|
|
117407
117409
|
}
|
|
117408
|
-
|
|
117410
|
+
let externalDependencies = options.external.reduce((acc, name) => {
|
|
117409
117411
|
const externalNode = context.projectGraph.externalNodes[`npm:${name}`];
|
|
117410
117412
|
if (externalNode) {
|
|
117411
117413
|
acc.push({
|
|
@@ -117413,22 +117415,20 @@ ${Object.keys(options).map(
|
|
|
117413
117415
|
outputs: [],
|
|
117414
117416
|
node: externalNode
|
|
117415
117417
|
});
|
|
117416
|
-
} else {
|
|
117417
|
-
const workspaceNode = context.projectGraph.nodes[name];
|
|
117418
|
-
if (workspaceNode) {
|
|
117419
|
-
acc.push({
|
|
117420
|
-
name,
|
|
117421
|
-
outputs: [],
|
|
117422
|
-
node: workspaceNode
|
|
117423
|
-
});
|
|
117424
|
-
}
|
|
117425
117418
|
}
|
|
117426
117419
|
return acc;
|
|
117427
117420
|
}, []);
|
|
117428
|
-
|
|
117429
|
-
|
|
117430
|
-
|
|
117431
|
-
|
|
117421
|
+
externalDependencies = implicitDependencies.reduce((acc, name) => {
|
|
117422
|
+
const internalNode = context.projectGraph.nodes[name];
|
|
117423
|
+
if (internalNode) {
|
|
117424
|
+
acc.push({
|
|
117425
|
+
name,
|
|
117426
|
+
outputs: [],
|
|
117427
|
+
node: internalNode
|
|
117428
|
+
});
|
|
117429
|
+
}
|
|
117430
|
+
return acc;
|
|
117431
|
+
}, externalDependencies);
|
|
117432
117432
|
if (options.bundle === false) {
|
|
117433
117433
|
for (const thirdPartyDependency of (0, import_get_extra_dependencies.getExtraDependencies)(
|
|
117434
117434
|
context.projectName,
|
|
@@ -117441,6 +117441,10 @@ ${externalDependencies.map((dep) => {
|
|
|
117441
117441
|
}
|
|
117442
117442
|
}
|
|
117443
117443
|
}
|
|
117444
|
+
console.log(`Building with the following dependencies marked as external:
|
|
117445
|
+
${externalDependencies.map((dep) => {
|
|
117446
|
+
return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
|
|
117447
|
+
}).join("\n")}`);
|
|
117444
117448
|
const prettierOptions = {
|
|
117445
117449
|
plugins: ["prettier-plugin-packagejson"],
|
|
117446
117450
|
trailingComma: "none",
|
|
@@ -117483,20 +117487,20 @@ ${externalDependencies.map((dep) => {
|
|
|
117483
117487
|
default: "./dist/modern/index.cjs"
|
|
117484
117488
|
},
|
|
117485
117489
|
default: {
|
|
117486
|
-
types: "./dist/modern
|
|
117487
|
-
default: "./dist/modern
|
|
117490
|
+
types: "./dist/modern/index.d.ts",
|
|
117491
|
+
default: "./dist/modern/index.js"
|
|
117488
117492
|
},
|
|
117489
117493
|
"./*": {
|
|
117490
117494
|
"import": {
|
|
117491
|
-
types: "./dist/modern
|
|
117495
|
+
types: "./dist/modern/index.d.ts",
|
|
117492
117496
|
default: "./dist/modern/**/*.js"
|
|
117493
117497
|
},
|
|
117494
117498
|
require: {
|
|
117495
|
-
types: "./dist/modern
|
|
117499
|
+
types: "./dist/modern/index.d.cts",
|
|
117496
117500
|
default: "./dist/modern/**/*.cjs"
|
|
117497
117501
|
},
|
|
117498
117502
|
"default": {
|
|
117499
|
-
types: "./dist/modern
|
|
117503
|
+
types: "./dist/modern/index.d.ts",
|
|
117500
117504
|
default: "./dist/modern/**/*.js"
|
|
117501
117505
|
}
|
|
117502
117506
|
},
|
|
@@ -117722,6 +117726,7 @@ var applyDefaultOptions = (options) => {
|
|
|
117722
117726
|
options.apiReport ??= true;
|
|
117723
117727
|
options.docModel ??= true;
|
|
117724
117728
|
options.tsdocMetadata ??= true;
|
|
117729
|
+
options.packageAll ??= true;
|
|
117725
117730
|
options.define ??= {};
|
|
117726
117731
|
options.env ??= {};
|
|
117727
117732
|
options.verbose ??= !!process.env.CI;
|
|
@@ -117247,22 +117247,23 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
117247
117247
|
platform,
|
|
117248
117248
|
...rest
|
|
117249
117249
|
}) {
|
|
117250
|
-
const
|
|
117251
|
-
|
|
117252
|
-
|
|
117253
|
-
|
|
117254
|
-
|
|
117255
|
-
|
|
117256
|
-
|
|
117257
|
-
|
|
117258
|
-
|
|
117259
|
-
|
|
117260
|
-
|
|
117261
|
-
|
|
117250
|
+
const entryPoints = [];
|
|
117251
|
+
if (rest.entry) {
|
|
117252
|
+
entryPoints.push(rest.entry);
|
|
117253
|
+
}
|
|
117254
|
+
if (rest.packageAll !== false) {
|
|
117255
|
+
entryPoints.push((0, import_devkit.joinPathFragments)(sourceRoot, "**/*.{ts,tsx}"));
|
|
117256
|
+
}
|
|
117257
|
+
if (additionalEntryPoints) {
|
|
117258
|
+
entryPoints.push(...additionalEntryPoints);
|
|
117259
|
+
}
|
|
117260
|
+
const entry = globSync(entryPoints, {
|
|
117261
|
+
withFileTypes: true
|
|
117262
|
+
}).reduce((ret, filePath) => {
|
|
117262
117263
|
let propertyKey = (0, import_devkit.joinPathFragments)(
|
|
117263
117264
|
filePath.path,
|
|
117264
117265
|
removeExtension(filePath.name)
|
|
117265
|
-
).replaceAll(
|
|
117266
|
+
).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(1).replaceAll("\\", "/"), "").replaceAll(sourceRoot.replaceAll("\\", "/"), "").replaceAll(projectRoot.replaceAll("\\", "/"), "");
|
|
117266
117267
|
if (propertyKey) {
|
|
117267
117268
|
while (propertyKey.startsWith("/")) {
|
|
117268
117269
|
propertyKey = propertyKey.substring(1);
|
|
@@ -117388,16 +117389,17 @@ ${Object.keys(options).map(
|
|
|
117388
117389
|
if (implicitDependencies && implicitDependencies.length > 0) {
|
|
117389
117390
|
options.external = implicitDependencies.reduce(
|
|
117390
117391
|
(ret, key) => {
|
|
117391
|
-
if (context.projectsConfigurations.projects[key].
|
|
117392
|
-
const
|
|
117393
|
-
|
|
117394
|
-
|
|
117395
|
-
|
|
117396
|
-
|
|
117397
|
-
|
|
117398
|
-
|
|
117399
|
-
|
|
117400
|
-
|
|
117392
|
+
if (Object.keys(context.projectsConfigurations.projects[key]?.targets).length > 0) {
|
|
117393
|
+
const buildTargetName = Object.keys(
|
|
117394
|
+
context.projectsConfigurations.projects[key].targets
|
|
117395
|
+
).find((name) => name.toLowerCase() === "build");
|
|
117396
|
+
if (buildTargetName && context.projectsConfigurations.projects[key].targets[buildTargetName]?.options?.project) {
|
|
117397
|
+
const packageJson = (0, import_devkit2.readJsonFile)(
|
|
117398
|
+
context.projectsConfigurations.projects[key].targets[buildTargetName].options.project
|
|
117399
|
+
);
|
|
117400
|
+
if (packageJson?.name && !options.external.includes(packageJson.name)) {
|
|
117401
|
+
ret.push(packageJson.name);
|
|
117402
|
+
}
|
|
117401
117403
|
}
|
|
117402
117404
|
}
|
|
117403
117405
|
return ret;
|
|
@@ -117405,7 +117407,7 @@ ${Object.keys(options).map(
|
|
|
117405
117407
|
options.external
|
|
117406
117408
|
);
|
|
117407
117409
|
}
|
|
117408
|
-
|
|
117410
|
+
let externalDependencies = options.external.reduce((acc, name) => {
|
|
117409
117411
|
const externalNode = context.projectGraph.externalNodes[`npm:${name}`];
|
|
117410
117412
|
if (externalNode) {
|
|
117411
117413
|
acc.push({
|
|
@@ -117413,22 +117415,20 @@ ${Object.keys(options).map(
|
|
|
117413
117415
|
outputs: [],
|
|
117414
117416
|
node: externalNode
|
|
117415
117417
|
});
|
|
117416
|
-
} else {
|
|
117417
|
-
const workspaceNode = context.projectGraph.nodes[name];
|
|
117418
|
-
if (workspaceNode) {
|
|
117419
|
-
acc.push({
|
|
117420
|
-
name,
|
|
117421
|
-
outputs: [],
|
|
117422
|
-
node: workspaceNode
|
|
117423
|
-
});
|
|
117424
|
-
}
|
|
117425
117418
|
}
|
|
117426
117419
|
return acc;
|
|
117427
117420
|
}, []);
|
|
117428
|
-
|
|
117429
|
-
|
|
117430
|
-
|
|
117431
|
-
|
|
117421
|
+
externalDependencies = implicitDependencies.reduce((acc, name) => {
|
|
117422
|
+
const internalNode = context.projectGraph.nodes[name];
|
|
117423
|
+
if (internalNode) {
|
|
117424
|
+
acc.push({
|
|
117425
|
+
name,
|
|
117426
|
+
outputs: [],
|
|
117427
|
+
node: internalNode
|
|
117428
|
+
});
|
|
117429
|
+
}
|
|
117430
|
+
return acc;
|
|
117431
|
+
}, externalDependencies);
|
|
117432
117432
|
if (options.bundle === false) {
|
|
117433
117433
|
for (const thirdPartyDependency of (0, import_get_extra_dependencies.getExtraDependencies)(
|
|
117434
117434
|
context.projectName,
|
|
@@ -117441,6 +117441,10 @@ ${externalDependencies.map((dep) => {
|
|
|
117441
117441
|
}
|
|
117442
117442
|
}
|
|
117443
117443
|
}
|
|
117444
|
+
console.log(`Building with the following dependencies marked as external:
|
|
117445
|
+
${externalDependencies.map((dep) => {
|
|
117446
|
+
return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
|
|
117447
|
+
}).join("\n")}`);
|
|
117444
117448
|
const prettierOptions = {
|
|
117445
117449
|
plugins: ["prettier-plugin-packagejson"],
|
|
117446
117450
|
trailingComma: "none",
|
|
@@ -117483,20 +117487,20 @@ ${externalDependencies.map((dep) => {
|
|
|
117483
117487
|
default: "./dist/modern/index.cjs"
|
|
117484
117488
|
},
|
|
117485
117489
|
default: {
|
|
117486
|
-
types: "./dist/modern
|
|
117487
|
-
default: "./dist/modern
|
|
117490
|
+
types: "./dist/modern/index.d.ts",
|
|
117491
|
+
default: "./dist/modern/index.js"
|
|
117488
117492
|
},
|
|
117489
117493
|
"./*": {
|
|
117490
117494
|
"import": {
|
|
117491
|
-
types: "./dist/modern
|
|
117495
|
+
types: "./dist/modern/index.d.ts",
|
|
117492
117496
|
default: "./dist/modern/**/*.js"
|
|
117493
117497
|
},
|
|
117494
117498
|
require: {
|
|
117495
|
-
types: "./dist/modern
|
|
117499
|
+
types: "./dist/modern/index.d.cts",
|
|
117496
117500
|
default: "./dist/modern/**/*.cjs"
|
|
117497
117501
|
},
|
|
117498
117502
|
"default": {
|
|
117499
|
-
types: "./dist/modern
|
|
117503
|
+
types: "./dist/modern/index.d.ts",
|
|
117500
117504
|
default: "./dist/modern/**/*.js"
|
|
117501
117505
|
}
|
|
117502
117506
|
},
|
|
@@ -117722,6 +117726,7 @@ var applyDefaultOptions = (options) => {
|
|
|
117722
117726
|
options.apiReport ??= true;
|
|
117723
117727
|
options.docModel ??= true;
|
|
117724
117728
|
options.tsdocMetadata ??= true;
|
|
117729
|
+
options.packageAll ??= true;
|
|
117725
117730
|
options.define ??= {};
|
|
117726
117731
|
options.env ??= {};
|
|
117727
117732
|
options.verbose ??= !!process.env.CI;
|