@xylabs/ts-scripts-yarn3 6.5.6 → 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 +85 -103
- package/dist/actions/deplint/checkPackage/checkPackage.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnlistedDependencies.mjs +8 -17
- package/dist/actions/deplint/checkPackage/getUnlistedDependencies.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.mjs +14 -5
- package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnusedDependencies.mjs +13 -7
- package/dist/actions/deplint/checkPackage/getUnusedDependencies.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.mjs +12 -6
- package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/index.mjs +85 -103
- package/dist/actions/deplint/checkPackage/index.mjs.map +1 -1
- package/dist/actions/deplint/deplint.mjs +86 -104
- package/dist/actions/deplint/deplint.mjs.map +1 -1
- package/dist/actions/deplint/findFiles.mjs +4 -14
- package/dist/actions/deplint/findFiles.mjs.map +1 -1
- package/dist/actions/deplint/getBasePackageName.mjs +5 -4
- package/dist/actions/deplint/getBasePackageName.mjs.map +1 -1
- package/dist/actions/deplint/getDependenciesFromPackageJson.mjs +2 -2
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs +29 -40
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs.map +1 -1
- package/dist/actions/deplint/getImportsFromFile.mjs +14 -11
- package/dist/actions/deplint/getImportsFromFile.mjs.map +1 -1
- package/dist/actions/deplint/index.mjs +86 -104
- package/dist/actions/deplint/index.mjs.map +1 -1
- 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 +123 -141
- 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 +104 -122
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.mjs +126 -144
- 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 +104 -122
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +104 -122
- 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 +90 -108
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +10 -9
- package/dist/actions/deplint/checkPackage/getTypesInDependencies.mjs +0 -19
- package/dist/actions/deplint/checkPackage/getTypesInDependencies.mjs.map +0 -1
package/dist/lib/deleteGlob.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/lib/dependencies/detectDuplicateDependencies.ts
|
|
2
|
-
import { execSync } from "
|
|
2
|
+
import { execSync } from "child_process";
|
|
3
3
|
|
|
4
4
|
// src/lib/processEx.ts
|
|
5
5
|
import chalk from "chalk";
|
|
@@ -48,7 +48,7 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
// src/lib/dependencies/DuplicateDetector.ts
|
|
51
|
-
import { EOL } from "
|
|
51
|
+
import { EOL } from "os";
|
|
52
52
|
import chalk2 from "chalk";
|
|
53
53
|
|
|
54
54
|
// src/lib/jsonFormatters.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/lib/dependencies/detectDuplicateDependencies.ts
|
|
2
|
-
import { execSync } from "
|
|
2
|
+
import { execSync } from "child_process";
|
|
3
3
|
|
|
4
4
|
// src/lib/processEx.ts
|
|
5
5
|
import chalk from "chalk";
|
|
@@ -48,7 +48,7 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
// src/lib/dependencies/DuplicateDetector.ts
|
|
51
|
-
import { EOL } from "
|
|
51
|
+
import { EOL } from "os";
|
|
52
52
|
import chalk2 from "chalk";
|
|
53
53
|
|
|
54
54
|
// src/lib/jsonFormatters.ts
|
package/dist/lib/file/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
existsSync,
|
|
8
8
|
readFileSync,
|
|
9
9
|
writeFileSync
|
|
10
|
-
} from "
|
|
10
|
+
} from "fs";
|
|
11
11
|
|
|
12
12
|
// src/lib/string/empty.ts
|
|
13
13
|
var empty = (value) => value?.trim().length === 0;
|
|
@@ -26,7 +26,7 @@ var writeLines = (uri, lines, options = defaultReadFileSyncOptions) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// src/lib/file/tryReadFileSync.ts
|
|
29
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "
|
|
29
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
30
30
|
var tryReadFileSync = (uri, options = defaultReadFileSyncOptions) => {
|
|
31
31
|
return existsSync2(uri) ? readFileSync2(uri, options) : void 0;
|
|
32
32
|
};
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
existsSync,
|
|
11
11
|
readFileSync,
|
|
12
12
|
writeFileSync
|
|
13
|
-
} from "
|
|
13
|
+
} from "fs";
|
|
14
14
|
|
|
15
15
|
// src/lib/string/empty.ts
|
|
16
16
|
var empty = (value) => value?.trim().length === 0;
|
|
@@ -32,7 +32,7 @@ var writeLines = (uri, lines, options = defaultReadFileSyncOptions) => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
35
|
-
import { spawnSync } from "
|
|
35
|
+
import { spawnSync } from "child_process";
|
|
36
36
|
var yarnWorkspaces = () => {
|
|
37
37
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
38
38
|
if (result.error) {
|
package/dist/lib/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ var checkResult = (name, result, level = "error", exitOnFail = false) => {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
// src/lib/createBuildConfig.ts
|
|
15
|
-
import { readFileSync } from "
|
|
15
|
+
import { readFileSync } from "fs";
|
|
16
16
|
|
|
17
17
|
// src/lib/defaultBuildConfig.ts
|
|
18
18
|
var defaultBuildConfig = {
|
|
@@ -64,7 +64,7 @@ var createBuildConfig = (location, module, target, outDirSuffix) => {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// src/lib/deleteGlob.ts
|
|
67
|
-
import fs from "
|
|
67
|
+
import fs from "fs";
|
|
68
68
|
import { glob } from "glob";
|
|
69
69
|
var deleteGlob = (globPath) => {
|
|
70
70
|
const files = glob.sync(globPath);
|
|
@@ -74,7 +74,7 @@ var deleteGlob = (globPath) => {
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
// src/lib/dependencies/detectDuplicateDependencies.ts
|
|
77
|
-
import { execSync } from "
|
|
77
|
+
import { execSync } from "child_process";
|
|
78
78
|
|
|
79
79
|
// src/lib/processEx.ts
|
|
80
80
|
import chalk2 from "chalk";
|
|
@@ -134,7 +134,7 @@ var safeExitAsync = async (func, exitOnFail = true) => {
|
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
// src/lib/dependencies/DuplicateDetector.ts
|
|
137
|
-
import { EOL } from "
|
|
137
|
+
import { EOL } from "os";
|
|
138
138
|
import chalk3 from "chalk";
|
|
139
139
|
|
|
140
140
|
// src/lib/jsonFormatters.ts
|
|
@@ -254,7 +254,7 @@ import {
|
|
|
254
254
|
existsSync,
|
|
255
255
|
readFileSync as readFileSync2,
|
|
256
256
|
writeFileSync
|
|
257
|
-
} from "
|
|
257
|
+
} from "fs";
|
|
258
258
|
|
|
259
259
|
// src/lib/string/empty.ts
|
|
260
260
|
var empty = (value) => value?.trim().length === 0;
|
|
@@ -276,7 +276,7 @@ var writeLines = (uri, lines, options = defaultReadFileSyncOptions) => {
|
|
|
276
276
|
};
|
|
277
277
|
|
|
278
278
|
// src/lib/file/tryReadFileSync.ts
|
|
279
|
-
import { existsSync as existsSync2, readFileSync as readFileSync3 } from "
|
|
279
|
+
import { existsSync as existsSync2, readFileSync as readFileSync3 } from "fs";
|
|
280
280
|
var tryReadFileSync = (uri, options = defaultReadFileSyncOptions) => {
|
|
281
281
|
return existsSync2(uri) ? readFileSync3(uri, options) : void 0;
|
|
282
282
|
};
|
|
@@ -285,7 +285,7 @@ var tryReadFileSync = (uri, options = defaultReadFileSyncOptions) => {
|
|
|
285
285
|
import chalk4 from "chalk";
|
|
286
286
|
|
|
287
287
|
// src/lib/yarn/isYarnVersionOrGreater.ts
|
|
288
|
-
import { spawnSync } from "
|
|
288
|
+
import { spawnSync } from "child_process";
|
|
289
289
|
var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
290
290
|
const result = spawnSync("yarn", ["-v"], { encoding: "utf8", shell: true });
|
|
291
291
|
const version = result.stdout.toString().replaceAll("\n", "");
|
|
@@ -300,7 +300,7 @@ var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
303
|
-
import { spawnSync as spawnSync2 } from "
|
|
303
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
304
304
|
var yarnWorkspaces = () => {
|
|
305
305
|
const result = spawnSync2("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
306
306
|
if (result.error) {
|
|
@@ -367,7 +367,7 @@ var loadConfig = async (params) => {
|
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
// src/lib/parsedPackageJSON.ts
|
|
370
|
-
import { readFileSync as readFileSync4 } from "
|
|
370
|
+
import { readFileSync as readFileSync4 } from "fs";
|
|
371
371
|
var parsedPackageJSON = (path) => {
|
|
372
372
|
const pathToPackageJSON = path ?? process.env.npm_package_json ?? "";
|
|
373
373
|
const packageJSON = readFileSync4(pathToPackageJSON).toString();
|
|
@@ -375,8 +375,8 @@ var parsedPackageJSON = (path) => {
|
|
|
375
375
|
};
|
|
376
376
|
|
|
377
377
|
// src/lib/runSteps.ts
|
|
378
|
-
import { spawnSync as spawnSync3 } from "
|
|
379
|
-
import { existsSync as existsSync3 } from "
|
|
378
|
+
import { spawnSync as spawnSync3 } from "child_process";
|
|
379
|
+
import { existsSync as existsSync3 } from "fs";
|
|
380
380
|
import chalk6 from "chalk";
|
|
381
381
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
382
382
|
return safeExit(() => {
|
|
@@ -406,8 +406,8 @@ var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
|
406
406
|
};
|
|
407
407
|
|
|
408
408
|
// src/lib/runStepsAsync.ts
|
|
409
|
-
import { spawn } from "
|
|
410
|
-
import { existsSync as existsSync4 } from "
|
|
409
|
+
import { spawn } from "child_process";
|
|
410
|
+
import { existsSync as existsSync4 } from "fs";
|
|
411
411
|
import chalk7 from "chalk";
|
|
412
412
|
var runStepAsync = (name, step, exitOnFail = true, message) => {
|
|
413
413
|
return new Promise((resolve) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/lib/parsedPackageJSON.ts
|
|
2
|
-
import { readFileSync } from "
|
|
2
|
+
import { readFileSync } from "fs";
|
|
3
3
|
var parsedPackageJSON = (path) => {
|
|
4
4
|
const pathToPackageJSON = path ?? process.env.npm_package_json ?? "";
|
|
5
5
|
const packageJSON = readFileSync(pathToPackageJSON).toString();
|
package/dist/lib/runSteps.mjs
CHANGED
package/dist/lib/runXy.mjs
CHANGED
package/dist/lib/yarn/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/lib/yarn/isYarnVersionOrGreater.ts
|
|
2
|
-
import { spawnSync } from "
|
|
2
|
+
import { spawnSync } from "child_process";
|
|
3
3
|
var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
4
4
|
const result = spawnSync("yarn", ["-v"], { encoding: "utf8", shell: true });
|
|
5
5
|
const version = result.stdout.toString().replaceAll("\n", "");
|
|
@@ -14,7 +14,7 @@ var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
17
|
-
import { spawnSync as spawnSync2 } from "
|
|
17
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
18
18
|
var yarnWorkspaces = () => {
|
|
19
19
|
const result = spawnSync2("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
20
20
|
if (result.error) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/lib/yarn/isYarnVersionOrGreater.ts
|
|
2
|
-
import { spawnSync } from "
|
|
2
|
+
import { spawnSync } from "child_process";
|
|
3
3
|
var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
4
4
|
const result = spawnSync("yarn", ["-v"], { encoding: "utf8", shell: true });
|
|
5
5
|
const version = result.stdout.toString().replaceAll("\n", "");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
2
|
-
import { spawnSync } from "
|
|
2
|
+
import { spawnSync } from "child_process";
|
|
3
3
|
var yarnWorkspaces = () => {
|
|
4
4
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
5
5
|
if (result.error) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
2
|
-
import { spawnSync } from "
|
|
2
|
+
import { spawnSync } from "child_process";
|
|
3
3
|
var yarnWorkspaces = () => {
|
|
4
4
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
5
5
|
if (result.error) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
2
|
-
import { spawnSync } from "
|
|
2
|
+
import { spawnSync } from "child_process";
|
|
3
3
|
var yarnWorkspaces = () => {
|
|
4
4
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
5
5
|
if (result.error) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/loadPackageConfig.ts
|
|
2
|
-
import { readFile } from "
|
|
2
|
+
import { readFile } from "fs/promises";
|
|
3
3
|
var loadPackageConfig = async () => {
|
|
4
4
|
const pkg = process.env.INIT_CWD;
|
|
5
5
|
const pkgConfig = await readFile(`${pkg}/package.json`, { encoding: "utf8" });
|