@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/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" });
|
package/dist/xy/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ var checkResult = (name, result, level = "error", exitOnFail = false) => {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
// src/lib/deleteGlob.ts
|
|
21
|
-
import fs from "
|
|
21
|
+
import fs from "fs";
|
|
22
22
|
import { glob } from "glob";
|
|
23
23
|
var deleteGlob = (globPath) => {
|
|
24
24
|
const files = glob.sync(globPath);
|
|
@@ -28,7 +28,7 @@ var deleteGlob = (globPath) => {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
// src/lib/dependencies/detectDuplicateDependencies.ts
|
|
31
|
-
import { execSync } from "
|
|
31
|
+
import { execSync } from "child_process";
|
|
32
32
|
|
|
33
33
|
// src/lib/processEx.ts
|
|
34
34
|
import chalk2 from "chalk";
|
|
@@ -88,7 +88,7 @@ var safeExitAsync = async (func, exitOnFail = true) => {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
// src/lib/dependencies/DuplicateDetector.ts
|
|
91
|
-
import { EOL } from "
|
|
91
|
+
import { EOL } from "os";
|
|
92
92
|
import chalk3 from "chalk";
|
|
93
93
|
|
|
94
94
|
// src/lib/jsonFormatters.ts
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
existsSync,
|
|
209
209
|
readFileSync,
|
|
210
210
|
writeFileSync
|
|
211
|
-
} from "
|
|
211
|
+
} from "fs";
|
|
212
212
|
|
|
213
213
|
// src/lib/string/empty.ts
|
|
214
214
|
var empty = (value) => value?.trim().length === 0;
|
|
@@ -233,7 +233,7 @@ var writeLines = (uri, lines, options = defaultReadFileSyncOptions) => {
|
|
|
233
233
|
import chalk4 from "chalk";
|
|
234
234
|
|
|
235
235
|
// src/lib/yarn/isYarnVersionOrGreater.ts
|
|
236
|
-
import { spawnSync } from "
|
|
236
|
+
import { spawnSync } from "child_process";
|
|
237
237
|
var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
238
238
|
const result = spawnSync("yarn", ["-v"], { encoding: "utf8", shell: true });
|
|
239
239
|
const version = result.stdout.toString().replaceAll("\n", "");
|
|
@@ -248,7 +248,7 @@ var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
|
248
248
|
};
|
|
249
249
|
|
|
250
250
|
// src/lib/yarn/workspace/yarnWorkspaces.ts
|
|
251
|
-
import { spawnSync as spawnSync2 } from "
|
|
251
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
252
252
|
var yarnWorkspaces = () => {
|
|
253
253
|
const result = spawnSync2("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
|
|
254
254
|
if (result.error) {
|
|
@@ -296,7 +296,7 @@ var generateIgnoreFiles = (filename3, pkg) => {
|
|
|
296
296
|
};
|
|
297
297
|
|
|
298
298
|
// src/lib/parsedPackageJSON.ts
|
|
299
|
-
import { readFileSync as readFileSync2 } from "
|
|
299
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
300
300
|
var parsedPackageJSON = (path5) => {
|
|
301
301
|
const pathToPackageJSON = path5 ?? process.env.npm_package_json ?? "";
|
|
302
302
|
const packageJSON = readFileSync2(pathToPackageJSON).toString();
|
|
@@ -304,8 +304,8 @@ var parsedPackageJSON = (path5) => {
|
|
|
304
304
|
};
|
|
305
305
|
|
|
306
306
|
// src/lib/runSteps.ts
|
|
307
|
-
import { spawnSync as spawnSync3 } from "
|
|
308
|
-
import { existsSync as existsSync2 } from "
|
|
307
|
+
import { spawnSync as spawnSync3 } from "child_process";
|
|
308
|
+
import { existsSync as existsSync2 } from "fs";
|
|
309
309
|
import chalk5 from "chalk";
|
|
310
310
|
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
311
311
|
return safeExit(() => {
|
|
@@ -335,8 +335,8 @@ var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
|
335
335
|
};
|
|
336
336
|
|
|
337
337
|
// src/lib/runStepsAsync.ts
|
|
338
|
-
import { spawn } from "
|
|
339
|
-
import { existsSync as existsSync3 } from "
|
|
338
|
+
import { spawn } from "child_process";
|
|
339
|
+
import { existsSync as existsSync3 } from "fs";
|
|
340
340
|
import chalk6 from "chalk";
|
|
341
341
|
var runStepAsync = (name, step, exitOnFail = true, message) => {
|
|
342
342
|
return new Promise((resolve) => {
|
|
@@ -422,7 +422,7 @@ var cleanAll = ({ verbose }) => {
|
|
|
422
422
|
};
|
|
423
423
|
|
|
424
424
|
// src/actions/clean-docs.ts
|
|
425
|
-
import path from "
|
|
425
|
+
import path from "path";
|
|
426
426
|
import chalk8 from "chalk";
|
|
427
427
|
var cleanDocs = () => {
|
|
428
428
|
const pkgName = process.env.npm_package_name;
|
|
@@ -548,7 +548,7 @@ var compileTypesAll = ({
|
|
|
548
548
|
};
|
|
549
549
|
|
|
550
550
|
// src/actions/copy-assets.ts
|
|
551
|
-
import path2 from "
|
|
551
|
+
import path2 from "path/posix";
|
|
552
552
|
import chalk11 from "chalk";
|
|
553
553
|
import cpy from "cpy";
|
|
554
554
|
var copyPackageTargetAssets = async (target, name, location) => {
|
|
@@ -674,8 +674,8 @@ function findFiles(path5) {
|
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
// src/actions/deplint/getDependenciesFromPackageJson.ts
|
|
677
|
-
import fs2 from "
|
|
678
|
-
import path3 from "
|
|
677
|
+
import fs2 from "fs";
|
|
678
|
+
import path3 from "path";
|
|
679
679
|
function getDependenciesFromPackageJson(packageJsonPath) {
|
|
680
680
|
const packageJsonFullPath = path3.resolve(packageJsonPath);
|
|
681
681
|
const rawContent = fs2.readFileSync(packageJsonFullPath, "utf8");
|
|
@@ -691,8 +691,8 @@ function getDependenciesFromPackageJson(packageJsonPath) {
|
|
|
691
691
|
}
|
|
692
692
|
|
|
693
693
|
// src/actions/deplint/getImportsFromFile.ts
|
|
694
|
-
import fs3 from "
|
|
695
|
-
import path4 from "
|
|
694
|
+
import fs3 from "fs";
|
|
695
|
+
import path4 from "path";
|
|
696
696
|
import ts from "typescript";
|
|
697
697
|
|
|
698
698
|
// src/actions/deplint/getBasePackageName.ts
|
|
@@ -933,7 +933,7 @@ var deplint = ({
|
|
|
933
933
|
};
|
|
934
934
|
|
|
935
935
|
// src/actions/deploy.ts
|
|
936
|
-
import { readFileSync as readFileSync3 } from "
|
|
936
|
+
import { readFileSync as readFileSync3 } from "fs";
|
|
937
937
|
var privatePackageExcludeList = () => {
|
|
938
938
|
const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
|
|
939
939
|
workspace,
|
|
@@ -958,7 +958,7 @@ var deploy = () => {
|
|
|
958
958
|
};
|
|
959
959
|
|
|
960
960
|
// src/actions/deploy-major.ts
|
|
961
|
-
import { readFileSync as readFileSync4 } from "
|
|
961
|
+
import { readFileSync as readFileSync4 } from "fs";
|
|
962
962
|
var privatePackageExcludeList2 = () => {
|
|
963
963
|
const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
|
|
964
964
|
workspace,
|
|
@@ -983,7 +983,7 @@ var deployMajor = () => {
|
|
|
983
983
|
};
|
|
984
984
|
|
|
985
985
|
// src/actions/deploy-minor.ts
|
|
986
|
-
import { readFileSync as readFileSync5 } from "
|
|
986
|
+
import { readFileSync as readFileSync5 } from "fs";
|
|
987
987
|
var privatePackageExcludeList3 = () => {
|
|
988
988
|
const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
|
|
989
989
|
workspace,
|
|
@@ -1008,7 +1008,7 @@ var deployMinor = () => {
|
|
|
1008
1008
|
};
|
|
1009
1009
|
|
|
1010
1010
|
// src/actions/deploy-next.ts
|
|
1011
|
-
import { readFileSync as readFileSync6 } from "
|
|
1011
|
+
import { readFileSync as readFileSync6 } from "fs";
|
|
1012
1012
|
var privatePackageExcludeList4 = () => {
|
|
1013
1013
|
const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
|
|
1014
1014
|
workspace,
|
|
@@ -1149,7 +1149,7 @@ Gitlint Start [${process.cwd()}]
|
|
|
1149
1149
|
};
|
|
1150
1150
|
|
|
1151
1151
|
// src/actions/gitlint-fix.ts
|
|
1152
|
-
import { execSync as execSync2 } from "
|
|
1152
|
+
import { execSync as execSync2 } from "child_process";
|
|
1153
1153
|
import chalk20 from "chalk";
|
|
1154
1154
|
import ParseGitConfig2 from "parse-git-config";
|
|
1155
1155
|
var gitlintFix = () => {
|
|
@@ -1346,7 +1346,7 @@ import {
|
|
|
1346
1346
|
closeSync,
|
|
1347
1347
|
openSync,
|
|
1348
1348
|
rmSync
|
|
1349
|
-
} from "
|
|
1349
|
+
} from "fs";
|
|
1350
1350
|
var reinstall = () => {
|
|
1351
1351
|
console.log("Reinstall [Clear Lock File]");
|
|
1352
1352
|
closeSync(openSync("./yarn.lock", "w"));
|