@xylabs/ts-scripts-yarn3 3.15.16 → 4.0.0-rc.5
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/dist/actions/index.mjs +76 -275
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +55 -254
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +55 -254
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs +1 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTscTypes.mjs +2 -36
- package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +53 -252
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +69 -268
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +55 -254
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +57 -256
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +55 -254
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +57 -256
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +57 -256
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/index.mjs +86 -285
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -19
- package/src/actions/package/compile/XyConfig.ts +2 -2
- package/src/actions/package/compile/packageCompileTsc.ts +1 -1
- package/src/actions/package/compile/packageCompileTscTypes.ts +3 -8
- package/src/actions/package/compile/packageCompileTsup.ts +52 -124
- package/tsup.config.ts +1 -1
- package/dist/actions/build.cjs +0 -208
- package/dist/actions/build.cjs.map +0 -1
- package/dist/actions/clean-docs.cjs +0 -74
- package/dist/actions/clean-docs.cjs.map +0 -1
- package/dist/actions/clean-eslint.cjs +0 -53
- package/dist/actions/clean-eslint.cjs.map +0 -1
- package/dist/actions/clean-jest.cjs +0 -147
- package/dist/actions/clean-jest.cjs.map +0 -1
- package/dist/actions/clean.cjs +0 -192
- package/dist/actions/clean.cjs.map +0 -1
- package/dist/actions/compile.cjs +0 -217
- package/dist/actions/compile.cjs.map +0 -1
- package/dist/actions/copy-assets.cjs +0 -121
- package/dist/actions/copy-assets.cjs.map +0 -1
- package/dist/actions/cycle.cjs +0 -156
- package/dist/actions/cycle.cjs.map +0 -1
- package/dist/actions/dead.cjs +0 -148
- package/dist/actions/dead.cjs.map +0 -1
- package/dist/actions/deploy-major.cjs +0 -160
- package/dist/actions/deploy-major.cjs.map +0 -1
- package/dist/actions/deploy-minor.cjs +0 -160
- package/dist/actions/deploy-minor.cjs.map +0 -1
- package/dist/actions/deploy-next.cjs +0 -160
- package/dist/actions/deploy-next.cjs.map +0 -1
- package/dist/actions/deploy.cjs +0 -160
- package/dist/actions/deploy.cjs.map +0 -1
- package/dist/actions/deps.cjs +0 -205
- package/dist/actions/deps.cjs.map +0 -1
- package/dist/actions/dupdeps.cjs +0 -226
- package/dist/actions/dupdeps.cjs.map +0 -1
- package/dist/actions/fix.cjs +0 -149
- package/dist/actions/fix.cjs.map +0 -1
- package/dist/actions/gen-docs.cjs +0 -186
- package/dist/actions/gen-docs.cjs.map +0 -1
- package/dist/actions/gitignore-gen.cjs +0 -138
- package/dist/actions/gitignore-gen.cjs.map +0 -1
- package/dist/actions/gitlint-fix.cjs +0 -69
- package/dist/actions/gitlint-fix.cjs.map +0 -1
- package/dist/actions/gitlint.cjs +0 -84
- package/dist/actions/gitlint.cjs.map +0 -1
- package/dist/actions/index.cjs +0 -2600
- package/dist/actions/index.cjs.map +0 -1
- package/dist/actions/license.cjs +0 -133
- package/dist/actions/license.cjs.map +0 -1
- package/dist/actions/lint-clean.cjs +0 -227
- package/dist/actions/lint-clean.cjs.map +0 -1
- package/dist/actions/lint-profile.cjs +0 -153
- package/dist/actions/lint-profile.cjs.map +0 -1
- package/dist/actions/lint.cjs +0 -217
- package/dist/actions/lint.cjs.map +0 -1
- package/dist/actions/npmignore-gen.cjs +0 -138
- package/dist/actions/npmignore-gen.cjs.map +0 -1
- package/dist/actions/package/clean-outputs.cjs +0 -56
- package/dist/actions/package/clean-outputs.cjs.map +0 -1
- package/dist/actions/package/clean-typescript.cjs +0 -56
- package/dist/actions/package/clean-typescript.cjs.map +0 -1
- package/dist/actions/package/clean.cjs +0 -83
- package/dist/actions/package/clean.cjs.map +0 -1
- package/dist/actions/package/compile/XyConfig.cjs +0 -19
- package/dist/actions/package/compile/XyConfig.cjs.map +0 -1
- package/dist/actions/package/compile/buildEntries.cjs +0 -68
- package/dist/actions/package/compile/buildEntries.cjs.map +0 -1
- package/dist/actions/package/compile/compile.cjs +0 -565
- package/dist/actions/package/compile/compile.cjs.map +0 -1
- package/dist/actions/package/compile/copyTypeFiles.cjs +0 -60
- package/dist/actions/package/compile/copyTypeFiles.cjs.map +0 -1
- package/dist/actions/package/compile/getCompilerOptions.cjs +0 -67
- package/dist/actions/package/compile/getCompilerOptions.cjs.map +0 -1
- package/dist/actions/package/compile/index.cjs +0 -571
- package/dist/actions/package/compile/index.cjs.map +0 -1
- package/dist/actions/package/compile/inputs.cjs +0 -79
- package/dist/actions/package/compile/inputs.cjs.map +0 -1
- package/dist/actions/package/compile/packageCompileTsc.cjs +0 -164
- package/dist/actions/package/compile/packageCompileTsc.cjs.map +0 -1
- package/dist/actions/package/compile/packageCompileTscTypes.cjs +0 -199
- package/dist/actions/package/compile/packageCompileTscTypes.cjs.map +0 -1
- package/dist/actions/package/compile/packageCompileTsup.cjs +0 -521
- package/dist/actions/package/compile/packageCompileTsup.cjs.map +0 -1
- package/dist/actions/package/copy-assets.cjs +0 -88
- package/dist/actions/package/copy-assets.cjs.map +0 -1
- package/dist/actions/package/deps.cjs +0 -214
- package/dist/actions/package/deps.cjs.map +0 -1
- package/dist/actions/package/gen-docs.cjs +0 -148
- package/dist/actions/package/gen-docs.cjs.map +0 -1
- package/dist/actions/package/index.cjs +0 -968
- package/dist/actions/package/index.cjs.map +0 -1
- package/dist/actions/package/publint.cjs +0 -80
- package/dist/actions/package/publint.cjs.map +0 -1
- package/dist/actions/package/recompile.cjs +0 -617
- package/dist/actions/package/recompile.cjs.map +0 -1
- package/dist/actions/publint.cjs +0 -237
- package/dist/actions/publint.cjs.map +0 -1
- package/dist/actions/rebuild.cjs +0 -148
- package/dist/actions/rebuild.cjs.map +0 -1
- package/dist/actions/recompile.cjs +0 -232
- package/dist/actions/recompile.cjs.map +0 -1
- package/dist/actions/reinstall.cjs +0 -183
- package/dist/actions/reinstall.cjs.map +0 -1
- package/dist/actions/relint.cjs +0 -185
- package/dist/actions/relint.cjs.map +0 -1
- package/dist/actions/retest.cjs +0 -154
- package/dist/actions/retest.cjs.map +0 -1
- package/dist/actions/sonar.cjs +0 -149
- package/dist/actions/sonar.cjs.map +0 -1
- package/dist/actions/statics.cjs +0 -234
- package/dist/actions/statics.cjs.map +0 -1
- package/dist/actions/test.cjs +0 -147
- package/dist/actions/test.cjs.map +0 -1
- package/dist/actions/up.cjs +0 -144
- package/dist/actions/up.cjs.map +0 -1
- package/dist/actions/updo.cjs +0 -152
- package/dist/actions/updo.cjs.map +0 -1
- package/dist/actions/upplug.cjs +0 -172
- package/dist/actions/upplug.cjs.map +0 -1
- package/dist/actions/upyarn.cjs +0 -148
- package/dist/actions/upyarn.cjs.map +0 -1
- package/dist/actions/yarn3only.cjs +0 -106
- package/dist/actions/yarn3only.cjs.map +0 -1
- package/dist/bin/build.cjs +0 -39
- package/dist/bin/build.cjs.map +0 -1
- package/dist/bin/clean.cjs +0 -39
- package/dist/bin/clean.cjs.map +0 -1
- package/dist/bin/compile-only.cjs +0 -39
- package/dist/bin/compile-only.cjs.map +0 -1
- package/dist/bin/compile.cjs +0 -39
- package/dist/bin/compile.cjs.map +0 -1
- package/dist/bin/cycle.cjs +0 -39
- package/dist/bin/cycle.cjs.map +0 -1
- package/dist/bin/dead.cjs +0 -39
- package/dist/bin/dead.cjs.map +0 -1
- package/dist/bin/deploy-major.cjs +0 -39
- package/dist/bin/deploy-major.cjs.map +0 -1
- package/dist/bin/deploy-minor.cjs +0 -39
- package/dist/bin/deploy-minor.cjs.map +0 -1
- package/dist/bin/deploy-next.cjs +0 -39
- package/dist/bin/deploy-next.cjs.map +0 -1
- package/dist/bin/deploy.cjs +0 -39
- package/dist/bin/deploy.cjs.map +0 -1
- package/dist/bin/deps.cjs +0 -39
- package/dist/bin/deps.cjs.map +0 -1
- package/dist/bin/fix.cjs +0 -39
- package/dist/bin/fix.cjs.map +0 -1
- package/dist/bin/gen-docs.cjs +0 -39
- package/dist/bin/gen-docs.cjs.map +0 -1
- package/dist/bin/gitlint-fix.cjs +0 -39
- package/dist/bin/gitlint-fix.cjs.map +0 -1
- package/dist/bin/gitlint.cjs +0 -39
- package/dist/bin/gitlint.cjs.map +0 -1
- package/dist/bin/license.cjs +0 -39
- package/dist/bin/license.cjs.map +0 -1
- package/dist/bin/lint-clean.cjs +0 -39
- package/dist/bin/lint-clean.cjs.map +0 -1
- package/dist/bin/lint-fast.cjs +0 -39
- package/dist/bin/lint-fast.cjs.map +0 -1
- package/dist/bin/lint-profile.cjs +0 -39
- package/dist/bin/lint-profile.cjs.map +0 -1
- package/dist/bin/lint.cjs +0 -39
- package/dist/bin/lint.cjs.map +0 -1
- package/dist/bin/package/clean-outputs.cjs +0 -51
- package/dist/bin/package/clean-outputs.cjs.map +0 -1
- package/dist/bin/package/clean-typescript.cjs +0 -51
- package/dist/bin/package/clean-typescript.cjs.map +0 -1
- package/dist/bin/package/clean.cjs +0 -76
- package/dist/bin/package/clean.cjs.map +0 -1
- package/dist/bin/package/compile-only.cjs +0 -564
- package/dist/bin/package/compile-only.cjs.map +0 -1
- package/dist/bin/package/compile-tsup.cjs +0 -519
- package/dist/bin/package/compile-tsup.cjs.map +0 -1
- package/dist/bin/package/compile.cjs +0 -567
- package/dist/bin/package/compile.cjs.map +0 -1
- package/dist/bin/package/copy-assets-cjs.cjs +0 -86
- package/dist/bin/package/copy-assets-cjs.cjs.map +0 -1
- package/dist/bin/package/copy-assets-esm.cjs +0 -86
- package/dist/bin/package/copy-assets-esm.cjs.map +0 -1
- package/dist/bin/package/deps.cjs +0 -208
- package/dist/bin/package/deps.cjs.map +0 -1
- package/dist/bin/package/gen-docs.cjs +0 -143
- package/dist/bin/package/gen-docs.cjs.map +0 -1
- package/dist/bin/package/publint.cjs +0 -77
- package/dist/bin/package/publint.cjs.map +0 -1
- package/dist/bin/package/recompile.cjs +0 -611
- package/dist/bin/package/recompile.cjs.map +0 -1
- package/dist/bin/publint.cjs +0 -39
- package/dist/bin/publint.cjs.map +0 -1
- package/dist/bin/rebuild.cjs +0 -39
- package/dist/bin/rebuild.cjs.map +0 -1
- package/dist/bin/recompile.cjs +0 -39
- package/dist/bin/recompile.cjs.map +0 -1
- package/dist/bin/reinstall.cjs +0 -39
- package/dist/bin/reinstall.cjs.map +0 -1
- package/dist/bin/relint.cjs +0 -39
- package/dist/bin/relint.cjs.map +0 -1
- package/dist/bin/sonar.cjs +0 -39
- package/dist/bin/sonar.cjs.map +0 -1
- package/dist/bin/test.cjs +0 -39
- package/dist/bin/test.cjs.map +0 -1
- package/dist/bin/up.cjs +0 -39
- package/dist/bin/up.cjs.map +0 -1
- package/dist/bin/updo.cjs +0 -39
- package/dist/bin/updo.cjs.map +0 -1
- package/dist/bin/upplug.cjs +0 -39
- package/dist/bin/upplug.cjs.map +0 -1
- package/dist/bin/upyarn.cjs +0 -39
- package/dist/bin/upyarn.cjs.map +0 -1
- package/dist/bin/xy-ts.cjs +0 -1890
- package/dist/bin/xy-ts.cjs.map +0 -1
- package/dist/bin/xy.cjs +0 -1890
- package/dist/bin/xy.cjs.map +0 -1
- package/dist/bin/yarn3only.cjs +0 -39
- package/dist/bin/yarn3only.cjs.map +0 -1
- package/dist/index.cjs +0 -3129
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -359
- package/dist/lib/checkResult.cjs +0 -52
- package/dist/lib/checkResult.cjs.map +0 -1
- package/dist/lib/createBuildConfig.cjs +0 -93
- package/dist/lib/createBuildConfig.cjs.map +0 -1
- package/dist/lib/defaultBuildConfig.cjs +0 -52
- package/dist/lib/defaultBuildConfig.cjs.map +0 -1
- package/dist/lib/dependencies/DuplicateDetector.cjs +0 -124
- package/dist/lib/dependencies/DuplicateDetector.cjs.map +0 -1
- package/dist/lib/dependencies/detectDuplicateDependencies.cjs +0 -207
- package/dist/lib/dependencies/detectDuplicateDependencies.cjs.map +0 -1
- package/dist/lib/dependencies/index.cjs +0 -211
- package/dist/lib/dependencies/index.cjs.map +0 -1
- package/dist/lib/file/ReadFileSyncOptions.cjs +0 -33
- package/dist/lib/file/ReadFileSyncOptions.cjs.map +0 -1
- package/dist/lib/file/constants.cjs +0 -34
- package/dist/lib/file/constants.cjs.map +0 -1
- package/dist/lib/file/fileLines.cjs +0 -58
- package/dist/lib/file/fileLines.cjs.map +0 -1
- package/dist/lib/file/index.cjs +0 -74
- package/dist/lib/file/index.cjs.map +0 -1
- package/dist/lib/file/tryReadFileSync.cjs +0 -42
- package/dist/lib/file/tryReadFileSync.cjs.map +0 -1
- package/dist/lib/generateIgnoreFiles.cjs +0 -132
- package/dist/lib/generateIgnoreFiles.cjs.map +0 -1
- package/dist/lib/index.cjs +0 -614
- package/dist/lib/index.cjs.map +0 -1
- package/dist/lib/jsonFormatters.cjs +0 -37
- package/dist/lib/jsonFormatters.cjs.map +0 -1
- package/dist/lib/loadConfig.cjs +0 -59
- package/dist/lib/loadConfig.cjs.map +0 -1
- package/dist/lib/parsedPackageJSON.cjs +0 -37
- package/dist/lib/parsedPackageJSON.cjs.map +0 -1
- package/dist/lib/processEx.cjs +0 -72
- package/dist/lib/processEx.cjs.map +0 -1
- package/dist/lib/runSteps.cjs +0 -134
- package/dist/lib/runSteps.cjs.map +0 -1
- package/dist/lib/runStepsAsync.cjs +0 -147
- package/dist/lib/runStepsAsync.cjs.map +0 -1
- package/dist/lib/runXy.cjs +0 -150
- package/dist/lib/runXy.cjs.map +0 -1
- package/dist/lib/runXyWithWarning.cjs +0 -49
- package/dist/lib/runXyWithWarning.cjs.map +0 -1
- package/dist/lib/safeExit.cjs +0 -100
- package/dist/lib/safeExit.cjs.map +0 -1
- package/dist/lib/string/empty.cjs +0 -35
- package/dist/lib/string/empty.cjs.map +0 -1
- package/dist/lib/string/index.cjs +0 -45
- package/dist/lib/string/index.cjs.map +0 -1
- package/dist/lib/string/union.cjs +0 -35
- package/dist/lib/string/union.cjs.map +0 -1
- package/dist/lib/withErrnoException.cjs +0 -41
- package/dist/lib/withErrnoException.cjs.map +0 -1
- package/dist/lib/withError.cjs +0 -34
- package/dist/lib/withError.cjs.map +0 -1
- package/dist/lib/yarn/index.cjs +0 -93
- package/dist/lib/yarn/index.cjs.map +0 -1
- package/dist/lib/yarn/isYarnVersionOrGreater.cjs +0 -52
- package/dist/lib/yarn/isYarnVersionOrGreater.cjs.map +0 -1
- package/dist/lib/yarn/workspace/Workspace.cjs +0 -19
- package/dist/lib/yarn/workspace/Workspace.cjs.map +0 -1
- package/dist/lib/yarn/workspace/index.cjs +0 -60
- package/dist/lib/yarn/workspace/index.cjs.map +0 -1
- package/dist/lib/yarn/workspace/yarnWorkspace.cjs +0 -58
- package/dist/lib/yarn/workspace/yarnWorkspace.cjs.map +0 -1
- package/dist/lib/yarn/workspace/yarnWorkspaces.cjs +0 -49
- package/dist/lib/yarn/workspace/yarnWorkspaces.cjs.map +0 -1
- package/dist/lib/yarn/yarnInitCwd.cjs +0 -35
- package/dist/lib/yarn/yarnInitCwd.cjs.map +0 -1
- package/dist/loadPackageConfig.cjs +0 -39
- package/dist/loadPackageConfig.cjs.map +0 -1
- package/dist/types.d.cjs +0 -2
- package/dist/types.d.cjs.map +0 -1
- package/dist/xy/index.cjs +0 -1909
- package/dist/xy/index.cjs.map +0 -1
- package/dist/xy/param.cjs +0 -36
- package/dist/xy/param.cjs.map +0 -1
- package/dist/xy/xy.cjs +0 -1895
- package/dist/xy/xy.cjs.map +0 -1
- package/dist/xy/xyBuildCommands.cjs +0 -595
- package/dist/xy/xyBuildCommands.cjs.map +0 -1
- package/dist/xy/xyCommonCommands.cjs +0 -723
- package/dist/xy/xyCommonCommands.cjs.map +0 -1
- package/dist/xy/xyDeployCommands.cjs +0 -263
- package/dist/xy/xyDeployCommands.cjs.map +0 -1
- package/dist/xy/xyInstallCommands.cjs +0 -508
- package/dist/xy/xyInstallCommands.cjs.map +0 -1
- package/dist/xy/xyLintCommands.cjs +0 -466
- package/dist/xy/xyLintCommands.cjs.map +0 -1
- package/dist/xy/xyParseOptions.cjs +0 -84
- package/dist/xy/xyParseOptions.cjs.map +0 -1
package/dist/actions/index.mjs
CHANGED
|
@@ -292,7 +292,7 @@ var mergeEntries = /* @__PURE__ */ __name((a, b) => [
|
|
|
292
292
|
].sort(), "mergeEntries");
|
|
293
293
|
var generateIgnoreFiles = /* @__PURE__ */ __name((filename3, pkg) => {
|
|
294
294
|
console.log(chalk4.green(`Generate ${filename3} Files`));
|
|
295
|
-
const
|
|
295
|
+
const cwd3 = INIT_CWD() ?? ".";
|
|
296
296
|
const workspaces = pkg ? [
|
|
297
297
|
yarnWorkspace(pkg)
|
|
298
298
|
] : yarnWorkspaces();
|
|
@@ -300,7 +300,7 @@ var generateIgnoreFiles = /* @__PURE__ */ __name((filename3, pkg) => {
|
|
|
300
300
|
const writeEntries = /* @__PURE__ */ __name((location, entries) => writeLines(`${location}/${filename3}`, entries), "writeEntries");
|
|
301
301
|
const results = workspaces.map(({ location, name }) => {
|
|
302
302
|
try {
|
|
303
|
-
writeEntries(location, mergeEntries(readEntries(
|
|
303
|
+
writeEntries(location, mergeEntries(readEntries(cwd3), readEntries(location)));
|
|
304
304
|
return 0;
|
|
305
305
|
} catch (ex) {
|
|
306
306
|
const error = ex;
|
|
@@ -1253,7 +1253,7 @@ var packageClean = /* @__PURE__ */ __name(async () => {
|
|
|
1253
1253
|
}, "packageClean");
|
|
1254
1254
|
|
|
1255
1255
|
// src/actions/package/compile/compile.ts
|
|
1256
|
-
import
|
|
1256
|
+
import chalk22 from "chalk";
|
|
1257
1257
|
|
|
1258
1258
|
// src/actions/package/publint.ts
|
|
1259
1259
|
import { promises as fs } from "node:fs";
|
|
@@ -1341,7 +1341,7 @@ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerO
|
|
|
1341
1341
|
console.log(`Compiling with NoEmit TSC [${pkg}]`);
|
|
1342
1342
|
}
|
|
1343
1343
|
const compilerOptions = {
|
|
1344
|
-
...
|
|
1344
|
+
...getCompilerOptions({
|
|
1345
1345
|
outDir: "dist",
|
|
1346
1346
|
removeComments: true,
|
|
1347
1347
|
rootDir: "src"
|
|
@@ -1380,7 +1380,6 @@ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerO
|
|
|
1380
1380
|
}, "packageCompileTsc");
|
|
1381
1381
|
|
|
1382
1382
|
// src/actions/package/compile/packageCompileTsup.ts
|
|
1383
|
-
import merge3 from "lodash/merge.js";
|
|
1384
1383
|
import { build as build2, defineConfig } from "tsup";
|
|
1385
1384
|
|
|
1386
1385
|
// src/actions/package/compile/inputs.ts
|
|
@@ -1419,103 +1418,6 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode, verbose = false) =
|
|
|
1419
1418
|
}
|
|
1420
1419
|
}, "buildEntries");
|
|
1421
1420
|
|
|
1422
|
-
// src/actions/package/compile/packageCompileTscTypes.ts
|
|
1423
|
-
import { cwd as cwd2 } from "node:process";
|
|
1424
|
-
import chalk22 from "chalk";
|
|
1425
|
-
import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
|
|
1426
|
-
import { DiagnosticCategory as DiagnosticCategory2 } from "typescript";
|
|
1427
|
-
|
|
1428
|
-
// src/actions/package/compile/copyTypeFiles.ts
|
|
1429
|
-
import { copyFile, readdir } from "node:fs/promises";
|
|
1430
|
-
import { Mutex } from "async-mutex";
|
|
1431
|
-
var copyFileMutex = new Mutex();
|
|
1432
|
-
var getDistTypeFiles = /* @__PURE__ */ __name(async (compilerOptions) => {
|
|
1433
|
-
const outDir = compilerOptions.outDir ?? "dist";
|
|
1434
|
-
return (await readdir(outDir, {
|
|
1435
|
-
recursive: true
|
|
1436
|
-
})).filter((file) => file.endsWith("d.ts")).map((file) => `${outDir}/${file}`);
|
|
1437
|
-
}, "getDistTypeFiles");
|
|
1438
|
-
var getDistTypeMapFiles = /* @__PURE__ */ __name(async (compilerOptions) => {
|
|
1439
|
-
const outDir = compilerOptions.outDir ?? "dist";
|
|
1440
|
-
return (await readdir(outDir, {
|
|
1441
|
-
recursive: true
|
|
1442
|
-
})).filter((file) => file.endsWith("d.ts.map")).map((file) => `${outDir}/${file}`);
|
|
1443
|
-
}, "getDistTypeMapFiles");
|
|
1444
|
-
var copyTypeFiles = /* @__PURE__ */ __name(async (compilerOptions) => {
|
|
1445
|
-
await copyFileMutex.runExclusive(async () => {
|
|
1446
|
-
const distTypeFiles = await getDistTypeFiles(compilerOptions);
|
|
1447
|
-
await Promise.all(distTypeFiles.map(async (file) => {
|
|
1448
|
-
await copyFile(file, file.replace("d.ts", "d.mts"));
|
|
1449
|
-
await copyFile(file, file.replace("d.ts", "d.cts"));
|
|
1450
|
-
}));
|
|
1451
|
-
const distTypeMapFiles = await getDistTypeMapFiles(compilerOptions);
|
|
1452
|
-
await Promise.all(distTypeMapFiles.map(async (file) => {
|
|
1453
|
-
await copyFile(file, file.replace("d.ts.map", "d.mts.map"));
|
|
1454
|
-
await copyFile(file, file.replace("d.ts.map", "d.cts.map"));
|
|
1455
|
-
}));
|
|
1456
|
-
});
|
|
1457
|
-
}, "copyTypeFiles");
|
|
1458
|
-
|
|
1459
|
-
// src/actions/package/compile/packageCompileTscTypes.ts
|
|
1460
|
-
var packageCompileTscTypes = /* @__PURE__ */ __name(async (folder = "src", { verbose } = {}, compilerOptionsParam, generateMts = true) => {
|
|
1461
|
-
const pkg = process.env.INIT_CWD ?? cwd2();
|
|
1462
|
-
if (verbose) {
|
|
1463
|
-
console.log(`Compiling types with TSC [${pkg}]`);
|
|
1464
|
-
}
|
|
1465
|
-
const compilerOptions = {
|
|
1466
|
-
...await getCompilerOptions({
|
|
1467
|
-
declaration: true,
|
|
1468
|
-
emitDeclarationOnly: true,
|
|
1469
|
-
outDir: "dist",
|
|
1470
|
-
removeComments: true,
|
|
1471
|
-
skipDefaultLibCheck: true,
|
|
1472
|
-
skipLibCheck: true,
|
|
1473
|
-
sourceMap: true
|
|
1474
|
-
}),
|
|
1475
|
-
...compilerOptionsParam
|
|
1476
|
-
};
|
|
1477
|
-
const files = buildEntries(folder, "all");
|
|
1478
|
-
const result = createProgramFromConfig2({
|
|
1479
|
-
basePath: pkg ?? cwd2(),
|
|
1480
|
-
compilerOptions,
|
|
1481
|
-
exclude: [
|
|
1482
|
-
"dist",
|
|
1483
|
-
"docs",
|
|
1484
|
-
"**/*.spec.*",
|
|
1485
|
-
"**/*.stories.*",
|
|
1486
|
-
"src/**/spec/**/*"
|
|
1487
|
-
],
|
|
1488
|
-
files
|
|
1489
|
-
}).emit();
|
|
1490
|
-
const diagResults = result.diagnostics.length;
|
|
1491
|
-
for (const diag of result.diagnostics) {
|
|
1492
|
-
switch (diag.category) {
|
|
1493
|
-
case DiagnosticCategory2.Error: {
|
|
1494
|
-
console.error(chalk22.red(diag.messageText));
|
|
1495
|
-
console.error(chalk22.grey(pkg));
|
|
1496
|
-
console.error(chalk22.blue(diag.file?.fileName));
|
|
1497
|
-
break;
|
|
1498
|
-
}
|
|
1499
|
-
case DiagnosticCategory2.Warning: {
|
|
1500
|
-
console.error(chalk22.yellow(diag.messageText));
|
|
1501
|
-
console.error(chalk22.grey(pkg));
|
|
1502
|
-
console.error(chalk22.blue(diag.file?.fileName));
|
|
1503
|
-
break;
|
|
1504
|
-
}
|
|
1505
|
-
case DiagnosticCategory2.Suggestion: {
|
|
1506
|
-
console.error(chalk22.white(diag.messageText));
|
|
1507
|
-
console.error(chalk22.grey(pkg));
|
|
1508
|
-
console.error(chalk22.blue(diag.file?.fileName));
|
|
1509
|
-
break;
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
if (generateMts) {
|
|
1514
|
-
await copyTypeFiles(compilerOptions);
|
|
1515
|
-
}
|
|
1516
|
-
return diagResults;
|
|
1517
|
-
}, "packageCompileTscTypes");
|
|
1518
|
-
|
|
1519
1421
|
// src/actions/package/compile/packageCompileTsup.ts
|
|
1520
1422
|
var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, verbose) => {
|
|
1521
1423
|
const outDir = options?.outDir ?? "dist";
|
|
@@ -1524,18 +1426,15 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
|
|
|
1524
1426
|
bundle: true,
|
|
1525
1427
|
cjsInterop: true,
|
|
1526
1428
|
clean: true,
|
|
1527
|
-
dts:
|
|
1429
|
+
dts: true,
|
|
1528
1430
|
entry,
|
|
1529
1431
|
format: [
|
|
1530
|
-
"cjs",
|
|
1531
1432
|
"esm"
|
|
1532
1433
|
],
|
|
1533
|
-
// minify: true,
|
|
1534
1434
|
outDir,
|
|
1535
1435
|
silent: true,
|
|
1536
1436
|
sourcemap: true,
|
|
1537
1437
|
splitting: false,
|
|
1538
|
-
// terserOptions: { format: { comments: false } },
|
|
1539
1438
|
tsconfig: "tsconfig.json",
|
|
1540
1439
|
...options
|
|
1541
1440
|
});
|
|
@@ -1550,11 +1449,6 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
|
|
|
1550
1449
|
];
|
|
1551
1450
|
}))).flat();
|
|
1552
1451
|
await Promise.all(optionsList.map((options2) => build2(options2)));
|
|
1553
|
-
await packageCompileTscTypes(folder, {
|
|
1554
|
-
verbose
|
|
1555
|
-
}, {
|
|
1556
|
-
outDir
|
|
1557
|
-
});
|
|
1558
1452
|
return 0;
|
|
1559
1453
|
}, "compileFolder");
|
|
1560
1454
|
var packageCompileTsup = /* @__PURE__ */ __name(async (config2) => {
|
|
@@ -1573,172 +1467,79 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2) => {
|
|
|
1573
1467
|
const compileForNeutral = compile2?.neutral ?? {
|
|
1574
1468
|
src: {}
|
|
1575
1469
|
};
|
|
1470
|
+
const standardLoaders = {
|
|
1471
|
+
".gif": "copy",
|
|
1472
|
+
".html": "copy",
|
|
1473
|
+
".jpg": "copy",
|
|
1474
|
+
".json": "json",
|
|
1475
|
+
".png": "copy",
|
|
1476
|
+
".svg": "copy",
|
|
1477
|
+
".webp": "copy"
|
|
1478
|
+
};
|
|
1479
|
+
const standardOptions = {
|
|
1480
|
+
bundle: true,
|
|
1481
|
+
format: [
|
|
1482
|
+
"esm"
|
|
1483
|
+
],
|
|
1484
|
+
loader: standardLoaders,
|
|
1485
|
+
outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
|
|
1486
|
+
js: ".mjs"
|
|
1487
|
+
} : {
|
|
1488
|
+
js: ".cjs"
|
|
1489
|
+
}, "outExtension"),
|
|
1490
|
+
skipNodeModulesBundle: true,
|
|
1491
|
+
sourcemap: true,
|
|
1492
|
+
target: "esnext"
|
|
1493
|
+
};
|
|
1576
1494
|
return await packageCompileTsc(true, {
|
|
1577
1495
|
publint: false,
|
|
1578
1496
|
verbose
|
|
1579
1497
|
}) || (await Promise.all(Object.entries(compileForNode).map(async ([folder, options]) => {
|
|
1580
1498
|
const inEsBuildOptions = typeof compile2?.node?.esbuildOptions === "object" ? compile2?.node?.esbuildOptions : {};
|
|
1581
1499
|
return folder ? await compileFolder(folder, compile2?.entryMode, {
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
loader: merge3({}, {
|
|
1588
|
-
".gif": "copy",
|
|
1589
|
-
".html": "copy",
|
|
1590
|
-
".jpg": "copy",
|
|
1591
|
-
".json": "json",
|
|
1592
|
-
".png": "copy",
|
|
1593
|
-
".svg": "copy",
|
|
1594
|
-
".webp": "copy"
|
|
1595
|
-
}, inEsBuildOptions?.loader),
|
|
1596
|
-
// minify: true,
|
|
1500
|
+
...standardOptions,
|
|
1501
|
+
loader: {
|
|
1502
|
+
...standardOptions.loader,
|
|
1503
|
+
...inEsBuildOptions?.loader
|
|
1504
|
+
},
|
|
1597
1505
|
outDir: "dist/node",
|
|
1598
|
-
outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
|
|
1599
|
-
js: ".mjs"
|
|
1600
|
-
} : {
|
|
1601
|
-
js: ".cjs"
|
|
1602
|
-
}, "outExtension"),
|
|
1603
1506
|
platform: "node",
|
|
1604
|
-
skipNodeModulesBundle: true,
|
|
1605
|
-
sourcemap: true,
|
|
1606
|
-
target: "node16",
|
|
1607
|
-
// terserOptions: { format: { comments: false } },
|
|
1608
1507
|
...compile2?.tsup?.options,
|
|
1609
1508
|
...typeof options === "object" ? options : {}
|
|
1610
1509
|
}, verbose) : 0;
|
|
1611
1510
|
}))).reduce((prev, value) => prev + value, 0) || (await Promise.all(Object.entries(compileForBrowser).map(async ([folder, options]) => {
|
|
1612
1511
|
const inEsBuildOptions = typeof compile2?.browser?.esbuildOptions === "object" ? compile2?.browser?.esbuildOptions : {};
|
|
1613
|
-
return folder ?
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
".png": "copy",
|
|
1625
|
-
".svg": "copy",
|
|
1626
|
-
".webp": "copy"
|
|
1627
|
-
}, inEsBuildOptions?.loader),
|
|
1628
|
-
// minify: true,
|
|
1629
|
-
outDir: "dist/browser",
|
|
1630
|
-
outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
|
|
1631
|
-
js: ".mjs"
|
|
1632
|
-
} : {
|
|
1633
|
-
js: ".cjs"
|
|
1634
|
-
}, "outExtension"),
|
|
1635
|
-
platform: "browser",
|
|
1636
|
-
skipNodeModulesBundle: true,
|
|
1637
|
-
sourcemap: true,
|
|
1638
|
-
target: "esnext",
|
|
1639
|
-
// terserOptions: { format: { comments: false } },
|
|
1640
|
-
...compile2?.tsup?.options,
|
|
1641
|
-
...typeof options === "object" ? options : {}
|
|
1642
|
-
}, verbose),
|
|
1643
|
-
compileFolder(folder, compile2?.entryMode, {
|
|
1644
|
-
bundle: true,
|
|
1645
|
-
format: [
|
|
1646
|
-
"esm"
|
|
1647
|
-
],
|
|
1648
|
-
loader: merge3({}, {
|
|
1649
|
-
".gif": "copy",
|
|
1650
|
-
".html": "copy",
|
|
1651
|
-
".jpg": "copy",
|
|
1652
|
-
".json": "json",
|
|
1653
|
-
".png": "copy",
|
|
1654
|
-
".svg": "copy",
|
|
1655
|
-
".webp": "copy"
|
|
1656
|
-
}, inEsBuildOptions?.loader),
|
|
1657
|
-
// minify: true,
|
|
1658
|
-
outDir: "dist/browser",
|
|
1659
|
-
outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
|
|
1660
|
-
js: ".mjs"
|
|
1661
|
-
} : {
|
|
1662
|
-
js: ".cjs"
|
|
1663
|
-
}, "outExtension"),
|
|
1664
|
-
platform: "browser",
|
|
1665
|
-
skipNodeModulesBundle: true,
|
|
1666
|
-
sourcemap: true,
|
|
1667
|
-
target: "esnext",
|
|
1668
|
-
// terserOptions: { format: { comments: false } },
|
|
1669
|
-
...compile2?.tsup?.options,
|
|
1670
|
-
...typeof options === "object" ? options : {}
|
|
1671
|
-
}, verbose)
|
|
1672
|
-
])).reduce((prev, value) => prev + value, 0) : 0;
|
|
1512
|
+
return folder ? await compileFolder(folder, compile2?.entryMode, {
|
|
1513
|
+
...standardOptions,
|
|
1514
|
+
loader: {
|
|
1515
|
+
...standardOptions.loader,
|
|
1516
|
+
...inEsBuildOptions?.loader
|
|
1517
|
+
},
|
|
1518
|
+
outDir: "dist/browser",
|
|
1519
|
+
platform: "browser",
|
|
1520
|
+
...compile2?.tsup?.options,
|
|
1521
|
+
...typeof options === "object" ? options : {}
|
|
1522
|
+
}, verbose) : 0;
|
|
1673
1523
|
}))).reduce((prev, value) => prev + value, 0) || (await Promise.all(Object.entries(compileForNeutral).map(async ([folder, options]) => {
|
|
1674
1524
|
const inEsBuildOptions = typeof compile2?.neutral?.esbuildOptions === "object" ? compile2?.neutral?.esbuildOptions : {};
|
|
1675
|
-
return folder ?
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
".png": "copy",
|
|
1687
|
-
".svg": "copy",
|
|
1688
|
-
".webp": "copy"
|
|
1689
|
-
}, inEsBuildOptions?.loader),
|
|
1690
|
-
// minify: true,
|
|
1691
|
-
outDir: "dist/neutral",
|
|
1692
|
-
outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
|
|
1693
|
-
js: ".mjs"
|
|
1694
|
-
} : {
|
|
1695
|
-
js: ".cjs"
|
|
1696
|
-
}, "outExtension"),
|
|
1697
|
-
platform: "neutral",
|
|
1698
|
-
skipNodeModulesBundle: true,
|
|
1699
|
-
sourcemap: true,
|
|
1700
|
-
target: "esnext",
|
|
1701
|
-
// terserOptions: { format: { comments: false } },
|
|
1702
|
-
...compile2?.tsup?.options,
|
|
1703
|
-
...typeof options === "object" ? options : {}
|
|
1704
|
-
}, verbose),
|
|
1705
|
-
compileFolder(folder, compile2?.entryMode, {
|
|
1706
|
-
bundle: true,
|
|
1707
|
-
format: [
|
|
1708
|
-
"esm"
|
|
1709
|
-
],
|
|
1710
|
-
loader: merge3({}, {
|
|
1711
|
-
".gif": "copy",
|
|
1712
|
-
".html": "copy",
|
|
1713
|
-
".jpg": "copy",
|
|
1714
|
-
".json": "json",
|
|
1715
|
-
".png": "copy",
|
|
1716
|
-
".svg": "copy",
|
|
1717
|
-
".webp": "copy"
|
|
1718
|
-
}, inEsBuildOptions?.loader),
|
|
1719
|
-
// minify: true,
|
|
1720
|
-
outDir: "dist/neutral",
|
|
1721
|
-
outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
|
|
1722
|
-
js: ".mjs"
|
|
1723
|
-
} : {
|
|
1724
|
-
js: ".cjs"
|
|
1725
|
-
}, "outExtension"),
|
|
1726
|
-
platform: "neutral",
|
|
1727
|
-
skipNodeModulesBundle: true,
|
|
1728
|
-
sourcemap: true,
|
|
1729
|
-
target: "esnext",
|
|
1730
|
-
// terserOptions: { format: { comments: false } },
|
|
1731
|
-
...compile2?.tsup?.options,
|
|
1732
|
-
...typeof options === "object" ? options : {}
|
|
1733
|
-
}, verbose)
|
|
1734
|
-
])).reduce((prev, value) => prev + value, 0) : 0;
|
|
1525
|
+
return folder ? await compileFolder(folder, compile2?.entryMode, {
|
|
1526
|
+
...standardOptions,
|
|
1527
|
+
loader: {
|
|
1528
|
+
...standardOptions.loader,
|
|
1529
|
+
...inEsBuildOptions?.loader
|
|
1530
|
+
},
|
|
1531
|
+
outDir: "dist/neutral",
|
|
1532
|
+
platform: "neutral",
|
|
1533
|
+
...compile2?.tsup?.options,
|
|
1534
|
+
...typeof options === "object" ? options : {}
|
|
1535
|
+
}, verbose) : 0;
|
|
1735
1536
|
}))).reduce((prev, value) => prev + value, 0) || (publint2 ? await packagePublint() : 0);
|
|
1736
1537
|
}, "packageCompileTsup");
|
|
1737
1538
|
|
|
1738
1539
|
// src/actions/package/compile/compile.ts
|
|
1739
1540
|
var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
|
|
1740
1541
|
const pkg = process.env.INIT_CWD;
|
|
1741
|
-
console.log(
|
|
1542
|
+
console.log(chalk22.green(`Compiling ${pkg}`));
|
|
1742
1543
|
const config2 = await loadConfig(inConfig);
|
|
1743
1544
|
const publint2 = config2.publint;
|
|
1744
1545
|
const mode = config2.compile?.mode ?? "tsup";
|
|
@@ -1758,7 +1559,7 @@ var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
|
|
|
1758
1559
|
|
|
1759
1560
|
// src/actions/package/copy-assets.ts
|
|
1760
1561
|
import path5 from "node:path/posix";
|
|
1761
|
-
import
|
|
1562
|
+
import chalk23 from "chalk";
|
|
1762
1563
|
import cpy2 from "cpy";
|
|
1763
1564
|
var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) => {
|
|
1764
1565
|
try {
|
|
@@ -1777,7 +1578,7 @@ var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) =>
|
|
|
1777
1578
|
flat: false
|
|
1778
1579
|
});
|
|
1779
1580
|
if (values.length > 0) {
|
|
1780
|
-
console.log(
|
|
1581
|
+
console.log(chalk23.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
|
|
1781
1582
|
}
|
|
1782
1583
|
for (const value of values) {
|
|
1783
1584
|
console.log(`${value.split("/").pop()} => ./dist/${target}`);
|
|
@@ -1807,8 +1608,8 @@ var packageCopyAssets = /* @__PURE__ */ __name(async ({ target }) => {
|
|
|
1807
1608
|
|
|
1808
1609
|
// src/actions/package/deps.ts
|
|
1809
1610
|
import { existsSync as existsSync4, readFileSync as readFileSync3 } from "node:fs";
|
|
1810
|
-
import { cwd as
|
|
1811
|
-
import
|
|
1611
|
+
import { cwd as cwd2 } from "node:process";
|
|
1612
|
+
import chalk24 from "chalk";
|
|
1812
1613
|
import depcheck from "depcheck";
|
|
1813
1614
|
var special = depcheck.special;
|
|
1814
1615
|
var defaultIgnorePatterns = [
|
|
@@ -1835,21 +1636,21 @@ var defaultIgnoreDevPatterns = [
|
|
|
1835
1636
|
var reportUnused = /* @__PURE__ */ __name((name, unused) => {
|
|
1836
1637
|
if (unused.length > 0) {
|
|
1837
1638
|
const message = [
|
|
1838
|
-
|
|
1639
|
+
chalk24.yellow(`${unused.length} Unused ${name}`)
|
|
1839
1640
|
];
|
|
1840
|
-
for (const value of unused) message.push(
|
|
1641
|
+
for (const value of unused) message.push(chalk24.gray(` ${value}`));
|
|
1841
1642
|
console.log(message.join("\n"));
|
|
1842
1643
|
}
|
|
1843
1644
|
}, "reportUnused");
|
|
1844
1645
|
var reportMissing = /* @__PURE__ */ __name((name, missing) => {
|
|
1845
1646
|
if (Object.keys(missing).length > 0) {
|
|
1846
1647
|
const message = [
|
|
1847
|
-
|
|
1648
|
+
chalk24.yellow(`${Object.entries(missing).length} Missing ${name}`)
|
|
1848
1649
|
];
|
|
1849
1650
|
for (const [key, value] of Object.entries(missing)) {
|
|
1850
|
-
message.push(`${key}`,
|
|
1651
|
+
message.push(`${key}`, chalk24.gray(` ${value.at(0)}`));
|
|
1851
1652
|
}
|
|
1852
|
-
console.log(
|
|
1653
|
+
console.log(chalk24.yellow(message.join("\n")));
|
|
1853
1654
|
}
|
|
1854
1655
|
}, "reportMissing");
|
|
1855
1656
|
var analyzeDeps = /* @__PURE__ */ __name(async (pkg, ignoreMatches) => {
|
|
@@ -1904,7 +1705,7 @@ var analyzeDeps = /* @__PURE__ */ __name(async (pkg, ignoreMatches) => {
|
|
|
1904
1705
|
};
|
|
1905
1706
|
}, "analyzeDeps");
|
|
1906
1707
|
var packageDeps = /* @__PURE__ */ __name(async () => {
|
|
1907
|
-
const pkg = process.env.INIT_CWD ??
|
|
1708
|
+
const pkg = process.env.INIT_CWD ?? cwd2();
|
|
1908
1709
|
const pkgName = process.env.npm_package_name;
|
|
1909
1710
|
const packageContent = existsSync4(`${pkg}/package.json`) ? JSON.parse(readFileSync3(`${pkg}/package.json`, {
|
|
1910
1711
|
encoding: "utf8"
|
|
@@ -1954,10 +1755,10 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
|
|
|
1954
1755
|
reportUnused("dependencies", unusedDeps);
|
|
1955
1756
|
reportUnused("devDependencies", unusedDevDeps);
|
|
1956
1757
|
if (Object.entries(invalidDirs).length > 0) {
|
|
1957
|
-
for (const [key, value] of Object.entries(invalidDirs)) console.warn(
|
|
1758
|
+
for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk24.gray(`Invalid Dir: ${key}: ${value}`));
|
|
1958
1759
|
}
|
|
1959
1760
|
if (Object.entries(invalidFiles).length > 0) {
|
|
1960
|
-
for (const [key, value] of Object.entries(invalidFiles)) console.warn(
|
|
1761
|
+
for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk24.gray(`Invalid File: ${key}: ${value}`));
|
|
1961
1762
|
}
|
|
1962
1763
|
reportMissing("dependencies", missingDepsObject);
|
|
1963
1764
|
reportMissing("devDependencies", missingDevDepsObject);
|
|
@@ -1968,7 +1769,7 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
|
|
|
1968
1769
|
// src/actions/package/gen-docs.ts
|
|
1969
1770
|
import { existsSync as existsSync5 } from "node:fs";
|
|
1970
1771
|
import path6 from "node:path";
|
|
1971
|
-
import
|
|
1772
|
+
import chalk25 from "chalk";
|
|
1972
1773
|
import { Application, ArgumentsReader, TSConfigReader, TypeDocReader } from "typedoc";
|
|
1973
1774
|
var ExitCodes = {
|
|
1974
1775
|
CompileError: 3,
|
|
@@ -2070,7 +1871,7 @@ var runTypeDoc = /* @__PURE__ */ __name(async (app) => {
|
|
|
2070
1871
|
return ExitCodes.OutputError;
|
|
2071
1872
|
}
|
|
2072
1873
|
}
|
|
2073
|
-
console.log(
|
|
1874
|
+
console.log(chalk25.green(`${pkgName} - Ok`));
|
|
2074
1875
|
return ExitCodes.Ok;
|
|
2075
1876
|
}, "runTypeDoc");
|
|
2076
1877
|
|
|
@@ -2140,7 +1941,7 @@ var rebuild = /* @__PURE__ */ __name(({ target }) => {
|
|
|
2140
1941
|
}, "rebuild");
|
|
2141
1942
|
|
|
2142
1943
|
// src/actions/recompile.ts
|
|
2143
|
-
import
|
|
1944
|
+
import chalk26 from "chalk";
|
|
2144
1945
|
var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incremental }) => {
|
|
2145
1946
|
return pkg ? await recompilePackage({
|
|
2146
1947
|
pkg,
|
|
@@ -2201,7 +2002,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
|
|
|
2201
2002
|
`${jobs}`
|
|
2202
2003
|
] : [];
|
|
2203
2004
|
if (jobs) {
|
|
2204
|
-
console.log(
|
|
2005
|
+
console.log(chalk26.blue(`Jobs set to [${jobs}]`));
|
|
2205
2006
|
}
|
|
2206
2007
|
const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
|
|
2207
2008
|
[
|
|
@@ -2218,7 +2019,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
|
|
|
2218
2019
|
]
|
|
2219
2020
|
]
|
|
2220
2021
|
]);
|
|
2221
|
-
console.log(`${
|
|
2022
|
+
console.log(`${chalk26.gray("Recompiled in")} [${chalk26.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk26.gray("seconds")}`);
|
|
2222
2023
|
return result;
|
|
2223
2024
|
}, "recompileAll");
|
|
2224
2025
|
|
|
@@ -2318,7 +2119,7 @@ var sonar = /* @__PURE__ */ __name(() => {
|
|
|
2318
2119
|
}, "sonar");
|
|
2319
2120
|
|
|
2320
2121
|
// src/actions/statics.ts
|
|
2321
|
-
import
|
|
2122
|
+
import chalk27 from "chalk";
|
|
2322
2123
|
var DefaultDependencies = [
|
|
2323
2124
|
"axios",
|
|
2324
2125
|
"@xylabs/pixel",
|
|
@@ -2329,7 +2130,7 @@ var DefaultDependencies = [
|
|
|
2329
2130
|
"@mui/system"
|
|
2330
2131
|
];
|
|
2331
2132
|
var statics = /* @__PURE__ */ __name(() => {
|
|
2332
|
-
console.log(
|
|
2133
|
+
console.log(chalk27.green("Check Required Static Dependencies"));
|
|
2333
2134
|
const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
|
|
2334
2135
|
return detectDuplicateDependencies(statics2, DefaultDependencies);
|
|
2335
2136
|
}, "statics");
|