@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/actions/build.mjs
CHANGED
|
@@ -61,8 +61,8 @@ var safeExitAsync = async (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/runStepsAsync.ts
|
|
64
|
-
import { spawn } from "
|
|
65
|
-
import { existsSync } from "
|
|
64
|
+
import { spawn } from "child_process";
|
|
65
|
+
import { existsSync } from "fs";
|
|
66
66
|
import chalk3 from "chalk";
|
|
67
67
|
var runStepAsync = (name, step, exitOnFail = true, message) => {
|
|
68
68
|
return new Promise((resolve) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/actions/clean-docs.ts
|
|
2
|
-
import path from "
|
|
2
|
+
import path from "path";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
|
|
5
5
|
// src/lib/deleteGlob.ts
|
|
6
|
-
import fs from "
|
|
6
|
+
import fs from "fs";
|
|
7
7
|
import { glob } from "glob";
|
|
8
8
|
var deleteGlob = (globPath) => {
|
|
9
9
|
const files = glob.sync(globPath);
|
|
@@ -13,7 +13,7 @@ var deleteGlob = (globPath) => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
16
|
-
import { spawnSync } from "
|
|
16
|
+
import { spawnSync } from "child_process";
|
|
17
17
|
var yarnWorkspaces = () => {
|
|
18
18
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
19
19
|
if (result.error) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/actions/clean-eslint.ts
|
|
2
|
-
import path from "
|
|
2
|
+
import path from "path";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
|
|
5
5
|
// src/lib/deleteGlob.ts
|
|
6
|
-
import fs from "
|
|
6
|
+
import fs from "fs";
|
|
7
7
|
import { glob } from "glob";
|
|
8
8
|
var deleteGlob = (globPath) => {
|
|
9
9
|
const files = glob.sync(globPath);
|
|
@@ -58,8 +58,8 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// src/lib/runSteps.ts
|
|
61
|
-
import { spawnSync } from "
|
|
62
|
-
import { existsSync } from "
|
|
61
|
+
import { spawnSync } from "child_process";
|
|
62
|
+
import { existsSync } from "fs";
|
|
63
63
|
import chalk3 from "chalk";
|
|
64
64
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
65
65
|
return safeExit(() => {
|
package/dist/actions/clean.mjs
CHANGED
|
@@ -58,8 +58,8 @@ var safeExitAsync = async (func, exitOnFail = true) => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// src/lib/runStepsAsync.ts
|
|
61
|
-
import { spawn } from "
|
|
62
|
-
import { existsSync } from "
|
|
61
|
+
import { spawn } from "child_process";
|
|
62
|
+
import { existsSync } from "fs";
|
|
63
63
|
import chalk3 from "chalk";
|
|
64
64
|
var runStepAsync = (name, step, exitOnFail = true, message) => {
|
|
65
65
|
return new Promise((resolve) => {
|
|
@@ -61,8 +61,8 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/runSteps.ts
|
|
64
|
-
import { spawnSync } from "
|
|
65
|
-
import { existsSync } from "
|
|
64
|
+
import { spawnSync } from "child_process";
|
|
65
|
+
import { existsSync } from "fs";
|
|
66
66
|
import chalk3 from "chalk";
|
|
67
67
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
68
68
|
return safeExit(() => {
|
package/dist/actions/compile.mjs
CHANGED
|
@@ -61,8 +61,8 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/runSteps.ts
|
|
64
|
-
import { spawnSync } from "
|
|
65
|
-
import { existsSync } from "
|
|
64
|
+
import { spawnSync } from "child_process";
|
|
65
|
+
import { existsSync } from "fs";
|
|
66
66
|
import chalk3 from "chalk";
|
|
67
67
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
68
68
|
return safeExit(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// src/actions/copy-assets.ts
|
|
2
|
-
import path from "
|
|
2
|
+
import path from "path/posix";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import cpy from "cpy";
|
|
5
5
|
|
|
6
6
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
7
|
-
import { spawnSync } from "
|
|
7
|
+
import { spawnSync } from "child_process";
|
|
8
8
|
var yarnWorkspaces = () => {
|
|
9
9
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
10
10
|
if (result.error) {
|
package/dist/actions/cycle.mjs
CHANGED
|
@@ -61,8 +61,8 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/runSteps.ts
|
|
64
|
-
import { spawnSync } from "
|
|
65
|
-
import { existsSync } from "
|
|
64
|
+
import { spawnSync } from "child_process";
|
|
65
|
+
import { existsSync } from "fs";
|
|
66
66
|
import chalk3 from "chalk";
|
|
67
67
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
68
68
|
return safeExit(() => {
|
package/dist/actions/dead.mjs
CHANGED
|
@@ -58,8 +58,8 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// src/lib/runSteps.ts
|
|
61
|
-
import { spawnSync } from "
|
|
62
|
-
import { existsSync } from "
|
|
61
|
+
import { spawnSync } from "child_process";
|
|
62
|
+
import { existsSync } from "fs";
|
|
63
63
|
import chalk3 from "chalk";
|
|
64
64
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
65
65
|
return safeExit(() => {
|
|
@@ -14,8 +14,8 @@ function findFiles(path3) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// src/actions/deplint/getDependenciesFromPackageJson.ts
|
|
17
|
-
import fs from "
|
|
18
|
-
import path from "
|
|
17
|
+
import fs from "fs";
|
|
18
|
+
import path from "path";
|
|
19
19
|
function getDependenciesFromPackageJson(packageJsonPath) {
|
|
20
20
|
const packageJsonFullPath = path.resolve(packageJsonPath);
|
|
21
21
|
const rawContent = fs.readFileSync(packageJsonFullPath, "utf8");
|
|
@@ -31,8 +31,8 @@ function getDependenciesFromPackageJson(packageJsonPath) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// src/actions/deplint/getImportsFromFile.ts
|
|
34
|
-
import fs2 from "
|
|
35
|
-
import path2 from "
|
|
34
|
+
import fs2 from "fs";
|
|
35
|
+
import path2 from "path";
|
|
36
36
|
import ts from "typescript";
|
|
37
37
|
|
|
38
38
|
// src/actions/deplint/getBasePackageName.ts
|
|
@@ -14,8 +14,8 @@ function findFiles(path3) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// src/actions/deplint/getDependenciesFromPackageJson.ts
|
|
17
|
-
import fs from "
|
|
18
|
-
import path from "
|
|
17
|
+
import fs from "fs";
|
|
18
|
+
import path from "path";
|
|
19
19
|
function getDependenciesFromPackageJson(packageJsonPath) {
|
|
20
20
|
const packageJsonFullPath = path.resolve(packageJsonPath);
|
|
21
21
|
const rawContent = fs.readFileSync(packageJsonFullPath, "utf8");
|
|
@@ -31,8 +31,8 @@ function getDependenciesFromPackageJson(packageJsonPath) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// src/actions/deplint/getImportsFromFile.ts
|
|
34
|
-
import fs2 from "
|
|
35
|
-
import path2 from "
|
|
34
|
+
import fs2 from "fs";
|
|
35
|
+
import path2 from "path";
|
|
36
36
|
import ts from "typescript";
|
|
37
37
|
|
|
38
38
|
// src/actions/deplint/getBasePackageName.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import chalk5 from "chalk";
|
|
3
3
|
|
|
4
4
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
5
|
-
import { spawnSync } from "
|
|
5
|
+
import { spawnSync } from "child_process";
|
|
6
6
|
var yarnWorkspaces = () => {
|
|
7
7
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
8
8
|
if (result.error) {
|
|
@@ -36,8 +36,8 @@ function findFiles(path3) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// src/actions/deplint/getDependenciesFromPackageJson.ts
|
|
39
|
-
import fs from "
|
|
40
|
-
import path from "
|
|
39
|
+
import fs from "fs";
|
|
40
|
+
import path from "path";
|
|
41
41
|
function getDependenciesFromPackageJson(packageJsonPath) {
|
|
42
42
|
const packageJsonFullPath = path.resolve(packageJsonPath);
|
|
43
43
|
const rawContent = fs.readFileSync(packageJsonFullPath, "utf8");
|
|
@@ -53,8 +53,8 @@ function getDependenciesFromPackageJson(packageJsonPath) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
// src/actions/deplint/getImportsFromFile.ts
|
|
56
|
-
import fs2 from "
|
|
57
|
-
import path2 from "
|
|
56
|
+
import fs2 from "fs";
|
|
57
|
+
import path2 from "path";
|
|
58
58
|
import ts from "typescript";
|
|
59
59
|
|
|
60
60
|
// src/actions/deplint/getBasePackageName.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/actions/deplint/getDependenciesFromPackageJson.ts
|
|
2
|
-
import fs from "
|
|
3
|
-
import path from "
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import path from "path";
|
|
4
4
|
function getDependenciesFromPackageJson(packageJsonPath) {
|
|
5
5
|
const packageJsonFullPath = path.resolve(packageJsonPath);
|
|
6
6
|
const rawContent = fs.readFileSync(packageJsonFullPath, "utf8");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import chalk5 from "chalk";
|
|
3
3
|
|
|
4
4
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
5
|
-
import { spawnSync } from "
|
|
5
|
+
import { spawnSync } from "child_process";
|
|
6
6
|
var yarnWorkspaces = () => {
|
|
7
7
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
8
8
|
if (result.error) {
|
|
@@ -36,8 +36,8 @@ function findFiles(path3) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// src/actions/deplint/getDependenciesFromPackageJson.ts
|
|
39
|
-
import fs from "
|
|
40
|
-
import path from "
|
|
39
|
+
import fs from "fs";
|
|
40
|
+
import path from "path";
|
|
41
41
|
function getDependenciesFromPackageJson(packageJsonPath) {
|
|
42
42
|
const packageJsonFullPath = path.resolve(packageJsonPath);
|
|
43
43
|
const rawContent = fs.readFileSync(packageJsonFullPath, "utf8");
|
|
@@ -53,8 +53,8 @@ function getDependenciesFromPackageJson(packageJsonPath) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
// src/actions/deplint/getImportsFromFile.ts
|
|
56
|
-
import fs2 from "
|
|
57
|
-
import path2 from "
|
|
56
|
+
import fs2 from "fs";
|
|
57
|
+
import path2 from "path";
|
|
58
58
|
import ts from "typescript";
|
|
59
59
|
|
|
60
60
|
// src/actions/deplint/getBasePackageName.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/actions/deploy-major.ts
|
|
2
|
-
import { readFileSync } from "
|
|
2
|
+
import { readFileSync } from "fs";
|
|
3
3
|
|
|
4
4
|
// src/lib/checkResult.ts
|
|
5
5
|
import chalk from "chalk";
|
|
@@ -61,7 +61,7 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
64
|
-
import { spawnSync } from "
|
|
64
|
+
import { spawnSync } from "child_process";
|
|
65
65
|
var yarnWorkspaces = () => {
|
|
66
66
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
67
67
|
if (result.error) {
|
|
@@ -73,8 +73,8 @@ var yarnWorkspaces = () => {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/lib/runSteps.ts
|
|
76
|
-
import { spawnSync as spawnSync2 } from "
|
|
77
|
-
import { existsSync } from "
|
|
76
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
77
|
+
import { existsSync } from "fs";
|
|
78
78
|
import chalk3 from "chalk";
|
|
79
79
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
80
80
|
return safeExit(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/actions/deploy-minor.ts
|
|
2
|
-
import { readFileSync } from "
|
|
2
|
+
import { readFileSync } from "fs";
|
|
3
3
|
|
|
4
4
|
// src/lib/checkResult.ts
|
|
5
5
|
import chalk from "chalk";
|
|
@@ -61,7 +61,7 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
64
|
-
import { spawnSync } from "
|
|
64
|
+
import { spawnSync } from "child_process";
|
|
65
65
|
var yarnWorkspaces = () => {
|
|
66
66
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
67
67
|
if (result.error) {
|
|
@@ -73,8 +73,8 @@ var yarnWorkspaces = () => {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/lib/runSteps.ts
|
|
76
|
-
import { spawnSync as spawnSync2 } from "
|
|
77
|
-
import { existsSync } from "
|
|
76
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
77
|
+
import { existsSync } from "fs";
|
|
78
78
|
import chalk3 from "chalk";
|
|
79
79
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
80
80
|
return safeExit(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/actions/deploy-next.ts
|
|
2
|
-
import { readFileSync } from "
|
|
2
|
+
import { readFileSync } from "fs";
|
|
3
3
|
|
|
4
4
|
// src/lib/checkResult.ts
|
|
5
5
|
import chalk from "chalk";
|
|
@@ -61,7 +61,7 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
64
|
-
import { spawnSync } from "
|
|
64
|
+
import { spawnSync } from "child_process";
|
|
65
65
|
var yarnWorkspaces = () => {
|
|
66
66
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
67
67
|
if (result.error) {
|
|
@@ -73,8 +73,8 @@ var yarnWorkspaces = () => {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/lib/runSteps.ts
|
|
76
|
-
import { spawnSync as spawnSync2 } from "
|
|
77
|
-
import { existsSync } from "
|
|
76
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
77
|
+
import { existsSync } from "fs";
|
|
78
78
|
import chalk3 from "chalk";
|
|
79
79
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
80
80
|
return safeExit(() => {
|
package/dist/actions/deploy.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/actions/deploy.ts
|
|
2
|
-
import { readFileSync } from "
|
|
2
|
+
import { readFileSync } from "fs";
|
|
3
3
|
|
|
4
4
|
// src/lib/checkResult.ts
|
|
5
5
|
import chalk from "chalk";
|
|
@@ -61,7 +61,7 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
64
|
-
import { spawnSync } from "
|
|
64
|
+
import { spawnSync } from "child_process";
|
|
65
65
|
var yarnWorkspaces = () => {
|
|
66
66
|
const result = spawnSync("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
67
67
|
if (result.error) {
|
|
@@ -73,8 +73,8 @@ var yarnWorkspaces = () => {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/lib/runSteps.ts
|
|
76
|
-
import { spawnSync as spawnSync2 } from "
|
|
77
|
-
import { existsSync } from "
|
|
76
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
77
|
+
import { existsSync } from "fs";
|
|
78
78
|
import chalk3 from "chalk";
|
|
79
79
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
80
80
|
return safeExit(() => {
|
package/dist/actions/dupdeps.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import chalk3 from "chalk";
|
|
3
3
|
|
|
4
4
|
// src/lib/dependencies/detectDuplicateDependencies.ts
|
|
5
|
-
import { execSync } from "
|
|
5
|
+
import { execSync } from "child_process";
|
|
6
6
|
|
|
7
7
|
// src/lib/processEx.ts
|
|
8
8
|
import chalk from "chalk";
|
|
@@ -51,7 +51,7 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
// src/lib/dependencies/DuplicateDetector.ts
|
|
54
|
-
import { EOL } from "
|
|
54
|
+
import { EOL } from "os";
|
|
55
55
|
import chalk2 from "chalk";
|
|
56
56
|
|
|
57
57
|
// src/lib/jsonFormatters.ts
|
|
@@ -163,7 +163,7 @@ var detectDuplicateDependencies = (depsFromPackageJSON, DefaultDependencies) =>
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
// src/lib/parsedPackageJSON.ts
|
|
166
|
-
import { readFileSync } from "
|
|
166
|
+
import { readFileSync } from "fs";
|
|
167
167
|
var parsedPackageJSON = (path) => {
|
|
168
168
|
const pathToPackageJSON = path ?? process.env.npm_package_json ?? "";
|
|
169
169
|
const packageJSON = readFileSync(pathToPackageJSON).toString();
|
package/dist/actions/fix.mjs
CHANGED
|
@@ -61,8 +61,8 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/lib/runSteps.ts
|
|
64
|
-
import { spawnSync } from "
|
|
65
|
-
import { existsSync } from "
|
|
64
|
+
import { spawnSync } from "child_process";
|
|
65
|
+
import { existsSync } from "fs";
|
|
66
66
|
import chalk3 from "chalk";
|
|
67
67
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
68
68
|
return safeExit(() => {
|
|
@@ -58,8 +58,8 @@ var safeExit = (func, exitOnFail = true) => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// src/lib/runSteps.ts
|
|
61
|
-
import { spawnSync } from "
|
|
62
|
-
import { existsSync } from "
|
|
61
|
+
import { spawnSync } from "child_process";
|
|
62
|
+
import { existsSync } from "fs";
|
|
63
63
|
import chalk3 from "chalk";
|
|
64
64
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
65
65
|
return safeExit(() => {
|
|
@@ -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;
|
|
@@ -32,7 +32,7 @@ var writeLines = (uri, lines, options = defaultReadFileSyncOptions) => {
|
|
|
32
32
|
import chalk from "chalk";
|
|
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) {
|