@storm-software/workspace-tools 1.6.27 → 1.6.29
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/index.js +68 -65
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +58 -39
- package/src/executors/tsup/get-config.js +2 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.6.28](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.6.27...workspace-tools-v1.6.28) (2023-11-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Resolved issue with incorrect extensions provided to tsup build config ([46d7dc5](https://github.com/storm-software/storm-ops/commit/46d7dc5835cd49da484e50d6eda7e8013071b72c))
|
|
7
|
+
|
|
8
|
+
## [1.6.27](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.6.26...workspace-tools-v1.6.27) (2023-11-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Update tsup config to package src files in build package ([c6297b5](https://github.com/storm-software/storm-ops/commit/c6297b54a4db28d0737adfa4203a6a6dd9b4565f))
|
|
14
|
+
|
|
1
15
|
## [1.6.26](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.6.25...workspace-tools-v1.6.26) (2023-11-13)
|
|
2
16
|
|
|
3
17
|
|
package/index.js
CHANGED
|
@@ -8734,7 +8734,7 @@ ${lanes.join("\n")}
|
|
|
8734
8734
|
watchFile: watchFile2,
|
|
8735
8735
|
watchDirectory,
|
|
8736
8736
|
resolvePath: (path) => _path.resolve(path),
|
|
8737
|
-
fileExists,
|
|
8737
|
+
fileExists: fileExists2,
|
|
8738
8738
|
directoryExists,
|
|
8739
8739
|
createDirectory(directoryName) {
|
|
8740
8740
|
if (!nodeSystem.directoryExists(directoryName)) {
|
|
@@ -8901,7 +8901,7 @@ ${lanes.join("\n")}
|
|
|
8901
8901
|
if (platform === "win32" || platform === "win64") {
|
|
8902
8902
|
return false;
|
|
8903
8903
|
}
|
|
8904
|
-
return !
|
|
8904
|
+
return !fileExists2(swapCase(__filename));
|
|
8905
8905
|
}
|
|
8906
8906
|
function swapCase(s) {
|
|
8907
8907
|
return s.replace(/\w/g, (ch) => {
|
|
@@ -9057,7 +9057,7 @@ ${lanes.join("\n")}
|
|
|
9057
9057
|
Error.stackTraceLimit = originalStackTraceLimit;
|
|
9058
9058
|
}
|
|
9059
9059
|
}
|
|
9060
|
-
function
|
|
9060
|
+
function fileExists2(path) {
|
|
9061
9061
|
return fileSystemEntryExists(
|
|
9062
9062
|
path,
|
|
9063
9063
|
0
|
|
@@ -126184,7 +126184,7 @@ ${lanes.join("\n")}
|
|
|
126184
126184
|
const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
126185
126185
|
return {
|
|
126186
126186
|
useCaseSensitiveFileNames,
|
|
126187
|
-
fileExists,
|
|
126187
|
+
fileExists: fileExists2,
|
|
126188
126188
|
readFile: (path, encoding) => host.readFile(path, encoding),
|
|
126189
126189
|
directoryExists: host.directoryExists && directoryExists,
|
|
126190
126190
|
getDirectories,
|
|
@@ -126270,7 +126270,7 @@ ${lanes.join("\n")}
|
|
|
126270
126270
|
}
|
|
126271
126271
|
return host.writeFile(fileName, data, writeByteOrderMark);
|
|
126272
126272
|
}
|
|
126273
|
-
function
|
|
126273
|
+
function fileExists2(fileName) {
|
|
126274
126274
|
const path = toPath3(fileName);
|
|
126275
126275
|
const result = getCachedFileSystemEntriesForBaseDir(path);
|
|
126276
126276
|
return result && hasEntry(result.sortedAndCanonicalizedFiles, getCanonicalFileName(getBaseNameOfFileName(fileName))) || host.fileExists(fileName);
|
|
@@ -126379,10 +126379,10 @@ ${lanes.join("\n")}
|
|
|
126379
126379
|
);
|
|
126380
126380
|
}
|
|
126381
126381
|
}
|
|
126382
|
-
function updateFilesOfFileSystemEntry(parentResult, baseName,
|
|
126382
|
+
function updateFilesOfFileSystemEntry(parentResult, baseName, fileExists22) {
|
|
126383
126383
|
const canonicalizedFiles = parentResult.sortedAndCanonicalizedFiles;
|
|
126384
126384
|
const canonicalizedBaseName = getCanonicalFileName(baseName);
|
|
126385
|
-
if (
|
|
126385
|
+
if (fileExists22) {
|
|
126386
126386
|
if (insertSorted(canonicalizedFiles, canonicalizedBaseName, compareStringsCaseSensitive)) {
|
|
126387
126387
|
parentResult.files.push(baseName);
|
|
126388
126388
|
}
|
|
@@ -126689,10 +126689,10 @@ ${lanes.join("\n")}
|
|
|
126689
126689
|
})(WatchLogLevel || {});
|
|
126690
126690
|
}
|
|
126691
126691
|
});
|
|
126692
|
-
function findConfigFile(searchPath,
|
|
126692
|
+
function findConfigFile(searchPath, fileExists2, configName = "tsconfig.json") {
|
|
126693
126693
|
return forEachAncestorDirectory(searchPath, (ancestor) => {
|
|
126694
126694
|
const fileName = combinePaths(ancestor, configName);
|
|
126695
|
-
return
|
|
126695
|
+
return fileExists2(fileName) ? fileName : void 0;
|
|
126696
126696
|
});
|
|
126697
126697
|
}
|
|
126698
126698
|
function resolveTripleslashReference(moduleName, containingFile) {
|
|
@@ -127300,7 +127300,7 @@ ${lanes.join("\n")}
|
|
|
127300
127300
|
}
|
|
127301
127301
|
return { file, pos, end, packageId };
|
|
127302
127302
|
}
|
|
127303
|
-
function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion,
|
|
127303
|
+
function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists2, hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
|
|
127304
127304
|
if (!program || (hasChangedAutomaticTypeDirectiveNames == null ? void 0 : hasChangedAutomaticTypeDirectiveNames()))
|
|
127305
127305
|
return false;
|
|
127306
127306
|
if (!arrayIsEqualTo(program.getRootFileNames(), rootFileNames))
|
|
@@ -127310,7 +127310,7 @@ ${lanes.join("\n")}
|
|
|
127310
127310
|
return false;
|
|
127311
127311
|
if (program.getSourceFiles().some(sourceFileNotUptoDate))
|
|
127312
127312
|
return false;
|
|
127313
|
-
if (program.getMissingFilePaths().some(
|
|
127313
|
+
if (program.getMissingFilePaths().some(fileExists2))
|
|
127314
127314
|
return false;
|
|
127315
127315
|
const currentOptions = program.getCompilerOptions();
|
|
127316
127316
|
if (!compareDataObjects(currentOptions, newOptions))
|
|
@@ -127536,7 +127536,7 @@ ${lanes.join("\n")}
|
|
|
127536
127536
|
let mapFromFileToProjectReferenceRedirects;
|
|
127537
127537
|
let mapFromToProjectReferenceRedirectSource;
|
|
127538
127538
|
const useSourceOfProjectReferenceRedirect = !!((_d = host.useSourceOfProjectReferenceRedirect) == null ? void 0 : _d.call(host)) && !options.disableSourceOfProjectReferenceRedirect;
|
|
127539
|
-
const { onProgramCreateComplete, fileExists, directoryExists } = updateHostForUseSourceOfProjectReferenceRedirect({
|
|
127539
|
+
const { onProgramCreateComplete, fileExists: fileExists2, directoryExists } = updateHostForUseSourceOfProjectReferenceRedirect({
|
|
127540
127540
|
compilerHost: host,
|
|
127541
127541
|
getSymlinkCache,
|
|
127542
127542
|
useSourceOfProjectReferenceRedirect,
|
|
@@ -127753,7 +127753,7 @@ ${lanes.join("\n")}
|
|
|
127753
127753
|
forEachResolvedProjectReference: forEachResolvedProjectReference2,
|
|
127754
127754
|
isSourceOfProjectReferenceRedirect,
|
|
127755
127755
|
emitBuildInfo,
|
|
127756
|
-
fileExists,
|
|
127756
|
+
fileExists: fileExists2,
|
|
127757
127757
|
readFile,
|
|
127758
127758
|
directoryExists,
|
|
127759
127759
|
getSymlinkCache,
|
|
@@ -130451,8 +130451,8 @@ ${lanes.join("\n")}
|
|
|
130451
130451
|
const originalGetDirectories = host.compilerHost.getDirectories;
|
|
130452
130452
|
const originalRealpath = host.compilerHost.realpath;
|
|
130453
130453
|
if (!host.useSourceOfProjectReferenceRedirect)
|
|
130454
|
-
return { onProgramCreateComplete: noop, fileExists };
|
|
130455
|
-
host.compilerHost.fileExists =
|
|
130454
|
+
return { onProgramCreateComplete: noop, fileExists: fileExists2 };
|
|
130455
|
+
host.compilerHost.fileExists = fileExists2;
|
|
130456
130456
|
let directoryExists;
|
|
130457
130457
|
if (originalDirectoryExists) {
|
|
130458
130458
|
directoryExists = host.compilerHost.directoryExists = (path) => {
|
|
@@ -130492,13 +130492,13 @@ ${lanes.join("\n")}
|
|
|
130492
130492
|
return ((_a = host.getSymlinkCache().getSymlinkedFiles()) == null ? void 0 : _a.get(host.toPath(s))) || originalRealpath.call(host.compilerHost, s);
|
|
130493
130493
|
};
|
|
130494
130494
|
}
|
|
130495
|
-
return { onProgramCreateComplete, fileExists, directoryExists };
|
|
130495
|
+
return { onProgramCreateComplete, fileExists: fileExists2, directoryExists };
|
|
130496
130496
|
function onProgramCreateComplete() {
|
|
130497
130497
|
host.compilerHost.fileExists = originalFileExists;
|
|
130498
130498
|
host.compilerHost.directoryExists = originalDirectoryExists;
|
|
130499
130499
|
host.compilerHost.getDirectories = originalGetDirectories;
|
|
130500
130500
|
}
|
|
130501
|
-
function
|
|
130501
|
+
function fileExists2(file) {
|
|
130502
130502
|
if (originalFileExists.call(host.compilerHost, file))
|
|
130503
130503
|
return true;
|
|
130504
130504
|
if (!host.getResolvedProjectReferences())
|
|
@@ -134394,7 +134394,7 @@ ${lanes.join("\n")}
|
|
|
134394
134394
|
compilerHost.getSourceFile = (fileName, ...args) => getVersionedSourceFileByPath(fileName, toPath3(fileName), ...args);
|
|
134395
134395
|
compilerHost.getSourceFileByPath = getVersionedSourceFileByPath;
|
|
134396
134396
|
compilerHost.getNewLine = () => newLine;
|
|
134397
|
-
compilerHost.fileExists =
|
|
134397
|
+
compilerHost.fileExists = fileExists2;
|
|
134398
134398
|
compilerHost.onReleaseOldSourceFile = onReleaseOldSourceFile;
|
|
134399
134399
|
compilerHost.onReleaseParsedCommandLine = onReleaseParsedCommandLine;
|
|
134400
134400
|
compilerHost.toPath = toPath3;
|
|
@@ -134585,7 +134585,7 @@ ${lanes.join("\n")}
|
|
|
134585
134585
|
function isFilePresenceUnknownOnHost(hostSourceFile) {
|
|
134586
134586
|
return typeof hostSourceFile.version === "boolean";
|
|
134587
134587
|
}
|
|
134588
|
-
function
|
|
134588
|
+
function fileExists2(fileName) {
|
|
134589
134589
|
const path = toPath3(fileName);
|
|
134590
134590
|
if (isFileMissingOnHost(sourceFilesCache.get(path))) {
|
|
134591
134591
|
return false;
|
|
@@ -139570,16 +139570,16 @@ ${lanes.join("\n")}
|
|
|
139570
139570
|
}
|
|
139571
139571
|
return true;
|
|
139572
139572
|
}
|
|
139573
|
-
function getMappedLocation(location, sourceMapper,
|
|
139573
|
+
function getMappedLocation(location, sourceMapper, fileExists2) {
|
|
139574
139574
|
const mapsTo = sourceMapper.tryGetSourcePosition(location);
|
|
139575
|
-
return mapsTo && (!
|
|
139575
|
+
return mapsTo && (!fileExists2 || fileExists2(normalizePath(mapsTo.fileName)) ? mapsTo : void 0);
|
|
139576
139576
|
}
|
|
139577
|
-
function getMappedDocumentSpan(documentSpan, sourceMapper,
|
|
139577
|
+
function getMappedDocumentSpan(documentSpan, sourceMapper, fileExists2) {
|
|
139578
139578
|
const { fileName, textSpan } = documentSpan;
|
|
139579
|
-
const newPosition = getMappedLocation({ fileName, pos: textSpan.start }, sourceMapper,
|
|
139579
|
+
const newPosition = getMappedLocation({ fileName, pos: textSpan.start }, sourceMapper, fileExists2);
|
|
139580
139580
|
if (!newPosition)
|
|
139581
139581
|
return void 0;
|
|
139582
|
-
const newEndPosition = getMappedLocation({ fileName, pos: textSpan.start + textSpan.length }, sourceMapper,
|
|
139582
|
+
const newEndPosition = getMappedLocation({ fileName, pos: textSpan.start + textSpan.length }, sourceMapper, fileExists2);
|
|
139583
139583
|
const newLength = newEndPosition ? newEndPosition.pos - newPosition.pos : textSpan.length;
|
|
139584
139584
|
return {
|
|
139585
139585
|
fileName: newPosition.fileName,
|
|
@@ -139589,20 +139589,20 @@ ${lanes.join("\n")}
|
|
|
139589
139589
|
},
|
|
139590
139590
|
originalFileName: documentSpan.fileName,
|
|
139591
139591
|
originalTextSpan: documentSpan.textSpan,
|
|
139592
|
-
contextSpan: getMappedContextSpan(documentSpan, sourceMapper,
|
|
139592
|
+
contextSpan: getMappedContextSpan(documentSpan, sourceMapper, fileExists2),
|
|
139593
139593
|
originalContextSpan: documentSpan.contextSpan
|
|
139594
139594
|
};
|
|
139595
139595
|
}
|
|
139596
|
-
function getMappedContextSpan(documentSpan, sourceMapper,
|
|
139596
|
+
function getMappedContextSpan(documentSpan, sourceMapper, fileExists2) {
|
|
139597
139597
|
const contextSpanStart = documentSpan.contextSpan && getMappedLocation(
|
|
139598
139598
|
{ fileName: documentSpan.fileName, pos: documentSpan.contextSpan.start },
|
|
139599
139599
|
sourceMapper,
|
|
139600
|
-
|
|
139600
|
+
fileExists2
|
|
139601
139601
|
);
|
|
139602
139602
|
const contextSpanEnd = documentSpan.contextSpan && getMappedLocation(
|
|
139603
139603
|
{ fileName: documentSpan.fileName, pos: documentSpan.contextSpan.start + documentSpan.contextSpan.length },
|
|
139604
139604
|
sourceMapper,
|
|
139605
|
-
|
|
139605
|
+
fileExists2
|
|
139606
139606
|
);
|
|
139607
139607
|
return contextSpanStart && contextSpanEnd ? { start: contextSpanStart.pos, length: contextSpanEnd.pos - contextSpanStart.pos } : void 0;
|
|
139608
139608
|
}
|
|
@@ -186631,9 +186631,12 @@ __export(workspace_tools_exports, {
|
|
|
186631
186631
|
module.exports = __toCommonJS(workspace_tools_exports);
|
|
186632
186632
|
|
|
186633
186633
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
186634
|
+
var import_devkit2 = require("@nx/devkit");
|
|
186634
186635
|
var import_get_extra_dependencies = require("@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies");
|
|
186635
186636
|
var import_js = require("@nx/js");
|
|
186636
186637
|
var import_fs_extra = require("fs-extra");
|
|
186638
|
+
var import_project_graph = require("nx/src/project-graph/project-graph");
|
|
186639
|
+
var import_fileutils = require("nx/src/utils/fileutils");
|
|
186637
186640
|
var import_tsup2 = require("tsup");
|
|
186638
186641
|
|
|
186639
186642
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
@@ -186645,7 +186648,7 @@ var import_esbuild_plugin_file_path_extensions = require("esbuild-plugin-file-pa
|
|
|
186645
186648
|
var import_tsup = require("tsup");
|
|
186646
186649
|
|
|
186647
186650
|
// packages/workspace-tools/src/generators/init/init.ts
|
|
186648
|
-
var
|
|
186651
|
+
var import_devkit3 = require("@nx/devkit");
|
|
186649
186652
|
|
|
186650
186653
|
// packages/workspace-tools/src/utils/versions.ts
|
|
186651
186654
|
var tsupVersion = "^7.2.0";
|
|
@@ -186669,7 +186672,7 @@ var pnpmVersion = "8.10.2";
|
|
|
186669
186672
|
|
|
186670
186673
|
// packages/workspace-tools/src/generators/init/init.ts
|
|
186671
186674
|
async function stormInitGenerator(tree, schema) {
|
|
186672
|
-
const task = (0,
|
|
186675
|
+
const task = (0, import_devkit3.addDependenciesToPackageJson)(
|
|
186673
186676
|
tree,
|
|
186674
186677
|
{
|
|
186675
186678
|
"nx": nxVersion,
|
|
@@ -186681,19 +186684,19 @@ async function stormInitGenerator(tree, schema) {
|
|
|
186681
186684
|
{}
|
|
186682
186685
|
);
|
|
186683
186686
|
if (!schema.skipFormat) {
|
|
186684
|
-
await (0,
|
|
186687
|
+
await (0, import_devkit3.formatFiles)(tree);
|
|
186685
186688
|
}
|
|
186686
186689
|
return task;
|
|
186687
186690
|
}
|
|
186688
186691
|
|
|
186689
186692
|
// packages/workspace-tools/src/generators/node-library/generator.ts
|
|
186690
|
-
var
|
|
186693
|
+
var import_devkit5 = require("@nx/devkit");
|
|
186691
186694
|
var import_js2 = require("@nx/js");
|
|
186692
186695
|
var import_init = __toESM(require("@nx/js/src/generators/init/init"));
|
|
186693
186696
|
var import_generator = __toESM(require("@nx/js/src/generators/setup-verdaccio/generator"));
|
|
186694
186697
|
|
|
186695
186698
|
// packages/workspace-tools/src/generators/node-library/normalize-options.ts
|
|
186696
|
-
var
|
|
186699
|
+
var import_devkit4 = require("@nx/devkit");
|
|
186697
186700
|
var import_project_name_and_root_utils = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
186698
186701
|
async function normalizeOptions(tree, options) {
|
|
186699
186702
|
if (options.publishable) {
|
|
@@ -186707,7 +186710,7 @@ async function normalizeOptions(tree, options) {
|
|
|
186707
186710
|
if (options.publishable === false && options.buildable === false) {
|
|
186708
186711
|
bundler = "none";
|
|
186709
186712
|
}
|
|
186710
|
-
const { Linter } = (0,
|
|
186713
|
+
const { Linter } = (0, import_devkit4.ensurePackage)("@nx/eslint", nxVersion);
|
|
186711
186714
|
const {
|
|
186712
186715
|
projectName,
|
|
186713
186716
|
names: projectNames,
|
|
@@ -186723,7 +186726,7 @@ async function normalizeOptions(tree, options) {
|
|
|
186723
186726
|
callingGenerator: "@nx/js:library"
|
|
186724
186727
|
});
|
|
186725
186728
|
options.rootProject = projectRoot === ".";
|
|
186726
|
-
const normalized = (0,
|
|
186729
|
+
const normalized = (0, import_devkit4.names)(projectNames.projectFileName);
|
|
186727
186730
|
const fileName = normalized.fileName;
|
|
186728
186731
|
return {
|
|
186729
186732
|
js: false,
|
|
@@ -186751,7 +186754,7 @@ async function normalizeOptions(tree, options) {
|
|
|
186751
186754
|
|
|
186752
186755
|
// packages/workspace-tools/src/generators/node-library/generator.ts
|
|
186753
186756
|
async function nodeLibraryGenerator(tree, schema) {
|
|
186754
|
-
const filesDir = (0,
|
|
186757
|
+
const filesDir = (0, import_devkit5.joinPathFragments)(__dirname, "./files");
|
|
186755
186758
|
const options = await normalizeOptions(tree, schema);
|
|
186756
186759
|
const tasks = [];
|
|
186757
186760
|
tasks.push(
|
|
@@ -186761,7 +186764,7 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186761
186764
|
})
|
|
186762
186765
|
);
|
|
186763
186766
|
tasks.push(
|
|
186764
|
-
(0,
|
|
186767
|
+
(0, import_devkit5.addDependenciesToPackageJson)(
|
|
186765
186768
|
tree,
|
|
186766
186769
|
{},
|
|
186767
186770
|
{
|
|
@@ -186774,11 +186777,11 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186774
186777
|
if (options.publishable) {
|
|
186775
186778
|
tasks.push(await (0, import_generator.default)(tree, { ...options, skipFormat: true }));
|
|
186776
186779
|
}
|
|
186777
|
-
const { className, name, propertyName } = (0,
|
|
186780
|
+
const { className, name, propertyName } = (0, import_devkit5.names)(
|
|
186778
186781
|
options.projectNames.projectFileName
|
|
186779
186782
|
);
|
|
186780
186783
|
createProjectTsConfigJson(tree, options);
|
|
186781
|
-
(0,
|
|
186784
|
+
(0, import_devkit5.addProjectConfiguration)(tree, options.name, {
|
|
186782
186785
|
root: options.directory,
|
|
186783
186786
|
projectType: "library",
|
|
186784
186787
|
sourceRoot: `${options.directory}/src`,
|
|
@@ -186788,8 +186791,8 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186788
186791
|
outputs: ["{options.outputPath}"],
|
|
186789
186792
|
options: {
|
|
186790
186793
|
outputPath: getOutputPath(options),
|
|
186791
|
-
tsConfig: (0,
|
|
186792
|
-
project: (0,
|
|
186794
|
+
tsConfig: (0, import_devkit5.joinPathFragments)(options.projectRoot, "tsconfig.json"),
|
|
186795
|
+
project: (0, import_devkit5.joinPathFragments)(options.projectRoot, "package.json"),
|
|
186793
186796
|
defaultConfiguration: "production",
|
|
186794
186797
|
configurations: {
|
|
186795
186798
|
production: {
|
|
@@ -186805,7 +186808,7 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186805
186808
|
test: {}
|
|
186806
186809
|
}
|
|
186807
186810
|
});
|
|
186808
|
-
(0,
|
|
186811
|
+
(0, import_devkit5.generateFiles)(tree, filesDir, options.projectRoot, {
|
|
186809
186812
|
...options,
|
|
186810
186813
|
dot: ".",
|
|
186811
186814
|
className,
|
|
@@ -186815,7 +186818,7 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186815
186818
|
cliCommand: "nx",
|
|
186816
186819
|
strict: void 0,
|
|
186817
186820
|
tmpl: "",
|
|
186818
|
-
offsetFromRoot: (0,
|
|
186821
|
+
offsetFromRoot: (0, import_devkit5.offsetFromRoot)(options.projectRoot),
|
|
186819
186822
|
buildable: options.bundler && options.bundler !== "none",
|
|
186820
186823
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
186821
186824
|
});
|
|
@@ -186845,7 +186848,7 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186845
186848
|
];
|
|
186846
186849
|
let description = "\u26A1 A Storm package used to create modern, scalable web applications.";
|
|
186847
186850
|
if (tree.exists("package.json")) {
|
|
186848
|
-
const packageJson = (0,
|
|
186851
|
+
const packageJson = (0, import_devkit5.readJson)(tree, "package.json");
|
|
186849
186852
|
packageJson?.bugs && (bugs = packageJson.bugs);
|
|
186850
186853
|
packageJson?.repository && (repository = packageJson.repository);
|
|
186851
186854
|
packageJson?.homepage && (homepage = packageJson.homepage);
|
|
@@ -186854,12 +186857,12 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186854
186857
|
packageJson?.keywords && (keywords = packageJson.keywords);
|
|
186855
186858
|
packageJson?.description && (description = packageJson.description);
|
|
186856
186859
|
}
|
|
186857
|
-
const packageJsonPath = (0,
|
|
186860
|
+
const packageJsonPath = (0, import_devkit5.joinPathFragments)(
|
|
186858
186861
|
options.projectRoot,
|
|
186859
186862
|
"package.json"
|
|
186860
186863
|
);
|
|
186861
186864
|
if (tree.exists(packageJsonPath)) {
|
|
186862
|
-
(0,
|
|
186865
|
+
(0, import_devkit5.updateJson)(tree, packageJsonPath, (json) => {
|
|
186863
186866
|
json.name = options.importPath;
|
|
186864
186867
|
json.version = "0.0.1";
|
|
186865
186868
|
if (json.private && (options.publishable || options.rootProject)) {
|
|
@@ -186879,8 +186882,8 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186879
186882
|
author,
|
|
186880
186883
|
keywords,
|
|
186881
186884
|
files: [
|
|
186882
|
-
(0,
|
|
186883
|
-
(0,
|
|
186885
|
+
(0, import_devkit5.joinPathFragments)(
|
|
186886
|
+
(0, import_devkit5.offsetFromRoot)(options.projectRoot),
|
|
186884
186887
|
"dist",
|
|
186885
186888
|
options.projectRoot,
|
|
186886
186889
|
"src"
|
|
@@ -186913,7 +186916,7 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186913
186916
|
};
|
|
186914
186917
|
});
|
|
186915
186918
|
} else {
|
|
186916
|
-
(0,
|
|
186919
|
+
(0, import_devkit5.writeJson)(tree, packageJsonPath, {
|
|
186917
186920
|
name: options.importPath,
|
|
186918
186921
|
version: "0.0.1",
|
|
186919
186922
|
description,
|
|
@@ -186928,8 +186931,8 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186928
186931
|
keywords,
|
|
186929
186932
|
private: !options.publishable || options.rootProject,
|
|
186930
186933
|
files: [
|
|
186931
|
-
(0,
|
|
186932
|
-
(0,
|
|
186934
|
+
(0, import_devkit5.joinPathFragments)(
|
|
186935
|
+
(0, import_devkit5.offsetFromRoot)(options.projectRoot),
|
|
186933
186936
|
"dist",
|
|
186934
186937
|
options.projectRoot,
|
|
186935
186938
|
"src"
|
|
@@ -186964,7 +186967,7 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186964
186967
|
});
|
|
186965
186968
|
}
|
|
186966
186969
|
if (tree.exists("package.json")) {
|
|
186967
|
-
(0,
|
|
186970
|
+
(0, import_devkit5.updateJson)(tree, "package.json", (json) => ({
|
|
186968
186971
|
...json,
|
|
186969
186972
|
pnpm: {
|
|
186970
186973
|
...json?.pnpm,
|
|
@@ -186976,31 +186979,31 @@ async function nodeLibraryGenerator(tree, schema) {
|
|
|
186976
186979
|
}));
|
|
186977
186980
|
}
|
|
186978
186981
|
(0, import_js2.addTsConfigPath)(tree, options.importPath, [
|
|
186979
|
-
(0,
|
|
186982
|
+
(0, import_devkit5.joinPathFragments)(
|
|
186980
186983
|
options.projectRoot,
|
|
186981
186984
|
"./src",
|
|
186982
186985
|
"index." + (options.js ? "js" : "ts")
|
|
186983
186986
|
)
|
|
186984
186987
|
]);
|
|
186985
|
-
(0, import_js2.addTsConfigPath)(tree, (0,
|
|
186986
|
-
(0,
|
|
186988
|
+
(0, import_js2.addTsConfigPath)(tree, (0, import_devkit5.joinPathFragments)(options.importPath, "/*"), [
|
|
186989
|
+
(0, import_devkit5.joinPathFragments)(options.projectRoot, "./src", "/*")
|
|
186987
186990
|
]);
|
|
186988
186991
|
const lintCallback = await addLint(tree, options);
|
|
186989
186992
|
tasks.push(lintCallback);
|
|
186990
|
-
await (0,
|
|
186993
|
+
await (0, import_devkit5.formatFiles)(tree);
|
|
186991
186994
|
}
|
|
186992
186995
|
async function addLint(tree, options) {
|
|
186993
|
-
const { lintProjectGenerator } = (0,
|
|
186996
|
+
const { lintProjectGenerator } = (0, import_devkit5.ensurePackage)("@nx/eslint", nxVersion);
|
|
186994
186997
|
const { mapLintPattern } = (
|
|
186995
186998
|
// nx-ignore-next-line
|
|
186996
186999
|
require_lint_project()
|
|
186997
187000
|
);
|
|
186998
|
-
const projectConfiguration = (0,
|
|
187001
|
+
const projectConfiguration = (0, import_devkit5.readProjectConfiguration)(tree, options.name);
|
|
186999
187002
|
const task = lintProjectGenerator(tree, {
|
|
187000
187003
|
project: options.name,
|
|
187001
187004
|
linter: options.linter,
|
|
187002
187005
|
skipFormat: true,
|
|
187003
|
-
tsConfigPaths: [(0,
|
|
187006
|
+
tsConfigPaths: [(0, import_devkit5.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
187004
187007
|
unitTestRunner: options.unitTestRunner,
|
|
187005
187008
|
eslintFilePatterns: [
|
|
187006
187009
|
mapLintPattern(
|
|
@@ -187071,15 +187074,15 @@ function getOutputPath(options) {
|
|
|
187071
187074
|
} else {
|
|
187072
187075
|
parts.push(options.projectRoot);
|
|
187073
187076
|
}
|
|
187074
|
-
return (0,
|
|
187077
|
+
return (0, import_devkit5.joinPathFragments)(...parts);
|
|
187075
187078
|
}
|
|
187076
187079
|
function createProjectTsConfigJson(tree, options) {
|
|
187077
187080
|
const tsconfig = {
|
|
187078
187081
|
extends: options.rootProject ? void 0 : (0, import_js2.getRelativePathToRootTsConfig)(tree, options.projectRoot),
|
|
187079
187082
|
compilerOptions: {
|
|
187080
187083
|
...options.rootProject ? import_js2.tsConfigBaseOptions : {},
|
|
187081
|
-
outDir: (0,
|
|
187082
|
-
(0,
|
|
187084
|
+
outDir: (0, import_devkit5.joinPathFragments)(
|
|
187085
|
+
(0, import_devkit5.offsetFromRoot)(options.projectRoot),
|
|
187083
187086
|
"dist/out-tsc"
|
|
187084
187087
|
),
|
|
187085
187088
|
noEmit: true
|
|
@@ -187088,15 +187091,15 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
187088
187091
|
include: ["src/**/*.ts", "src/**/*.js", "bin/**/*"],
|
|
187089
187092
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
187090
187093
|
};
|
|
187091
|
-
(0,
|
|
187094
|
+
(0, import_devkit5.writeJson)(
|
|
187092
187095
|
tree,
|
|
187093
|
-
(0,
|
|
187096
|
+
(0, import_devkit5.joinPathFragments)(options.projectRoot, "tsconfig.json"),
|
|
187094
187097
|
tsconfig
|
|
187095
187098
|
);
|
|
187096
187099
|
}
|
|
187097
187100
|
|
|
187098
187101
|
// packages/workspace-tools/src/generators/preset/generator.ts
|
|
187099
|
-
var
|
|
187102
|
+
var import_devkit6 = require("@nx/devkit");
|
|
187100
187103
|
// Annotate the CommonJS export names for ESM import in node:
|
|
187101
187104
|
0 && (module.exports = {
|
|
187102
187105
|
eslintVersion,
|
package/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/workspace-tools/src/utils/get-workspace-root.ts":{"bytes":284,"imports":[{"path":"nx/src/utils/find-workspace-root.js","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/utils/apply-workspace-tokens.ts":{"bytes":1465,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/get-workspace-root.ts","kind":"import-statement","original":"./get-workspace-root"}],"format":"esm"},"packages/workspace-tools/src/executors/tsup/get-config.ts":{"bytes":3915,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"esbuild-plugin-file-path-extensions","kind":"import-statement","external":true},{"path":"tsup","kind":"import-statement","external":true},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/executors/tsup/executor.ts":{"bytes":4600,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies","kind":"import-statement","external":true},{"path":"@nx/js","kind":"import-statement","external":true},{"path":"@nx/js/src/utils/buildable-libs-utils","kind":"import-statement","external":true},{"path":"fs-extra","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"tsup","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/apply-workspace-tokens.ts","kind":"import-statement","original":"../../utils/apply-workspace-tokens"},{"path":"packages/workspace-tools/src/utils/get-workspace-root.ts","kind":"import-statement","original":"../../utils/get-workspace-root"},{"path":"packages/workspace-tools/src/executors/tsup/get-config.ts","kind":"import-statement","original":"./get-config"},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/executors/tsup/schema.d.ts":{"bytes":457,"imports":[{"path":"@nx/esbuild/src/executors/esbuild/schema.d.ts","kind":"import-statement","external":true},{"path":"tsup","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/utils/versions.ts":{"bytes":745,"imports":[],"format":"esm"},"packages/workspace-tools/src/generators/init/init.ts":{"bytes":630,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"../../utils/versions"},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/generators/init/schema.d.ts":{"bytes":52,"imports":[],"format":"esm"},"packages/workspace-tools/src/generators/node-library/normalize-options.ts":{"bytes":2028,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"@nx/devkit/src/generators/project-name-and-root-utils","kind":"import-statement","external":true},{"path":"@nx/js/src/generators/library/library","kind":"import-statement","external":true},{"path":"@nx/js/src/utils/schema","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"../../utils/versions"},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js":{"bytes":225,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js":{"bytes":1540,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js":{"bytes":4714,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js","kind":"require-call","original":"./base64"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js":{"bytes":12950,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js":{"bytes":3197,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js":{"bytes":2339,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js":{"bytes":14356,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js","kind":"require-call","original":"./base64-vlq"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js","kind":"require-call","original":"./array-set"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js","kind":"require-call","original":"./mapping-list"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js":{"bytes":4249,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js":{"bytes":3616,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js":{"bytes":40562,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js","kind":"require-call","original":"./binary-search"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js","kind":"require-call","original":"./array-set"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js","kind":"require-call","original":"./base64-vlq"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js","kind":"require-call","original":"./quick-sort"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js":{"bytes":13808,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js","kind":"require-call","original":"./source-map-generator"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js":{"bytes":405,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js","kind":"require-call","original":"./lib/source-map-generator"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js","kind":"require-call","original":"./lib/source-map-consumer"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js","kind":"require-call","original":"./lib/source-node"}],"format":"cjs"},"node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js":{"bytes":1675,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map-support@0.5.19/node_modules/source-map-support/source-map-support.js":{"bytes":19729,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js","kind":"require-call","original":"source-map"},{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js","kind":"require-call","original":"buffer-from"}],"format":"cjs"},"node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/typescript.js":{"bytes":8207497,"imports":[{"path":"perf_hooks","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"crypto","kind":"require-call","external":true},{"path":"buffer","kind":"require-call","external":true},{"path":"node_modules/.pnpm/source-map-support@0.5.19/node_modules/source-map-support/source-map-support.js","kind":"require-call","original":"source-map-support"},{"path":"inspector","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js":{"bytes":27809,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/typescript.js","kind":"require-call","original":"typescript"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js":{"bytes":12509,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js","kind":"require-call","original":"../../utils/flat-config"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js","kind":"require-call","original":"./flat-config/ast-utils"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/package.json":{"bytes":1148,"imports":[]},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js":{"bytes":450,"imports":[{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/package.json","kind":"require-call","original":"../../package.json"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js":{"bytes":4128,"imports":[{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js","kind":"require-call","original":"../utils/flat-config/ast-utils"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init.js":{"bytes":2722,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js","kind":"require-call","original":"../../utils/versions"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js","kind":"require-call","original":"../utils/eslint-file"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js","kind":"require-call","original":"./global-eslint-config"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init-migration.js":{"bytes":5025,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js","kind":"require-call","original":"../utils/eslint-file"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js","kind":"require-call","original":"./global-eslint-config"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js","kind":"require-call","original":"../../utils/flat-config"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js","kind":"require-call","original":"../../utils/versions"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js","kind":"require-call","original":"../utils/flat-config/ast-utils"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js":{"bytes":8298,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js","kind":"require-call","original":"../utils/eslint-file"},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init.js","kind":"require-call","original":"../init/init"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init-migration.js","kind":"require-call","original":"../init/init-migration"},{"path":"nx/src/generators/utils/project-configuration","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js","kind":"require-call","original":"../../utils/flat-config"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js","kind":"require-call","original":"../utils/flat-config/ast-utils"}],"format":"cjs"},"packages/workspace-tools/src/generators/node-library/generator.ts":{"bytes":11766,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"@nx/js","kind":"import-statement","external":true},{"path":"@nx/js/src/generators/init/init","kind":"import-statement","external":true},{"path":"@nx/js/src/generators/library/library","kind":"import-statement","external":true},{"path":"@nx/js/src/generators/setup-verdaccio/generator","kind":"import-statement","external":true},{"path":"nx/src/utils/package-json","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"../../utils/versions"},{"path":"packages/workspace-tools/src/generators/node-library/normalize-options.ts","kind":"import-statement","original":"./normalize-options"},{"path":"./schema","kind":"import-statement","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js","kind":"require-call","original":"@nx/eslint/src/generators/lint-project/lint-project"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js","kind":"require-call","original":"@nx/eslint/src/generators/utils/eslint-file"}],"format":"esm"},"packages/workspace-tools/src/generators/node-library/schema.d.ts":{"bytes":407,"imports":[{"path":"@nx/js/src/utils/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/generators/preset/generator.ts":{"bytes":8541,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"../../utils/versions"},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/generators/preset/schema.d.ts":{"bytes":355,"imports":[],"format":"esm"},"packages/workspace-tools/index.ts":{"bytes":438,"imports":[{"path":"packages/workspace-tools/src/executors/tsup/executor.ts","kind":"import-statement","original":"./src/executors/tsup/executor"},{"path":"packages/workspace-tools/src/executors/tsup/schema.d.ts","kind":"import-statement","original":"./src/executors/tsup/schema.d"},{"path":"packages/workspace-tools/src/generators/init/init.ts","kind":"import-statement","original":"./src/generators/init/init"},{"path":"packages/workspace-tools/src/generators/init/schema.d.ts","kind":"import-statement","original":"./src/generators/init/schema.d"},{"path":"packages/workspace-tools/src/generators/node-library/generator.ts","kind":"import-statement","original":"./src/generators/node-library/generator"},{"path":"packages/workspace-tools/src/generators/node-library/schema.d.ts","kind":"import-statement","original":"./src/generators/node-library/schema.d"},{"path":"packages/workspace-tools/src/generators/preset/generator.ts","kind":"import-statement","original":"./src/generators/preset/generator"},{"path":"packages/workspace-tools/src/generators/preset/schema.d.ts","kind":"import-statement","original":"./src/generators/preset/schema.d"},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"./src/utils/versions"}],"format":"esm"},"packages/workspace-tools/src/utils/index.ts":{"bytes":108,"imports":[{"path":"packages/workspace-tools/src/utils/apply-workspace-tokens.ts","kind":"import-statement","original":"./apply-workspace-tokens"},{"path":"packages/workspace-tools/src/utils/get-workspace-root.ts","kind":"import-statement","original":"./get-workspace-root"},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"./versions"}],"format":"esm"}},"outputs":{"dist/packages/workspace-tools/index.js":{"imports":[{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"perf_hooks","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"crypto","kind":"require-call","external":true},{"path":"buffer","kind":"require-call","external":true},{"path":"inspector","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"nx/src/generators/utils/project-configuration","kind":"require-call","external":true},{"path":"@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies","kind":"require-call","external":true},{"path":"@nx/js","kind":"require-call","external":true},{"path":"fs-extra","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true},{"path":"nx/src/utils/find-workspace-root.js","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"esbuild-plugin-file-path-extensions","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/js","kind":"require-call","external":true},{"path":"@nx/js/src/generators/init/init","kind":"require-call","external":true},{"path":"@nx/js/src/generators/setup-verdaccio/generator","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit/src/generators/project-name-and-root-utils","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/index.ts","inputs":{"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js":{"bytesInOutput":502},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js":{"bytesInOutput":1171},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js":{"bytesInOutput":1740},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js":{"bytesInOutput":8831},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js":{"bytesInOutput":2329},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js":{"bytesInOutput":1413},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js":{"bytesInOutput":10933},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js":{"bytesInOutput":1607},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js":{"bytesInOutput":991},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js":{"bytesInOutput":24560},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js":{"bytesInOutput":9850},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js":{"bytesInOutput":359},"node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js":{"bytesInOutput":1904},"node_modules/.pnpm/source-map-support@0.5.19/node_modules/source-map-support/source-map-support.js":{"bytesInOutput":15953},"node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/typescript.js":{"bytesInOutput":8625423},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js":{"bytesInOutput":24909},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js":{"bytesInOutput":12490},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/package.json":{"bytesInOutput":1553},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js":{"bytesInOutput":715},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js":{"bytesInOutput":3880},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init.js":{"bytesInOutput":2836},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init-migration.js":{"bytesInOutput":4630},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js":{"bytesInOutput":7633},"packages/workspace-tools/index.ts":{"bytesInOutput":995},"packages/workspace-tools/src/executors/tsup/executor.ts":{"bytesInOutput":223},"packages/workspace-tools/src/utils/get-workspace-root.ts":{"bytesInOutput":81},"packages/workspace-tools/src/executors/tsup/get-config.ts":{"bytesInOutput":175},"packages/workspace-tools/src/generators/init/init.ts":{"bytesInOutput":491},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":582},"packages/workspace-tools/src/generators/node-library/generator.ts":{"bytesInOutput":10624},"packages/workspace-tools/src/generators/node-library/normalize-options.ts":{"bytesInOutput":1778},"packages/workspace-tools/src/generators/preset/generator.ts":{"bytesInOutput":44}},"bytes":8787782},"dist/packages/workspace-tools/src/executors/tsup/executor.js":{"imports":[{"path":"@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies","kind":"require-call","external":true},{"path":"@nx/js","kind":"require-call","external":true},{"path":"fs-extra","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true},{"path":"nx/src/utils/find-workspace-root.js","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"esbuild-plugin-file-path-extensions","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/executors/tsup/executor.ts","inputs":{"packages/workspace-tools/src/executors/tsup/executor.ts":{"bytesInOutput":4075},"packages/workspace-tools/src/utils/get-workspace-root.ts":{"bytesInOutput":313},"packages/workspace-tools/src/utils/apply-workspace-tokens.ts":{"bytesInOutput":1134},"packages/workspace-tools/src/executors/tsup/get-config.ts":{"bytesInOutput":3609}},"bytes":10224},"dist/packages/workspace-tools/src/executors/tsup/get-config.js":{"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"esbuild-plugin-file-path-extensions","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/executors/tsup/get-config.ts","inputs":{"packages/workspace-tools/src/executors/tsup/get-config.ts":{"bytesInOutput":3825}},"bytes":4807},"dist/packages/workspace-tools/src/generators/init/init.js":{"imports":[{"path":"@nx/devkit","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/generators/init/init.ts","inputs":{"packages/workspace-tools/src/generators/init/init.ts":{"bytesInOutput":702},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":27}},"bytes":1791},"dist/packages/workspace-tools/src/generators/node-library/generator.js":{"imports":[{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"perf_hooks","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"crypto","kind":"require-call","external":true},{"path":"buffer","kind":"require-call","external":true},{"path":"inspector","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"nx/src/generators/utils/project-configuration","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/js","kind":"require-call","external":true},{"path":"@nx/js/src/generators/init/init","kind":"require-call","external":true},{"path":"@nx/js/src/generators/setup-verdaccio/generator","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit/src/generators/project-name-and-root-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/generators/node-library/generator.ts","inputs":{"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js":{"bytesInOutput":502},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js":{"bytesInOutput":1171},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js":{"bytesInOutput":1740},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js":{"bytesInOutput":8831},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js":{"bytesInOutput":2329},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js":{"bytesInOutput":1413},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js":{"bytesInOutput":10933},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js":{"bytesInOutput":1607},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js":{"bytesInOutput":991},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js":{"bytesInOutput":24560},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js":{"bytesInOutput":9850},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js":{"bytesInOutput":359},"node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js":{"bytesInOutput":1904},"node_modules/.pnpm/source-map-support@0.5.19/node_modules/source-map-support/source-map-support.js":{"bytesInOutput":15953},"node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/typescript.js":{"bytesInOutput":8625421},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js":{"bytesInOutput":24909},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js":{"bytesInOutput":12490},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/package.json":{"bytesInOutput":1553},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js":{"bytesInOutput":715},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js":{"bytesInOutput":3880},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init.js":{"bytesInOutput":2836},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init-migration.js":{"bytesInOutput":4630},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js":{"bytesInOutput":7633},"packages/workspace-tools/src/generators/node-library/generator.ts":{"bytesInOutput":10864},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":60},"packages/workspace-tools/src/generators/node-library/normalize-options.ts":{"bytesInOutput":1775}},"bytes":8784718},"dist/packages/workspace-tools/src/generators/preset/generator.js":{"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/generators/preset/generator.ts","inputs":{"packages/workspace-tools/src/generators/preset/generator.ts":{"bytesInOutput":8311},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":91}},"bytes":9963},"dist/packages/workspace-tools/src/utils/index.js":{"imports":[{"path":"nx/src/utils/find-workspace-root.js","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/utils/index.ts","inputs":{"packages/workspace-tools/src/utils/index.ts":{"bytesInOutput":961},"packages/workspace-tools/src/utils/get-workspace-root.ts":{"bytesInOutput":313},"packages/workspace-tools/src/utils/apply-workspace-tokens.ts":{"bytesInOutput":1134},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":582}},"bytes":4481}}}
|
|
1
|
+
{"inputs":{"packages/workspace-tools/src/utils/get-workspace-root.ts":{"bytes":284,"imports":[{"path":"nx/src/utils/find-workspace-root.js","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/utils/apply-workspace-tokens.ts":{"bytes":1465,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/get-workspace-root.ts","kind":"import-statement","original":"./get-workspace-root"}],"format":"esm"},"packages/workspace-tools/src/executors/tsup/get-config.ts":{"bytes":3547,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"esbuild-plugin-file-path-extensions","kind":"import-statement","external":true},{"path":"tsup","kind":"import-statement","external":true},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/executors/tsup/executor.ts":{"bytes":6714,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies","kind":"import-statement","external":true},{"path":"@nx/js","kind":"import-statement","external":true},{"path":"@nx/js/src/utils/buildable-libs-utils","kind":"import-statement","external":true},{"path":"fs-extra","kind":"import-statement","external":true},{"path":"nx/src/project-graph/project-graph","kind":"import-statement","external":true},{"path":"nx/src/utils/fileutils","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"tsup","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/apply-workspace-tokens.ts","kind":"import-statement","original":"../../utils/apply-workspace-tokens"},{"path":"packages/workspace-tools/src/utils/get-workspace-root.ts","kind":"import-statement","original":"../../utils/get-workspace-root"},{"path":"packages/workspace-tools/src/executors/tsup/get-config.ts","kind":"import-statement","original":"./get-config"},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/executors/tsup/schema.d.ts":{"bytes":457,"imports":[{"path":"@nx/esbuild/src/executors/esbuild/schema.d.ts","kind":"import-statement","external":true},{"path":"tsup","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/utils/versions.ts":{"bytes":745,"imports":[],"format":"esm"},"packages/workspace-tools/src/generators/init/init.ts":{"bytes":630,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"../../utils/versions"},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/generators/init/schema.d.ts":{"bytes":52,"imports":[],"format":"esm"},"packages/workspace-tools/src/generators/node-library/normalize-options.ts":{"bytes":2028,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"@nx/devkit/src/generators/project-name-and-root-utils","kind":"import-statement","external":true},{"path":"@nx/js/src/generators/library/library","kind":"import-statement","external":true},{"path":"@nx/js/src/utils/schema","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"../../utils/versions"},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js":{"bytes":225,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js":{"bytes":1540,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js":{"bytes":4714,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js","kind":"require-call","original":"./base64"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js":{"bytes":12950,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js":{"bytes":3197,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js":{"bytes":2339,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js":{"bytes":14356,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js","kind":"require-call","original":"./base64-vlq"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js","kind":"require-call","original":"./array-set"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js","kind":"require-call","original":"./mapping-list"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js":{"bytes":4249,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js":{"bytes":3616,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js":{"bytes":40562,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js","kind":"require-call","original":"./binary-search"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js","kind":"require-call","original":"./array-set"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js","kind":"require-call","original":"./base64-vlq"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js","kind":"require-call","original":"./quick-sort"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js":{"bytes":13808,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js","kind":"require-call","original":"./source-map-generator"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js","kind":"require-call","original":"./util"}],"format":"cjs"},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js":{"bytes":405,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js","kind":"require-call","original":"./lib/source-map-generator"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js","kind":"require-call","original":"./lib/source-map-consumer"},{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js","kind":"require-call","original":"./lib/source-node"}],"format":"cjs"},"node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js":{"bytes":1675,"imports":[],"format":"cjs"},"node_modules/.pnpm/source-map-support@0.5.19/node_modules/source-map-support/source-map-support.js":{"bytes":19729,"imports":[{"path":"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js","kind":"require-call","original":"source-map"},{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js","kind":"require-call","original":"buffer-from"}],"format":"cjs"},"node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/typescript.js":{"bytes":8207497,"imports":[{"path":"perf_hooks","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"crypto","kind":"require-call","external":true},{"path":"buffer","kind":"require-call","external":true},{"path":"node_modules/.pnpm/source-map-support@0.5.19/node_modules/source-map-support/source-map-support.js","kind":"require-call","original":"source-map-support"},{"path":"inspector","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js":{"bytes":27809,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/typescript.js","kind":"require-call","original":"typescript"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js":{"bytes":12509,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js","kind":"require-call","original":"../../utils/flat-config"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js","kind":"require-call","original":"./flat-config/ast-utils"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/package.json":{"bytes":1148,"imports":[]},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js":{"bytes":450,"imports":[{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/package.json","kind":"require-call","original":"../../package.json"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js":{"bytes":4128,"imports":[{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js","kind":"require-call","original":"../utils/flat-config/ast-utils"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init.js":{"bytes":2722,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js","kind":"require-call","original":"../../utils/versions"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js","kind":"require-call","original":"../utils/eslint-file"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js","kind":"require-call","original":"./global-eslint-config"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init-migration.js":{"bytes":5025,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js","kind":"require-call","original":"../utils/eslint-file"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js","kind":"require-call","original":"./global-eslint-config"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js","kind":"require-call","original":"../../utils/flat-config"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js","kind":"require-call","original":"../../utils/versions"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js","kind":"require-call","original":"../utils/flat-config/ast-utils"}],"format":"cjs"},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js":{"bytes":8298,"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js","kind":"require-call","original":"../utils/eslint-file"},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init.js","kind":"require-call","original":"../init/init"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init-migration.js","kind":"require-call","original":"../init/init-migration"},{"path":"nx/src/generators/utils/project-configuration","kind":"require-call","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js","kind":"require-call","original":"../../utils/flat-config"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js","kind":"require-call","original":"../utils/flat-config/ast-utils"}],"format":"cjs"},"packages/workspace-tools/src/generators/node-library/generator.ts":{"bytes":11766,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"@nx/js","kind":"import-statement","external":true},{"path":"@nx/js/src/generators/init/init","kind":"import-statement","external":true},{"path":"@nx/js/src/generators/library/library","kind":"import-statement","external":true},{"path":"@nx/js/src/generators/setup-verdaccio/generator","kind":"import-statement","external":true},{"path":"nx/src/utils/package-json","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"../../utils/versions"},{"path":"packages/workspace-tools/src/generators/node-library/normalize-options.ts","kind":"import-statement","original":"./normalize-options"},{"path":"./schema","kind":"import-statement","external":true},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js","kind":"require-call","original":"@nx/eslint/src/generators/lint-project/lint-project"},{"path":"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js","kind":"require-call","original":"@nx/eslint/src/generators/utils/eslint-file"}],"format":"esm"},"packages/workspace-tools/src/generators/node-library/schema.d.ts":{"bytes":407,"imports":[{"path":"@nx/js/src/utils/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/generators/preset/generator.ts":{"bytes":8541,"imports":[{"path":"@nx/devkit","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"../../utils/versions"},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/workspace-tools/src/generators/preset/schema.d.ts":{"bytes":355,"imports":[],"format":"esm"},"packages/workspace-tools/index.ts":{"bytes":438,"imports":[{"path":"packages/workspace-tools/src/executors/tsup/executor.ts","kind":"import-statement","original":"./src/executors/tsup/executor"},{"path":"packages/workspace-tools/src/executors/tsup/schema.d.ts","kind":"import-statement","original":"./src/executors/tsup/schema.d"},{"path":"packages/workspace-tools/src/generators/init/init.ts","kind":"import-statement","original":"./src/generators/init/init"},{"path":"packages/workspace-tools/src/generators/init/schema.d.ts","kind":"import-statement","original":"./src/generators/init/schema.d"},{"path":"packages/workspace-tools/src/generators/node-library/generator.ts","kind":"import-statement","original":"./src/generators/node-library/generator"},{"path":"packages/workspace-tools/src/generators/node-library/schema.d.ts","kind":"import-statement","original":"./src/generators/node-library/schema.d"},{"path":"packages/workspace-tools/src/generators/preset/generator.ts","kind":"import-statement","original":"./src/generators/preset/generator"},{"path":"packages/workspace-tools/src/generators/preset/schema.d.ts","kind":"import-statement","original":"./src/generators/preset/schema.d"},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"./src/utils/versions"}],"format":"esm"},"packages/workspace-tools/src/utils/index.ts":{"bytes":108,"imports":[{"path":"packages/workspace-tools/src/utils/apply-workspace-tokens.ts","kind":"import-statement","original":"./apply-workspace-tokens"},{"path":"packages/workspace-tools/src/utils/get-workspace-root.ts","kind":"import-statement","original":"./get-workspace-root"},{"path":"packages/workspace-tools/src/utils/versions.ts","kind":"import-statement","original":"./versions"}],"format":"esm"}},"outputs":{"dist/packages/workspace-tools/index.js":{"imports":[{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"perf_hooks","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"crypto","kind":"require-call","external":true},{"path":"buffer","kind":"require-call","external":true},{"path":"inspector","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"nx/src/generators/utils/project-configuration","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies","kind":"require-call","external":true},{"path":"@nx/js","kind":"require-call","external":true},{"path":"fs-extra","kind":"require-call","external":true},{"path":"nx/src/project-graph/project-graph","kind":"require-call","external":true},{"path":"nx/src/utils/fileutils","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true},{"path":"nx/src/utils/find-workspace-root.js","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"esbuild-plugin-file-path-extensions","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/js","kind":"require-call","external":true},{"path":"@nx/js/src/generators/init/init","kind":"require-call","external":true},{"path":"@nx/js/src/generators/setup-verdaccio/generator","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit/src/generators/project-name-and-root-utils","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/index.ts","inputs":{"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js":{"bytesInOutput":502},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js":{"bytesInOutput":1171},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js":{"bytesInOutput":1740},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js":{"bytesInOutput":8831},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js":{"bytesInOutput":2329},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js":{"bytesInOutput":1413},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js":{"bytesInOutput":10933},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js":{"bytesInOutput":1607},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js":{"bytesInOutput":991},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js":{"bytesInOutput":24560},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js":{"bytesInOutput":9850},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js":{"bytesInOutput":359},"node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js":{"bytesInOutput":1904},"node_modules/.pnpm/source-map-support@0.5.19/node_modules/source-map-support/source-map-support.js":{"bytesInOutput":15953},"node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/typescript.js":{"bytesInOutput":8625524},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js":{"bytesInOutput":24909},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js":{"bytesInOutput":12490},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/package.json":{"bytesInOutput":1553},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js":{"bytesInOutput":715},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js":{"bytesInOutput":3880},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init.js":{"bytesInOutput":2836},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init-migration.js":{"bytesInOutput":4630},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js":{"bytesInOutput":7633},"packages/workspace-tools/index.ts":{"bytesInOutput":995},"packages/workspace-tools/src/executors/tsup/executor.ts":{"bytesInOutput":399},"packages/workspace-tools/src/utils/get-workspace-root.ts":{"bytesInOutput":81},"packages/workspace-tools/src/executors/tsup/get-config.ts":{"bytesInOutput":175},"packages/workspace-tools/src/generators/init/init.ts":{"bytesInOutput":491},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":582},"packages/workspace-tools/src/generators/node-library/generator.ts":{"bytesInOutput":10624},"packages/workspace-tools/src/generators/node-library/normalize-options.ts":{"bytesInOutput":1778},"packages/workspace-tools/src/generators/preset/generator.ts":{"bytesInOutput":44}},"bytes":8788059},"dist/packages/workspace-tools/src/executors/tsup/executor.js":{"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies","kind":"require-call","external":true},{"path":"@nx/js","kind":"require-call","external":true},{"path":"fs-extra","kind":"require-call","external":true},{"path":"nx/src/project-graph/project-graph","kind":"require-call","external":true},{"path":"nx/src/utils/fileutils","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true},{"path":"nx/src/utils/find-workspace-root.js","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"esbuild-plugin-file-path-extensions","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/executors/tsup/executor.ts","inputs":{"packages/workspace-tools/src/executors/tsup/executor.ts":{"bytesInOutput":5796},"packages/workspace-tools/src/utils/get-workspace-root.ts":{"bytesInOutput":313},"packages/workspace-tools/src/utils/apply-workspace-tokens.ts":{"bytesInOutput":1134},"packages/workspace-tools/src/executors/tsup/get-config.ts":{"bytesInOutput":3262}},"bytes":11598},"dist/packages/workspace-tools/src/executors/tsup/get-config.js":{"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"esbuild-plugin-file-path-extensions","kind":"require-call","external":true},{"path":"tsup","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/executors/tsup/get-config.ts","inputs":{"packages/workspace-tools/src/executors/tsup/get-config.ts":{"bytesInOutput":3478}},"bytes":4460},"dist/packages/workspace-tools/src/generators/init/init.js":{"imports":[{"path":"@nx/devkit","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/generators/init/init.ts","inputs":{"packages/workspace-tools/src/generators/init/init.ts":{"bytesInOutput":702},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":27}},"bytes":1791},"dist/packages/workspace-tools/src/generators/node-library/generator.js":{"imports":[{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"perf_hooks","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"crypto","kind":"require-call","external":true},{"path":"buffer","kind":"require-call","external":true},{"path":"inspector","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"nx/src/generators/utils/project-configuration","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/js","kind":"require-call","external":true},{"path":"@nx/js/src/generators/init/init","kind":"require-call","external":true},{"path":"@nx/js/src/generators/setup-verdaccio/generator","kind":"require-call","external":true},{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"@nx/devkit/src/generators/project-name-and-root-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/generators/node-library/generator.ts","inputs":{"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/flat-config.js":{"bytesInOutput":502},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js":{"bytesInOutput":1171},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js":{"bytesInOutput":1740},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js":{"bytesInOutput":8831},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js":{"bytesInOutput":2329},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js":{"bytesInOutput":1413},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js":{"bytesInOutput":10933},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js":{"bytesInOutput":1607},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js":{"bytesInOutput":991},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js":{"bytesInOutput":24560},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js":{"bytesInOutput":9850},"node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js":{"bytesInOutput":359},"node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js":{"bytesInOutput":1904},"node_modules/.pnpm/source-map-support@0.5.19/node_modules/source-map-support/source-map-support.js":{"bytesInOutput":15953},"node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/typescript.js":{"bytesInOutput":8625421},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js":{"bytesInOutput":24909},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/utils/eslint-file.js":{"bytesInOutput":12490},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/package.json":{"bytesInOutput":1553},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/utils/versions.js":{"bytesInOutput":715},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js":{"bytesInOutput":3880},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init.js":{"bytesInOutput":2836},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/init/init-migration.js":{"bytesInOutput":4630},"node_modules/.pnpm/@nx+eslint@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.95_@types+node@20.8.10_eslint@8.53.0_nx@17.0.3_verdaccio@5.27.0/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js":{"bytesInOutput":7633},"packages/workspace-tools/src/generators/node-library/generator.ts":{"bytesInOutput":10864},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":60},"packages/workspace-tools/src/generators/node-library/normalize-options.ts":{"bytesInOutput":1775}},"bytes":8784718},"dist/packages/workspace-tools/src/generators/preset/generator.js":{"imports":[{"path":"@nx/devkit","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/generators/preset/generator.ts","inputs":{"packages/workspace-tools/src/generators/preset/generator.ts":{"bytesInOutput":8311},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":91}},"bytes":9963},"dist/packages/workspace-tools/src/utils/index.js":{"imports":[{"path":"nx/src/utils/find-workspace-root.js","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/workspace-tools/src/utils/index.ts","inputs":{"packages/workspace-tools/src/utils/index.ts":{"bytesInOutput":961},"packages/workspace-tools/src/utils/get-workspace-root.ts":{"bytesInOutput":313},"packages/workspace-tools/src/utils/apply-workspace-tokens.ts":{"bytesInOutput":1134},"packages/workspace-tools/src/utils/versions.ts":{"bytesInOutput":582}},"bytes":4481}}}
|
package/package.json
CHANGED
|
@@ -22,9 +22,12 @@ __export(executor_exports, {
|
|
|
22
22
|
default: () => runExecutor
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(executor_exports);
|
|
25
|
+
var import_devkit2 = require("@nx/devkit");
|
|
25
26
|
var import_get_extra_dependencies = require("@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies");
|
|
26
27
|
var import_js = require("@nx/js");
|
|
27
28
|
var import_fs_extra = require("fs-extra");
|
|
29
|
+
var import_project_graph = require("nx/src/project-graph/project-graph");
|
|
30
|
+
var import_fileutils = require("nx/src/utils/fileutils");
|
|
28
31
|
var import_path = require("path");
|
|
29
32
|
var import_tsup2 = require("tsup");
|
|
30
33
|
|
|
@@ -121,10 +124,6 @@ function modernConfig(entry, outDir, tsConfig = "tsconfig.json", debug = false,
|
|
|
121
124
|
cjsInterop: true,
|
|
122
125
|
clean: false,
|
|
123
126
|
publicDir,
|
|
124
|
-
outExtension: (ctx) => ({
|
|
125
|
-
js: ctx.format === "cjs" ? "cjs" : "js",
|
|
126
|
-
dts: ctx.format === "cjs" ? "d.cts" : "d.ts"
|
|
127
|
-
}),
|
|
128
127
|
esbuildPlugins: [
|
|
129
128
|
(0, import_esbuild_plugin_file_path_extensions.esbuildPluginFilePathExtensions)({
|
|
130
129
|
esmExtension: "js",
|
|
@@ -169,10 +168,6 @@ function legacyConfig(entry, outDir, tsConfig = "tsconfig.json", debug = false,
|
|
|
169
168
|
cjsInterop: true,
|
|
170
169
|
clean: false,
|
|
171
170
|
publicDir,
|
|
172
|
-
outExtension: (ctx) => ({
|
|
173
|
-
js: ctx.format === "cjs" ? "cjs" : "js",
|
|
174
|
-
dts: ctx.format === "cjs" ? "d.cts" : "d.ts"
|
|
175
|
-
}),
|
|
176
171
|
esbuildPlugins: [
|
|
177
172
|
(0, import_esbuild_plugin_file_path_extensions.esbuildPluginFilePathExtensions)({
|
|
178
173
|
esmExtension: "js",
|
|
@@ -195,7 +190,6 @@ function getConfig(sourceRoot, {
|
|
|
195
190
|
(0, import_devkit.joinPathFragments)(sourceRoot, "**/*.tsx"),
|
|
196
191
|
...additionalEntryPoints ?? []
|
|
197
192
|
];
|
|
198
|
-
const publicDir = (0, import_devkit.joinPathFragments)(sourceRoot, "src");
|
|
199
193
|
return (0, import_tsup.defineConfig)([
|
|
200
194
|
modernConfig(
|
|
201
195
|
entry,
|
|
@@ -204,7 +198,7 @@ function getConfig(sourceRoot, {
|
|
|
204
198
|
debug,
|
|
205
199
|
bundle,
|
|
206
200
|
platform,
|
|
207
|
-
|
|
201
|
+
sourceRoot,
|
|
208
202
|
options
|
|
209
203
|
),
|
|
210
204
|
legacyConfig(
|
|
@@ -214,7 +208,7 @@ function getConfig(sourceRoot, {
|
|
|
214
208
|
debug,
|
|
215
209
|
bundle,
|
|
216
210
|
platform,
|
|
217
|
-
|
|
211
|
+
sourceRoot,
|
|
218
212
|
options
|
|
219
213
|
)
|
|
220
214
|
]);
|
|
@@ -242,12 +236,7 @@ async function runExecutor(options, context) {
|
|
|
242
236
|
}
|
|
243
237
|
const assets = Array.from(options.assets);
|
|
244
238
|
assets.push({
|
|
245
|
-
input:
|
|
246
|
-
glob: "package.json",
|
|
247
|
-
output: "."
|
|
248
|
-
});
|
|
249
|
-
assets.push({
|
|
250
|
-
input: sourceRoot,
|
|
239
|
+
input: projectRoot,
|
|
251
240
|
glob: "*.md",
|
|
252
241
|
output: "/"
|
|
253
242
|
});
|
|
@@ -280,30 +269,60 @@ async function runExecutor(options, context) {
|
|
|
280
269
|
context.projectGraph
|
|
281
270
|
);
|
|
282
271
|
for (const tpd of thirdPartyDependencies) {
|
|
283
|
-
|
|
284
|
-
|
|
272
|
+
const packageConfig = tpd.node.data;
|
|
273
|
+
if (packageConfig?.packageName) {
|
|
274
|
+
options.external.push(packageConfig.packageName);
|
|
275
|
+
externalDependencies.push(tpd);
|
|
276
|
+
}
|
|
285
277
|
}
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
278
|
+
const projectGraph = await (0, import_project_graph.buildProjectGraphWithoutDaemon)();
|
|
279
|
+
const pathToPackageJson = (0, import_path.join)(context.root, projectRoot, "package.json");
|
|
280
|
+
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit2.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
281
|
+
const workspacePackageJson = (0, import_devkit2.readJsonFile)(
|
|
282
|
+
(0, import_devkit2.joinPathFragments)(workspaceRoot, "package.json")
|
|
283
|
+
);
|
|
284
|
+
externalDependencies.forEach((entry) => {
|
|
285
|
+
const packageConfig = entry.node.data;
|
|
286
|
+
if (packageConfig?.packageName && !!(projectGraph.externalNodes[entry.node.name]?.type === "npm")) {
|
|
287
|
+
const { packageName, version } = packageConfig;
|
|
288
|
+
if (packageJson.dependencies?.[packageName] || packageJson.devDependencies?.[packageName] || packageJson.peerDependencies?.[packageName]) {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (workspacePackageJson.devDependencies?.[packageName]) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
packageJson.dependencies ??= {};
|
|
295
|
+
packageJson.dependencies[packageName] = version;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
packageJson.type ??= "module";
|
|
299
|
+
packageJson.exports = {
|
|
300
|
+
".": {
|
|
301
|
+
"import": {
|
|
302
|
+
"types": "./build/modern/index.d.ts",
|
|
303
|
+
"default": "./build/modern/index.js"
|
|
304
|
+
},
|
|
305
|
+
"require": {
|
|
306
|
+
"types": "./build/modern/index.d.cts",
|
|
307
|
+
"default": "./build/modern/index.cjs"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"./package.json": "./package.json"
|
|
297
311
|
};
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
312
|
+
packageJson.main = "build/legacy/index.cjs";
|
|
313
|
+
packageJson.module = "build/legacy/index.js";
|
|
314
|
+
packageJson.types = "build/legacy/index.d.ts";
|
|
315
|
+
packageJson.sideEffects ??= false;
|
|
316
|
+
packageJson.files ??= ["src"];
|
|
317
|
+
packageJson.description ??= workspacePackageJson.description;
|
|
318
|
+
packageJson.homepage ??= workspacePackageJson.homepage;
|
|
319
|
+
packageJson.bugs ??= workspacePackageJson.bugs;
|
|
320
|
+
packageJson.author ??= workspacePackageJson.author;
|
|
321
|
+
packageJson.license ??= workspacePackageJson.license;
|
|
322
|
+
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
323
|
+
packageJson.repository ??= workspacePackageJson.repository;
|
|
324
|
+
packageJson.repository.directory = projectRoot ? projectRoot : `packages/${context.projectName}`;
|
|
325
|
+
(0, import_devkit2.writeJsonFile)(`${options.outputPath}/package.json`, packageJson);
|
|
307
326
|
console.log("Getting Tsup build config");
|
|
308
327
|
const config = getConfig(sourceRoot, { ...options, outputPath });
|
|
309
328
|
if (typeof config === "function") {
|
|
@@ -71,10 +71,6 @@ function modernConfig(entry, outDir, tsConfig = "tsconfig.json", debug = false,
|
|
|
71
71
|
cjsInterop: true,
|
|
72
72
|
clean: false,
|
|
73
73
|
publicDir,
|
|
74
|
-
outExtension: (ctx) => ({
|
|
75
|
-
js: ctx.format === "cjs" ? "cjs" : "js",
|
|
76
|
-
dts: ctx.format === "cjs" ? "d.cts" : "d.ts"
|
|
77
|
-
}),
|
|
78
74
|
esbuildPlugins: [
|
|
79
75
|
(0, import_esbuild_plugin_file_path_extensions.esbuildPluginFilePathExtensions)({
|
|
80
76
|
esmExtension: "js",
|
|
@@ -119,10 +115,6 @@ function legacyConfig(entry, outDir, tsConfig = "tsconfig.json", debug = false,
|
|
|
119
115
|
cjsInterop: true,
|
|
120
116
|
clean: false,
|
|
121
117
|
publicDir,
|
|
122
|
-
outExtension: (ctx) => ({
|
|
123
|
-
js: ctx.format === "cjs" ? "cjs" : "js",
|
|
124
|
-
dts: ctx.format === "cjs" ? "d.cts" : "d.ts"
|
|
125
|
-
}),
|
|
126
118
|
esbuildPlugins: [
|
|
127
119
|
(0, import_esbuild_plugin_file_path_extensions.esbuildPluginFilePathExtensions)({
|
|
128
120
|
esmExtension: "js",
|
|
@@ -145,7 +137,6 @@ function getConfig(sourceRoot, {
|
|
|
145
137
|
(0, import_devkit.joinPathFragments)(sourceRoot, "**/*.tsx"),
|
|
146
138
|
...additionalEntryPoints ?? []
|
|
147
139
|
];
|
|
148
|
-
const publicDir = (0, import_devkit.joinPathFragments)(sourceRoot, "src");
|
|
149
140
|
return (0, import_tsup.defineConfig)([
|
|
150
141
|
modernConfig(
|
|
151
142
|
entry,
|
|
@@ -154,7 +145,7 @@ function getConfig(sourceRoot, {
|
|
|
154
145
|
debug,
|
|
155
146
|
bundle,
|
|
156
147
|
platform,
|
|
157
|
-
|
|
148
|
+
sourceRoot,
|
|
158
149
|
options
|
|
159
150
|
),
|
|
160
151
|
legacyConfig(
|
|
@@ -164,7 +155,7 @@ function getConfig(sourceRoot, {
|
|
|
164
155
|
debug,
|
|
165
156
|
bundle,
|
|
166
157
|
platform,
|
|
167
|
-
|
|
158
|
+
sourceRoot,
|
|
168
159
|
options
|
|
169
160
|
)
|
|
170
161
|
]);
|