@xylabs/ts-scripts-yarn3 6.5.7 → 6.5.8
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/build.mjs +2 -2
- package/dist/actions/clean-docs.mjs +3 -3
- package/dist/actions/clean-eslint.mjs +2 -2
- package/dist/actions/clean-jest.mjs +2 -2
- package/dist/actions/clean.mjs +2 -2
- package/dist/actions/compile-types.mjs +2 -2
- package/dist/actions/compile.mjs +2 -2
- package/dist/actions/copy-assets.mjs +2 -2
- package/dist/actions/cycle.mjs +2 -2
- package/dist/actions/dead.mjs +2 -2
- package/dist/actions/deplint/checkPackage/checkPackage.mjs +4 -4
- package/dist/actions/deplint/checkPackage/index.mjs +4 -4
- package/dist/actions/deplint/deplint.mjs +5 -5
- package/dist/actions/deplint/getDependenciesFromPackageJson.mjs +2 -2
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs +2 -2
- package/dist/actions/deplint/getImportsFromFile.mjs +2 -2
- package/dist/actions/deplint/index.mjs +5 -5
- package/dist/actions/deploy-major.mjs +4 -4
- package/dist/actions/deploy-minor.mjs +4 -4
- package/dist/actions/deploy-next.mjs +4 -4
- package/dist/actions/deploy.mjs +4 -4
- package/dist/actions/dupdeps.mjs +3 -3
- package/dist/actions/fix.mjs +2 -2
- package/dist/actions/gen-docs.mjs +2 -2
- package/dist/actions/gitignore-gen.mjs +2 -2
- package/dist/actions/gitlint-fix.mjs +1 -1
- package/dist/actions/index.mjs +42 -42
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/knip.mjs +2 -2
- package/dist/actions/license.mjs +1 -1
- package/dist/actions/lint.mjs +2 -2
- package/dist/actions/npmignore-gen.mjs +2 -2
- package/dist/actions/package/clean-outputs.mjs +2 -2
- package/dist/actions/package/clean-typescript.mjs +2 -2
- package/dist/actions/package/clean.mjs +3 -3
- package/dist/actions/package/compile/compile.mjs +10 -10
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/compileTypes.mjs +2 -2
- package/dist/actions/package/compile/copyTypeFiles.mjs +1 -1
- package/dist/actions/package/compile/getCompilerOptions.mjs +1 -1
- package/dist/actions/package/compile/index.mjs +10 -10
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs +2 -2
- package/dist/actions/package/compile/packageCompileTscTypes.mjs +2 -2
- package/dist/actions/package/compile/packageCompileTsup.mjs +9 -9
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/copy-assets.mjs +1 -1
- package/dist/actions/package/gen-docs.mjs +2 -2
- package/dist/actions/package/index.mjs +20 -20
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/lint.mjs +4 -4
- package/dist/actions/package/publint.mjs +1 -1
- package/dist/actions/package/recompile.mjs +13 -13
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/actions/publint.mjs +4 -4
- package/dist/actions/rebuild.mjs +2 -2
- package/dist/actions/recompile.mjs +2 -2
- package/dist/actions/recompile.mjs.map +1 -1
- package/dist/actions/reinstall.mjs +4 -4
- package/dist/actions/relint.mjs +2 -2
- package/dist/actions/retest.mjs +2 -2
- package/dist/actions/sonar.mjs +2 -2
- package/dist/actions/statics.mjs +3 -3
- package/dist/actions/test.mjs +2 -2
- package/dist/actions/up.mjs +2 -2
- package/dist/actions/updo.mjs +2 -2
- package/dist/actions/upplug.mjs +2 -2
- package/dist/actions/upyarn.mjs +2 -2
- package/dist/actions/yarn3only.mjs +1 -1
- package/dist/bin/package/build-only.mjs +10 -10
- package/dist/bin/package/build-only.mjs.map +1 -1
- package/dist/bin/package/build.mjs +10 -10
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean-outputs.mjs +2 -2
- package/dist/bin/package/clean-typescript.mjs +2 -2
- package/dist/bin/package/clean.mjs +3 -3
- package/dist/bin/package/compile-only.mjs +10 -10
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +9 -9
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile-types.mjs +2 -2
- package/dist/bin/package/compile.mjs +10 -10
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +1 -1
- package/dist/bin/package/fix.mjs +4 -4
- package/dist/bin/package/gen-docs.mjs +2 -2
- package/dist/bin/package/lint.mjs +4 -4
- package/dist/bin/package/publint.mjs +1 -1
- package/dist/bin/package/recompile.mjs +13 -13
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +4 -4
- package/dist/bin/xy.mjs +23 -23
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.mjs +45 -45
- package/dist/index.mjs.map +1 -1
- package/dist/lib/createBuildConfig.mjs +1 -1
- package/dist/lib/deleteGlob.mjs +1 -1
- package/dist/lib/dependencies/DuplicateDetector.mjs +1 -1
- package/dist/lib/dependencies/detectDuplicateDependencies.mjs +2 -2
- package/dist/lib/dependencies/index.mjs +2 -2
- package/dist/lib/file/fileLines.mjs +1 -1
- package/dist/lib/file/index.mjs +2 -2
- package/dist/lib/file/tryReadFileSync.mjs +1 -1
- package/dist/lib/generateIgnoreFiles.mjs +2 -2
- package/dist/lib/index.mjs +13 -13
- package/dist/lib/parsedPackageJSON.mjs +1 -1
- package/dist/lib/runSteps.mjs +2 -2
- package/dist/lib/runStepsAsync.mjs +2 -2
- package/dist/lib/runXy.mjs +2 -2
- package/dist/lib/yarn/index.mjs +2 -2
- package/dist/lib/yarn/isYarnVersionOrGreater.mjs +1 -1
- package/dist/lib/yarn/workspace/index.mjs +1 -1
- package/dist/lib/yarn/workspace/yarnWorkspace.mjs +1 -1
- package/dist/lib/yarn/workspace/yarnWorkspaces.mjs +1 -1
- package/dist/loadPackageConfig.mjs +1 -1
- package/dist/xy/index.mjs +23 -23
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +23 -23
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyBuildCommands.mjs +6 -6
- package/dist/xy/xyBuildCommands.mjs.map +1 -1
- package/dist/xy/xyCommonCommands.mjs +8 -8
- package/dist/xy/xyDeployCommands.mjs +7 -7
- package/dist/xy/xyInstallCommands.mjs +9 -9
- package/dist/xy/xyLintCommands.mjs +9 -9
- package/package.json +9 -8
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ var checkResult = (name, result, level = "error", exitOnFail = false) => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
// src/lib/createBuildConfig.ts
|
|
18
|
-
import { readFileSync } from "
|
|
18
|
+
import { readFileSync } from "fs";
|
|
19
19
|
|
|
20
20
|
// src/lib/defaultBuildConfig.ts
|
|
21
21
|
var defaultBuildConfig = {
|
|
@@ -67,7 +67,7 @@ var createBuildConfig = (location, module, target, outDirSuffix) => {
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
// src/lib/deleteGlob.ts
|
|
70
|
-
import fs from "
|
|
70
|
+
import fs from "fs";
|
|
71
71
|
import { glob } from "glob";
|
|
72
72
|
var deleteGlob = (globPath) => {
|
|
73
73
|
const files = glob.sync(globPath);
|
|
@@ -77,7 +77,7 @@ var deleteGlob = (globPath) => {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
// src/lib/dependencies/detectDuplicateDependencies.ts
|
|
80
|
-
import { execSync } from "
|
|
80
|
+
import { execSync } from "child_process";
|
|
81
81
|
|
|
82
82
|
// src/lib/processEx.ts
|
|
83
83
|
import chalk2 from "chalk";
|
|
@@ -137,7 +137,7 @@ var safeExitAsync = async (func, exitOnFail = true) => {
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
// src/lib/dependencies/DuplicateDetector.ts
|
|
140
|
-
import { EOL } from "
|
|
140
|
+
import { EOL } from "os";
|
|
141
141
|
import chalk3 from "chalk";
|
|
142
142
|
|
|
143
143
|
// src/lib/jsonFormatters.ts
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
existsSync,
|
|
258
258
|
readFileSync as readFileSync2,
|
|
259
259
|
writeFileSync
|
|
260
|
-
} from "
|
|
260
|
+
} from "fs";
|
|
261
261
|
|
|
262
262
|
// src/lib/string/empty.ts
|
|
263
263
|
var empty = (value) => value?.trim().length === 0;
|
|
@@ -279,7 +279,7 @@ var writeLines = (uri, lines, options = defaultReadFileSyncOptions) => {
|
|
|
279
279
|
};
|
|
280
280
|
|
|
281
281
|
// src/lib/file/tryReadFileSync.ts
|
|
282
|
-
import { existsSync as existsSync2, readFileSync as readFileSync3 } from "
|
|
282
|
+
import { existsSync as existsSync2, readFileSync as readFileSync3 } from "fs";
|
|
283
283
|
var tryReadFileSync = (uri, options = defaultReadFileSyncOptions) => {
|
|
284
284
|
return existsSync2(uri) ? readFileSync3(uri, options) : void 0;
|
|
285
285
|
};
|
|
@@ -288,7 +288,7 @@ var tryReadFileSync = (uri, options = defaultReadFileSyncOptions) => {
|
|
|
288
288
|
import chalk4 from "chalk";
|
|
289
289
|
|
|
290
290
|
// src/lib/yarn/isYarnVersionOrGreater.ts
|
|
291
|
-
import { spawnSync } from "
|
|
291
|
+
import { spawnSync } from "child_process";
|
|
292
292
|
var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
293
293
|
const result = spawnSync("yarn", ["-v"], { encoding: "utf8", shell: true });
|
|
294
294
|
const version = result.stdout.toString().replaceAll("\n", "");
|
|
@@ -303,7 +303,7 @@ var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
|
303
303
|
};
|
|
304
304
|
|
|
305
305
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
306
|
-
import { spawnSync as spawnSync2 } from "
|
|
306
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
307
307
|
var yarnWorkspaces = () => {
|
|
308
308
|
const result = spawnSync2("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
309
309
|
if (result.error) {
|
|
@@ -370,7 +370,7 @@ var loadConfig = async (params) => {
|
|
|
370
370
|
};
|
|
371
371
|
|
|
372
372
|
// src/lib/parsedPackageJSON.ts
|
|
373
|
-
import { readFileSync as readFileSync4 } from "
|
|
373
|
+
import { readFileSync as readFileSync4 } from "fs";
|
|
374
374
|
var parsedPackageJSON = (path10) => {
|
|
375
375
|
const pathToPackageJSON = path10 ?? process.env.npm_package_json ?? "";
|
|
376
376
|
const packageJSON = readFileSync4(pathToPackageJSON).toString();
|
|
@@ -378,8 +378,8 @@ var parsedPackageJSON = (path10) => {
|
|
|
378
378
|
};
|
|
379
379
|
|
|
380
380
|
// src/lib/runSteps.ts
|
|
381
|
-
import { spawnSync as spawnSync3 } from "
|
|
382
|
-
import { existsSync as existsSync3 } from "
|
|
381
|
+
import { spawnSync as spawnSync3 } from "child_process";
|
|
382
|
+
import { existsSync as existsSync3 } from "fs";
|
|
383
383
|
import chalk6 from "chalk";
|
|
384
384
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
385
385
|
return safeExit(() => {
|
|
@@ -409,8 +409,8 @@ var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
|
409
409
|
};
|
|
410
410
|
|
|
411
411
|
// src/lib/runStepsAsync.ts
|
|
412
|
-
import { spawn } from "
|
|
413
|
-
import { existsSync as existsSync4 } from "
|
|
412
|
+
import { spawn } from "child_process";
|
|
413
|
+
import { existsSync as existsSync4 } from "fs";
|
|
414
414
|
import chalk7 from "chalk";
|
|
415
415
|
var runStepAsync = (name, step, exitOnFail = true, message) => {
|
|
416
416
|
return new Promise((resolve) => {
|
|
@@ -514,7 +514,7 @@ var cleanAll = ({ verbose }) => {
|
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
// src/actions/clean-docs.ts
|
|
517
|
-
import path from "
|
|
517
|
+
import path from "path";
|
|
518
518
|
import chalk10 from "chalk";
|
|
519
519
|
var cleanDocs = () => {
|
|
520
520
|
const pkgName = process.env.npm_package_name;
|
|
@@ -640,7 +640,7 @@ var compileTypesAll = ({
|
|
|
640
640
|
};
|
|
641
641
|
|
|
642
642
|
// src/actions/copy-assets.ts
|
|
643
|
-
import path2 from "
|
|
643
|
+
import path2 from "path/posix";
|
|
644
644
|
import chalk13 from "chalk";
|
|
645
645
|
import cpy from "cpy";
|
|
646
646
|
var copyPackageTargetAssets = async (target, name, location) => {
|
|
@@ -766,8 +766,8 @@ function findFiles(path10) {
|
|
|
766
766
|
}
|
|
767
767
|
|
|
768
768
|
// src/actions/deplint/getDependenciesFromPackageJson.ts
|
|
769
|
-
import fs2 from "
|
|
770
|
-
import path3 from "
|
|
769
|
+
import fs2 from "fs";
|
|
770
|
+
import path3 from "path";
|
|
771
771
|
function getDependenciesFromPackageJson(packageJsonPath) {
|
|
772
772
|
const packageJsonFullPath = path3.resolve(packageJsonPath);
|
|
773
773
|
const rawContent = fs2.readFileSync(packageJsonFullPath, "utf8");
|
|
@@ -783,8 +783,8 @@ function getDependenciesFromPackageJson(packageJsonPath) {
|
|
|
783
783
|
}
|
|
784
784
|
|
|
785
785
|
// src/actions/deplint/getImportsFromFile.ts
|
|
786
|
-
import fs3 from "
|
|
787
|
-
import path4 from "
|
|
786
|
+
import fs3 from "fs";
|
|
787
|
+
import path4 from "path";
|
|
788
788
|
import ts from "typescript";
|
|
789
789
|
|
|
790
790
|
// src/actions/deplint/getBasePackageName.ts
|
|
@@ -1025,7 +1025,7 @@ var deplint = ({
|
|
|
1025
1025
|
};
|
|
1026
1026
|
|
|
1027
1027
|
// src/actions/deploy.ts
|
|
1028
|
-
import { readFileSync as readFileSync5 } from "
|
|
1028
|
+
import { readFileSync as readFileSync5 } from "fs";
|
|
1029
1029
|
var privatePackageExcludeList = () => {
|
|
1030
1030
|
const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
|
|
1031
1031
|
workspace,
|
|
@@ -1050,7 +1050,7 @@ var deploy = () => {
|
|
|
1050
1050
|
};
|
|
1051
1051
|
|
|
1052
1052
|
// src/actions/deploy-major.ts
|
|
1053
|
-
import { readFileSync as readFileSync6 } from "
|
|
1053
|
+
import { readFileSync as readFileSync6 } from "fs";
|
|
1054
1054
|
var privatePackageExcludeList2 = () => {
|
|
1055
1055
|
const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
|
|
1056
1056
|
workspace,
|
|
@@ -1075,7 +1075,7 @@ var deployMajor = () => {
|
|
|
1075
1075
|
};
|
|
1076
1076
|
|
|
1077
1077
|
// src/actions/deploy-minor.ts
|
|
1078
|
-
import { readFileSync as readFileSync7 } from "
|
|
1078
|
+
import { readFileSync as readFileSync7 } from "fs";
|
|
1079
1079
|
var privatePackageExcludeList3 = () => {
|
|
1080
1080
|
const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
|
|
1081
1081
|
workspace,
|
|
@@ -1100,7 +1100,7 @@ var deployMinor = () => {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
|
|
1102
1102
|
// src/actions/deploy-next.ts
|
|
1103
|
-
import { readFileSync as readFileSync8 } from "
|
|
1103
|
+
import { readFileSync as readFileSync8 } from "fs";
|
|
1104
1104
|
var privatePackageExcludeList4 = () => {
|
|
1105
1105
|
const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
|
|
1106
1106
|
workspace,
|
|
@@ -1241,7 +1241,7 @@ Gitlint Start [${process.cwd()}]
|
|
|
1241
1241
|
};
|
|
1242
1242
|
|
|
1243
1243
|
// src/actions/gitlint-fix.ts
|
|
1244
|
-
import { execSync as execSync2 } from "
|
|
1244
|
+
import { execSync as execSync2 } from "child_process";
|
|
1245
1245
|
import chalk22 from "chalk";
|
|
1246
1246
|
import ParseGitConfig2 from "parse-git-config";
|
|
1247
1247
|
var gitlintFix = () => {
|
|
@@ -1341,7 +1341,7 @@ var filename2 = ".npmignore";
|
|
|
1341
1341
|
var npmignoreGen = (pkg) => generateIgnoreFiles(filename2, pkg);
|
|
1342
1342
|
|
|
1343
1343
|
// src/actions/package/clean-outputs.ts
|
|
1344
|
-
import path5 from "
|
|
1344
|
+
import path5 from "path";
|
|
1345
1345
|
import chalk24 from "chalk";
|
|
1346
1346
|
var packageCleanOutputs = () => {
|
|
1347
1347
|
const pkg = process.env.INIT_CWD ?? ".";
|
|
@@ -1355,7 +1355,7 @@ var packageCleanOutputs = () => {
|
|
|
1355
1355
|
};
|
|
1356
1356
|
|
|
1357
1357
|
// src/actions/package/clean-typescript.ts
|
|
1358
|
-
import path6 from "
|
|
1358
|
+
import path6 from "path";
|
|
1359
1359
|
import chalk25 from "chalk";
|
|
1360
1360
|
var packageCleanTypescript = () => {
|
|
1361
1361
|
const pkg = process.env.INIT_CWD ?? ".";
|
|
@@ -1377,7 +1377,7 @@ var packageClean = async () => {
|
|
|
1377
1377
|
import chalk29 from "chalk";
|
|
1378
1378
|
|
|
1379
1379
|
// src/actions/package/publint.ts
|
|
1380
|
-
import { promises as fs4 } from "
|
|
1380
|
+
import { promises as fs4 } from "fs";
|
|
1381
1381
|
import chalk26 from "chalk";
|
|
1382
1382
|
import sortPackageJson from "sort-package-json";
|
|
1383
1383
|
var packagePublint = async (params) => {
|
|
@@ -1451,7 +1451,7 @@ var buildEntries = (folder, entryMode = "single", excludeSpecAndStories = true,
|
|
|
1451
1451
|
};
|
|
1452
1452
|
|
|
1453
1453
|
// src/actions/package/compile/packageCompileTscTypes.ts
|
|
1454
|
-
import { cwd } from "
|
|
1454
|
+
import { cwd } from "process";
|
|
1455
1455
|
import chalk27 from "chalk";
|
|
1456
1456
|
import { createProgramFromConfig } from "tsc-prog";
|
|
1457
1457
|
import {
|
|
@@ -1462,7 +1462,7 @@ import {
|
|
|
1462
1462
|
} from "typescript";
|
|
1463
1463
|
|
|
1464
1464
|
// src/actions/package/compile/getCompilerOptions.ts
|
|
1465
|
-
import { createRequire } from "
|
|
1465
|
+
import { createRequire } from "module";
|
|
1466
1466
|
import deepmerge2 from "deepmerge";
|
|
1467
1467
|
import {
|
|
1468
1468
|
findConfigFile,
|
|
@@ -1563,7 +1563,7 @@ function deepMergeObjects(objects) {
|
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
1565
|
// src/actions/package/compile/packageCompileTsc.ts
|
|
1566
|
-
import { cwd as cwd2 } from "
|
|
1566
|
+
import { cwd as cwd2 } from "process";
|
|
1567
1567
|
import chalk28 from "chalk";
|
|
1568
1568
|
import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
|
|
1569
1569
|
import {
|
|
@@ -1693,7 +1693,7 @@ var packageCompileTsup = async (config2) => {
|
|
|
1693
1693
|
return (await Promise.all(
|
|
1694
1694
|
Object.entries(compileForNode).map(async ([folder, options]) => {
|
|
1695
1695
|
const inEsBuildOptions = typeof compile2?.node?.esbuildOptions === "object" ? compile2?.node?.esbuildOptions : {};
|
|
1696
|
-
return folder ? await compileFolder(
|
|
1696
|
+
return typeof folder === "string" ? await compileFolder(
|
|
1697
1697
|
folder,
|
|
1698
1698
|
compile2?.entryMode,
|
|
1699
1699
|
tsupOptions([
|
|
@@ -1705,10 +1705,10 @@ var packageCompileTsup = async (config2) => {
|
|
|
1705
1705
|
verbose
|
|
1706
1706
|
) : 0;
|
|
1707
1707
|
})
|
|
1708
|
-
)).reduce((prev, value) => prev + value, 0)
|
|
1708
|
+
)).reduce((prev, value) => prev + value, 0) + (await Promise.all(
|
|
1709
1709
|
Object.entries(compileForBrowser).map(async ([folder, options]) => {
|
|
1710
1710
|
const inEsBuildOptions = typeof compile2?.browser?.esbuildOptions === "object" ? compile2?.browser?.esbuildOptions : {};
|
|
1711
|
-
return folder ? await compileFolder(
|
|
1711
|
+
return typeof folder === "string" ? await compileFolder(
|
|
1712
1712
|
folder,
|
|
1713
1713
|
compile2?.entryMode,
|
|
1714
1714
|
tsupOptions([
|
|
@@ -1720,10 +1720,10 @@ var packageCompileTsup = async (config2) => {
|
|
|
1720
1720
|
verbose
|
|
1721
1721
|
) : 0;
|
|
1722
1722
|
})
|
|
1723
|
-
)).reduce((prev, value) => prev + value, 0)
|
|
1723
|
+
)).reduce((prev, value) => prev + value, 0) + (await Promise.all(
|
|
1724
1724
|
Object.entries(compileForNeutral).map(async ([folder, options]) => {
|
|
1725
1725
|
const inEsBuildOptions = typeof compile2?.neutral?.esbuildOptions === "object" ? compile2?.neutral?.esbuildOptions : {};
|
|
1726
|
-
return folder ? await compileFolder(
|
|
1726
|
+
return typeof folder === "string" ? await compileFolder(
|
|
1727
1727
|
folder,
|
|
1728
1728
|
compile2?.entryMode,
|
|
1729
1729
|
tsupOptions([
|
|
@@ -1735,7 +1735,7 @@ var packageCompileTsup = async (config2) => {
|
|
|
1735
1735
|
verbose
|
|
1736
1736
|
) : 0;
|
|
1737
1737
|
})
|
|
1738
|
-
)).reduce((prev, value) => prev + value, 0)
|
|
1738
|
+
)).reduce((prev, value) => prev + value, 0) + 0;
|
|
1739
1739
|
};
|
|
1740
1740
|
|
|
1741
1741
|
// src/actions/package/compile/compile.ts
|
|
@@ -1752,7 +1752,7 @@ var packageCompile = async (inConfig = {}) => {
|
|
|
1752
1752
|
};
|
|
1753
1753
|
|
|
1754
1754
|
// src/actions/package/copy-assets.ts
|
|
1755
|
-
import path7 from "
|
|
1755
|
+
import path7 from "path/posix";
|
|
1756
1756
|
import chalk30 from "chalk";
|
|
1757
1757
|
import cpy2 from "cpy";
|
|
1758
1758
|
var copyTargetAssets2 = async (target, name, location) => {
|
|
@@ -1833,8 +1833,8 @@ var packageCycle = async ({ verbose = false }) => {
|
|
|
1833
1833
|
};
|
|
1834
1834
|
|
|
1835
1835
|
// src/actions/package/gen-docs.ts
|
|
1836
|
-
import { existsSync as existsSync5 } from "
|
|
1837
|
-
import path8 from "
|
|
1836
|
+
import { existsSync as existsSync5 } from "fs";
|
|
1837
|
+
import path8 from "path";
|
|
1838
1838
|
import chalk31 from "chalk";
|
|
1839
1839
|
import {
|
|
1840
1840
|
Application,
|
|
@@ -1944,10 +1944,10 @@ var runTypeDoc = async (app) => {
|
|
|
1944
1944
|
};
|
|
1945
1945
|
|
|
1946
1946
|
// src/actions/package/lint.ts
|
|
1947
|
-
import { readdirSync } from "
|
|
1948
|
-
import path9 from "
|
|
1949
|
-
import { cwd as cwd3 } from "
|
|
1950
|
-
import { pathToFileURL } from "
|
|
1947
|
+
import { readdirSync } from "fs";
|
|
1948
|
+
import path9 from "path";
|
|
1949
|
+
import { cwd as cwd3 } from "process";
|
|
1950
|
+
import { pathToFileURL } from "url";
|
|
1951
1951
|
import chalk32 from "chalk";
|
|
1952
1952
|
import { ESLint } from "eslint";
|
|
1953
1953
|
import { findUp } from "find-up";
|
|
@@ -2120,7 +2120,7 @@ import {
|
|
|
2120
2120
|
closeSync,
|
|
2121
2121
|
openSync,
|
|
2122
2122
|
rmSync
|
|
2123
|
-
} from "
|
|
2123
|
+
} from "fs";
|
|
2124
2124
|
var reinstall = () => {
|
|
2125
2125
|
console.log("Reinstall [Clear Lock File]");
|
|
2126
2126
|
closeSync(openSync("./yarn.lock", "w"));
|
|
@@ -2248,7 +2248,7 @@ var yarn3Only = () => {
|
|
|
2248
2248
|
};
|
|
2249
2249
|
|
|
2250
2250
|
// src/loadPackageConfig.ts
|
|
2251
|
-
import { readFile } from "
|
|
2251
|
+
import { readFile } from "fs/promises";
|
|
2252
2252
|
var loadPackageConfig = async () => {
|
|
2253
2253
|
const pkg = process.env.INIT_CWD;
|
|
2254
2254
|
const pkgConfig = await readFile(`${pkg}/package.json`, { encoding: "utf8" });
|