@xylabs/ts-scripts-yarn3 3.0.0-rc.1 → 3.0.0-rc.11
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/compile.d.ts +2 -1
- package/dist/actions/compile.d.ts.map +1 -1
- package/dist/actions/package/compile.d.ts +4 -1
- package/dist/actions/package/compile.d.ts.map +1 -1
- package/dist/actions/package/compile.js +8 -3
- package/dist/actions/package/compile.js.map +1 -1
- package/dist/bin/package/compile.js +1 -1
- package/dist/bin/package/compile.js.map +1 -1
- package/package.json +11 -12
- package/src/actions/compile.ts +1 -1
- package/src/actions/package/compile.ts +12 -3
- package/src/bin/package/compile.ts +1 -1
- package/dist/actions/build.mjs +0 -133
- package/dist/actions/build.mjs.map +0 -1
- package/dist/actions/clean-docs.mjs +0 -29
- package/dist/actions/clean-docs.mjs.map +0 -1
- package/dist/actions/clean-eslint.mjs +0 -15
- package/dist/actions/clean-eslint.mjs.map +0 -1
- package/dist/actions/clean-jest.mjs +0 -100
- package/dist/actions/clean-jest.mjs.map +0 -1
- package/dist/actions/clean.mjs +0 -210
- package/dist/actions/clean.mjs.map +0 -1
- package/dist/actions/compile.mjs +0 -124
- package/dist/actions/compile.mjs.map +0 -1
- package/dist/actions/copy-assets.mjs +0 -71
- package/dist/actions/copy-assets.mjs.map +0 -1
- package/dist/actions/cycle.mjs +0 -100
- package/dist/actions/cycle.mjs.map +0 -1
- package/dist/actions/dead.mjs +0 -99
- package/dist/actions/dead.mjs.map +0 -1
- package/dist/actions/deploy-major.mjs +0 -106
- package/dist/actions/deploy-major.mjs.map +0 -1
- package/dist/actions/deploy-minor.mjs +0 -106
- package/dist/actions/deploy-minor.mjs.map +0 -1
- package/dist/actions/deploy-next.mjs +0 -106
- package/dist/actions/deploy-next.mjs.map +0 -1
- package/dist/actions/deploy.mjs +0 -107
- package/dist/actions/deploy.mjs.map +0 -1
- package/dist/actions/deps.mjs +0 -121
- package/dist/actions/deps.mjs.map +0 -1
- package/dist/actions/dupdeps.mjs +0 -181
- package/dist/actions/dupdeps.mjs.map +0 -1
- package/dist/actions/fix.mjs +0 -99
- package/dist/actions/fix.mjs.map +0 -1
- package/dist/actions/gen-docs.mjs +0 -110
- package/dist/actions/gen-docs.mjs.map +0 -1
- package/dist/actions/gitignore-gen.mjs +0 -87
- package/dist/actions/gitignore-gen.mjs.map +0 -1
- package/dist/actions/gitlint-fix.mjs +0 -27
- package/dist/actions/gitlint-fix.mjs.map +0 -1
- package/dist/actions/gitlint.mjs +0 -48
- package/dist/actions/gitlint.mjs.map +0 -1
- package/dist/actions/index.mjs +0 -1405
- package/dist/actions/index.mjs.map +0 -1
- package/dist/actions/license.mjs +0 -87
- package/dist/actions/license.mjs.map +0 -1
- package/dist/actions/lint-clean.mjs +0 -147
- package/dist/actions/lint-clean.mjs.map +0 -1
- package/dist/actions/lint-profile.mjs +0 -99
- package/dist/actions/lint-profile.mjs.map +0 -1
- package/dist/actions/lint.mjs +0 -137
- package/dist/actions/lint.mjs.map +0 -1
- package/dist/actions/npmignore-gen.mjs +0 -87
- package/dist/actions/npmignore-gen.mjs.map +0 -1
- package/dist/actions/package/clean-outputs.mjs +0 -18
- package/dist/actions/package/clean-outputs.mjs.map +0 -1
- package/dist/actions/package/clean-typescript.mjs +0 -18
- package/dist/actions/package/clean-typescript.mjs.map +0 -1
- package/dist/actions/package/clean.mjs +0 -38
- package/dist/actions/package/clean.mjs.map +0 -1
- package/dist/actions/package/compile.mjs +0 -63
- package/dist/actions/package/compile.mjs.map +0 -1
- package/dist/actions/package/copy-assets.mjs +0 -43
- package/dist/actions/package/copy-assets.mjs.map +0 -1
- package/dist/actions/package/deps.mjs +0 -96
- package/dist/actions/package/deps.mjs.map +0 -1
- package/dist/actions/package/gen-docs.mjs +0 -112
- package/dist/actions/package/gen-docs.mjs.map +0 -1
- package/dist/actions/package/index.mjs +0 -400
- package/dist/actions/package/index.mjs.map +0 -1
- package/dist/actions/package/publint.mjs +0 -21
- package/dist/actions/package/publint.mjs.map +0 -1
- package/dist/actions/package/recompile.mjs +0 -103
- package/dist/actions/package/recompile.mjs.map +0 -1
- package/dist/actions/package/tsup.mjs +0 -31
- package/dist/actions/package/tsup.mjs.map +0 -1
- package/dist/actions/package/types.d.js +0 -2
- package/dist/actions/package/types.d.js.map +0 -1
- package/dist/actions/package/types.d.mjs +0 -1
- package/dist/actions/package/types.d.mjs.map +0 -1
- package/dist/actions/publint.mjs +0 -168
- package/dist/actions/publint.mjs.map +0 -1
- package/dist/actions/rebuild.mjs +0 -102
- package/dist/actions/rebuild.mjs.map +0 -1
- package/dist/actions/recompile.mjs +0 -140
- package/dist/actions/recompile.mjs.map +0 -1
- package/dist/actions/reinstall.mjs +0 -130
- package/dist/actions/reinstall.mjs.map +0 -1
- package/dist/actions/relint.mjs +0 -128
- package/dist/actions/relint.mjs.map +0 -1
- package/dist/actions/retest.mjs +0 -102
- package/dist/actions/retest.mjs.map +0 -1
- package/dist/actions/sonar.mjs +0 -99
- package/dist/actions/sonar.mjs.map +0 -1
- package/dist/actions/statics.mjs +0 -181
- package/dist/actions/statics.mjs.map +0 -1
- package/dist/actions/test.mjs +0 -99
- package/dist/actions/test.mjs.map +0 -1
- package/dist/actions/up.mjs +0 -99
- package/dist/actions/up.mjs.map +0 -1
- package/dist/actions/updo.mjs +0 -103
- package/dist/actions/updo.mjs.map +0 -1
- package/dist/actions/upplug.mjs +0 -104
- package/dist/actions/upplug.mjs.map +0 -1
- package/dist/actions/upyarn.mjs +0 -99
- package/dist/actions/upyarn.mjs.map +0 -1
- package/dist/actions/yarn3only.mjs +0 -60
- package/dist/actions/yarn3only.mjs.map +0 -1
- package/dist/bin/build.mjs +0 -13
- package/dist/bin/build.mjs.map +0 -1
- package/dist/bin/clean.mjs +0 -13
- package/dist/bin/clean.mjs.map +0 -1
- package/dist/bin/compile.mjs +0 -13
- package/dist/bin/compile.mjs.map +0 -1
- package/dist/bin/cycle.mjs +0 -13
- package/dist/bin/cycle.mjs.map +0 -1
- package/dist/bin/dead.mjs +0 -13
- package/dist/bin/dead.mjs.map +0 -1
- package/dist/bin/deploy-major.mjs +0 -13
- package/dist/bin/deploy-major.mjs.map +0 -1
- package/dist/bin/deploy-minor.mjs +0 -13
- package/dist/bin/deploy-minor.mjs.map +0 -1
- package/dist/bin/deploy-next.mjs +0 -13
- package/dist/bin/deploy-next.mjs.map +0 -1
- package/dist/bin/deploy.mjs +0 -13
- package/dist/bin/deploy.mjs.map +0 -1
- package/dist/bin/deps.mjs +0 -13
- package/dist/bin/deps.mjs.map +0 -1
- package/dist/bin/fix.mjs +0 -13
- package/dist/bin/fix.mjs.map +0 -1
- package/dist/bin/gen-docs.mjs +0 -13
- package/dist/bin/gen-docs.mjs.map +0 -1
- package/dist/bin/gitlint-fix.mjs +0 -13
- package/dist/bin/gitlint-fix.mjs.map +0 -1
- package/dist/bin/gitlint.mjs +0 -13
- package/dist/bin/gitlint.mjs.map +0 -1
- package/dist/bin/license.mjs +0 -13
- package/dist/bin/license.mjs.map +0 -1
- package/dist/bin/lint-clean.mjs +0 -13
- package/dist/bin/lint-clean.mjs.map +0 -1
- package/dist/bin/lint-fast.mjs +0 -13
- package/dist/bin/lint-fast.mjs.map +0 -1
- package/dist/bin/lint-profile.mjs +0 -13
- package/dist/bin/lint-profile.mjs.map +0 -1
- package/dist/bin/lint.mjs +0 -13
- package/dist/bin/lint.mjs.map +0 -1
- package/dist/bin/package/clean-outputs.mjs +0 -20
- package/dist/bin/package/clean-outputs.mjs.map +0 -1
- package/dist/bin/package/clean-typescript.mjs +0 -20
- package/dist/bin/package/clean-typescript.mjs.map +0 -1
- package/dist/bin/package/clean.mjs +0 -40
- package/dist/bin/package/clean.mjs.map +0 -1
- package/dist/bin/package/compile.mjs +0 -71
- package/dist/bin/package/compile.mjs.map +0 -1
- package/dist/bin/package/copy-assets-cjs.mjs +0 -51
- package/dist/bin/package/copy-assets-cjs.mjs.map +0 -1
- package/dist/bin/package/copy-assets-esm.mjs +0 -51
- package/dist/bin/package/copy-assets-esm.mjs.map +0 -1
- package/dist/bin/package/deps.mjs +0 -102
- package/dist/bin/package/deps.mjs.map +0 -1
- package/dist/bin/package/gen-docs.mjs +0 -114
- package/dist/bin/package/gen-docs.mjs.map +0 -1
- package/dist/bin/package/publint.mjs +0 -29
- package/dist/bin/package/publint.mjs.map +0 -1
- package/dist/bin/package/recompile.mjs +0 -111
- package/dist/bin/package/recompile.mjs.map +0 -1
- package/dist/bin/package/tsup.mjs +0 -39
- package/dist/bin/package/tsup.mjs.map +0 -1
- package/dist/bin/publint.mjs +0 -13
- package/dist/bin/publint.mjs.map +0 -1
- package/dist/bin/rebuild.mjs +0 -13
- package/dist/bin/rebuild.mjs.map +0 -1
- package/dist/bin/recompile.mjs +0 -13
- package/dist/bin/recompile.mjs.map +0 -1
- package/dist/bin/reinstall.mjs +0 -13
- package/dist/bin/reinstall.mjs.map +0 -1
- package/dist/bin/relint.mjs +0 -13
- package/dist/bin/relint.mjs.map +0 -1
- package/dist/bin/sonar.mjs +0 -13
- package/dist/bin/sonar.mjs.map +0 -1
- package/dist/bin/test.mjs +0 -13
- package/dist/bin/test.mjs.map +0 -1
- package/dist/bin/tsconfig-gen-clean.mjs +0 -13
- package/dist/bin/tsconfig-gen-clean.mjs.map +0 -1
- package/dist/bin/tsconfig-gen.mjs +0 -13
- package/dist/bin/tsconfig-gen.mjs.map +0 -1
- package/dist/bin/up.mjs +0 -13
- package/dist/bin/up.mjs.map +0 -1
- package/dist/bin/updo.mjs +0 -13
- package/dist/bin/updo.mjs.map +0 -1
- package/dist/bin/upplug.mjs +0 -13
- package/dist/bin/upplug.mjs.map +0 -1
- package/dist/bin/upyarn.mjs +0 -13
- package/dist/bin/upyarn.mjs.map +0 -1
- package/dist/bin/xy-ts.mjs +0 -1465
- package/dist/bin/xy-ts.mjs.map +0 -1
- package/dist/bin/xy.mjs +0 -1465
- package/dist/bin/xy.mjs.map +0 -1
- package/dist/bin/yarn3only.mjs +0 -13
- package/dist/bin/yarn3only.mjs.map +0 -1
- package/dist/index.d.mts +0 -299
- package/dist/index.mjs +0 -2024
- package/dist/index.mjs.map +0 -1
- package/dist/lib/checkResult.mjs +0 -16
- package/dist/lib/checkResult.mjs.map +0 -1
- package/dist/lib/createBuildConfig.mjs +0 -45
- package/dist/lib/createBuildConfig.mjs.map +0 -1
- package/dist/lib/defaultBuildConfig.mjs +0 -13
- package/dist/lib/defaultBuildConfig.mjs.map +0 -1
- package/dist/lib/dependencies/DuplicateDetector.mjs +0 -77
- package/dist/lib/dependencies/DuplicateDetector.mjs.map +0 -1
- package/dist/lib/dependencies/detectDuplicateDependencies.mjs +0 -162
- package/dist/lib/dependencies/detectDuplicateDependencies.mjs.map +0 -1
- package/dist/lib/dependencies/index.mjs +0 -163
- package/dist/lib/dependencies/index.mjs.map +0 -1
- package/dist/lib/file/ReadFileSyncOptions.mjs +0 -6
- package/dist/lib/file/ReadFileSyncOptions.mjs.map +0 -1
- package/dist/lib/file/constants.mjs +0 -8
- package/dist/lib/file/constants.mjs.map +0 -1
- package/dist/lib/file/fileLines.mjs +0 -29
- package/dist/lib/file/fileLines.mjs.map +0 -1
- package/dist/lib/file/index.mjs +0 -39
- package/dist/lib/file/index.mjs.map +0 -1
- package/dist/lib/file/tryReadFileSync.mjs +0 -14
- package/dist/lib/file/tryReadFileSync.mjs.map +0 -1
- package/dist/lib/generateIgnoreFiles.mjs +0 -83
- package/dist/lib/generateIgnoreFiles.mjs.map +0 -1
- package/dist/lib/index.mjs +0 -1562
- package/dist/lib/index.mjs.map +0 -1
- package/dist/lib/jsonFormatters.mjs +0 -11
- package/dist/lib/jsonFormatters.mjs.map +0 -1
- package/dist/lib/parsedPackageJSON.mjs +0 -11
- package/dist/lib/parsedPackageJSON.mjs.map +0 -1
- package/dist/lib/processEx.mjs +0 -36
- package/dist/lib/processEx.mjs.map +0 -1
- package/dist/lib/runSteps.mjs +0 -96
- package/dist/lib/runSteps.mjs.map +0 -1
- package/dist/lib/runStepsAsync.mjs +0 -113
- package/dist/lib/runStepsAsync.mjs.map +0 -1
- package/dist/lib/runXy.mjs +0 -101
- package/dist/lib/runXy.mjs.map +0 -1
- package/dist/lib/runXyWithWarning.mjs +0 -11
- package/dist/lib/runXyWithWarning.mjs.map +0 -1
- package/dist/lib/safeExit.mjs +0 -61
- package/dist/lib/safeExit.mjs.map +0 -1
- package/dist/lib/string/empty.mjs +0 -8
- package/dist/lib/string/empty.mjs.map +0 -1
- package/dist/lib/string/index.mjs +0 -12
- package/dist/lib/string/index.mjs.map +0 -1
- package/dist/lib/string/union.mjs +0 -6
- package/dist/lib/string/union.mjs.map +0 -1
- package/dist/lib/withErrnoException.mjs +0 -13
- package/dist/lib/withErrnoException.mjs.map +0 -1
- package/dist/lib/withError.mjs +0 -8
- package/dist/lib/withError.mjs.map +0 -1
- package/dist/lib/xy/index.mjs +0 -1471
- package/dist/lib/xy/index.mjs.map +0 -1
- package/dist/lib/xy/xy.mjs +0 -1465
- package/dist/lib/xy/xy.mjs.map +0 -1
- package/dist/lib/xy/xyBuildCommands.mjs +0 -393
- package/dist/lib/xy/xyBuildCommands.mjs.map +0 -1
- package/dist/lib/xy/xyCommonCommands.mjs +0 -579
- package/dist/lib/xy/xyCommonCommands.mjs.map +0 -1
- package/dist/lib/xy/xyDeployCommands.mjs +0 -192
- package/dist/lib/xy/xyDeployCommands.mjs.map +0 -1
- package/dist/lib/xy/xyInstallCommands.mjs +0 -459
- package/dist/lib/xy/xyInstallCommands.mjs.map +0 -1
- package/dist/lib/xy/xyLintCommands.mjs +0 -334
- package/dist/lib/xy/xyLintCommands.mjs.map +0 -1
- package/dist/lib/xy/xyParseOptions.mjs +0 -45
- package/dist/lib/xy/xyParseOptions.mjs.map +0 -1
- package/dist/lib/yarn/index.mjs +0 -49
- package/dist/lib/yarn/index.mjs.map +0 -1
- package/dist/lib/yarn/isYarnVersionOrGreater.mjs +0 -18
- package/dist/lib/yarn/isYarnVersionOrGreater.mjs.map +0 -1
- package/dist/lib/yarn/workspace/Workspace.mjs +0 -1
- package/dist/lib/yarn/workspace/Workspace.mjs.map +0 -1
- package/dist/lib/yarn/workspace/index.mjs +0 -25
- package/dist/lib/yarn/workspace/index.mjs.map +0 -1
- package/dist/lib/yarn/workspace/yarnWorkspace.mjs +0 -24
- package/dist/lib/yarn/workspace/yarnWorkspace.mjs.map +0 -1
- package/dist/lib/yarn/workspace/yarnWorkspaces.mjs +0 -16
- package/dist/lib/yarn/workspace/yarnWorkspaces.mjs.map +0 -1
- package/dist/lib/yarn/yarnInitCwd.mjs +0 -10
- package/dist/lib/yarn/yarnInitCwd.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/checkResult.ts","../../src/lib/processEx.ts","../../src/lib/withError.ts","../../src/lib/withErrnoException.ts","../../src/lib/safeExit.ts","../../src/lib/runSteps.ts","../../src/actions/upplug.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const checkResult = (name: string, result: number, level: 'error' | 'warn' = 'error', exitOnFail = false) => {\n if (result) {\n const exiting = exitOnFail ? '[Exiting Process]' : '[Continuing]'\n const chalkFunc = level === 'error' ? chalk.red : chalk.yellow\n console[level](chalkFunc(`${name} had ${result} failures ${exiting}`))\n if (exitOnFail) {\n process.exit(result)\n }\n }\n}\n","import chalk from 'chalk'\n\nimport { withErrnoException } from './withErrnoException'\nimport { withError } from './withError'\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const processEx = (ex: any) => {\n const error = typeof ex === 'string' ? Error(ex) : ex\n const exitCode =\n withErrnoException(error, (error) => {\n if (error.code === 'ENOENT') {\n console.error(chalk.red(`'${error.path}' not found.`))\n } else {\n console.error(chalk.red(`Errno: ${error.code}`))\n }\n return error.errno ?? -1\n }) ??\n withError(error, (error) => {\n console.error(chalk.red(`${error.name}: ${error.message}`))\n return -1\n }) ??\n (() => {\n console.error(chalk.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`))\n return -1\n })()\n //This allows us to use a previously set exit code\n process.exit(process.exitCode ?? exitCode)\n}\n","export const withError = <T extends Error = Error>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ex: any,\n closure: (error: T) => number,\n predicate = (ex: T) => ex.name !== undefined && ex.message !== undefined,\n) => {\n return predicate(ex as T) ? closure(ex as T) : undefined\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { withError } from './withError'\n\nexport const withErrnoException = <T extends NodeJS.ErrnoException = NodeJS.ErrnoException>(ex: any, closure: (error: T) => number) => {\n return withError<T>(ex, closure, (ex: any) => ex.errno !== undefined)\n}\n","/** Catch child process a crash and returns the code */\n\nimport { processEx } from './processEx'\n\nconst safeExit = (func: () => number, exitOnFail = true): number => {\n try {\n const result = func()\n if (result && exitOnFail) {\n process.exit(result)\n }\n return result\n } catch (ex) {\n return processEx(ex)\n }\n}\n\nconst safeExitAsync = async (func: () => Promise<number>, exitOnFail = true): Promise<number> => {\n try {\n const result = await func()\n if (result && exitOnFail) {\n process.exit(result)\n }\n return result\n } catch (ex) {\n return processEx(ex)\n }\n}\n\nexport { safeExit, safeExitAsync }\n","import chalk from 'chalk'\nimport { spawnSync, SpawnSyncOptionsWithBufferEncoding } from 'child_process'\nimport { existsSync } from 'fs'\n\nimport { checkResult } from './checkResult'\nimport { safeExit } from './safeExit'\n\nexport type ScriptStep =\n | [/*command*/ 'yarn' | 'node' | 'ts-node-script' | 'tsc' | 'jest', /*arg*/ string | string[]]\n | [/*command*/ string, /*arg*/ string | string[], /*config*/ SpawnSyncOptionsWithBufferEncoding]\n\nexport const runSteps = (name: string, steps: ScriptStep[], exitOnFail = true, messages?: string[]): number => {\n return safeExit(() => {\n const pkgName = process.env.npm_package_name\n console.log(chalk.green(`${name} [${pkgName}]`))\n let totalStatus = 0\n for (let i = 0; i < steps.length; i++) {\n const [command, args, config] = steps[i]\n if (messages?.[i]) {\n console.log(chalk.gray(messages?.[i]))\n }\n const argList = Array.isArray(args) ? args : args.split(' ')\n if (command === 'node' && !existsSync(argList[0])) {\n throw Error(`File not found [${argList[0]}]`)\n }\n const status =\n spawnSync(command, Array.isArray(args) ? args : args.split(' '), {\n ...config,\n encoding: 'utf8',\n env: { FORCE_COLOR: '3', ...process.env },\n shell: true,\n stdio: 'inherit',\n }).status ?? 0\n checkResult(name, status, 'error', exitOnFail)\n totalStatus += status ?? 0\n }\n return totalStatus\n }, !!exitOnFail)\n}\n","import { runSteps } from '../lib'\n\nexport const updateYarnPlugins = () => {\n return runSteps('Update Yarn Plugins', [\n ['yarn', ['plugin', 'import', 'https://mskelton.dev/yarn-outdated/v3']],\n ['yarn', ['plugin', 'import', 'version']],\n ['yarn', ['plugin', 'import', 'interactive-tools']],\n ['yarn', ['plugin', 'import', 'workspace-tools']],\n ])\n}\n"],"mappings":"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","names":["chalk","ex","ex","error","chalk","chalk","chalk"]}
|
package/dist/actions/upyarn.mjs
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
// src/lib/checkResult.ts
|
|
2
|
-
import chalk from "chalk";
|
|
3
|
-
var checkResult = (name, result, level = "error", exitOnFail = false) => {
|
|
4
|
-
if (result) {
|
|
5
|
-
const exiting = exitOnFail ? "[Exiting Process]" : "[Continuing]";
|
|
6
|
-
const chalkFunc = level === "error" ? chalk.red : chalk.yellow;
|
|
7
|
-
console[level](chalkFunc(`${name} had ${result} failures ${exiting}`));
|
|
8
|
-
if (exitOnFail) {
|
|
9
|
-
process.exit(result);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
// src/lib/processEx.ts
|
|
15
|
-
import chalk2 from "chalk";
|
|
16
|
-
|
|
17
|
-
// src/lib/withError.ts
|
|
18
|
-
var withError = (ex, closure, predicate = (ex2) => ex2.name !== void 0 && ex2.message !== void 0) => {
|
|
19
|
-
return predicate(ex) ? closure(ex) : void 0;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// src/lib/withErrnoException.ts
|
|
23
|
-
var withErrnoException = (ex, closure) => {
|
|
24
|
-
return withError(ex, closure, (ex2) => ex2.errno !== void 0);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// src/lib/processEx.ts
|
|
28
|
-
var processEx = (ex) => {
|
|
29
|
-
const error = typeof ex === "string" ? Error(ex) : ex;
|
|
30
|
-
const exitCode = withErrnoException(error, (error2) => {
|
|
31
|
-
if (error2.code === "ENOENT") {
|
|
32
|
-
console.error(chalk2.red(`'${error2.path}' not found.`));
|
|
33
|
-
} else {
|
|
34
|
-
console.error(chalk2.red(`Errno: ${error2.code}`));
|
|
35
|
-
}
|
|
36
|
-
return error2.errno ?? -1;
|
|
37
|
-
}) ?? withError(error, (error2) => {
|
|
38
|
-
console.error(chalk2.red(`${error2.name}: ${error2.message}`));
|
|
39
|
-
return -1;
|
|
40
|
-
}) ?? (() => {
|
|
41
|
-
console.error(chalk2.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`));
|
|
42
|
-
return -1;
|
|
43
|
-
})();
|
|
44
|
-
process.exit(process.exitCode ?? exitCode);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
// src/lib/safeExit.ts
|
|
48
|
-
var safeExit = (func, exitOnFail = true) => {
|
|
49
|
-
try {
|
|
50
|
-
const result = func();
|
|
51
|
-
if (result && exitOnFail) {
|
|
52
|
-
process.exit(result);
|
|
53
|
-
}
|
|
54
|
-
return result;
|
|
55
|
-
} catch (ex) {
|
|
56
|
-
return processEx(ex);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// src/lib/runSteps.ts
|
|
61
|
-
import chalk3 from "chalk";
|
|
62
|
-
import { spawnSync } from "child_process";
|
|
63
|
-
import { existsSync } from "fs";
|
|
64
|
-
var runSteps = (name, steps, exitOnFail = true, messages) => {
|
|
65
|
-
return safeExit(() => {
|
|
66
|
-
const pkgName = process.env.npm_package_name;
|
|
67
|
-
console.log(chalk3.green(`${name} [${pkgName}]`));
|
|
68
|
-
let totalStatus = 0;
|
|
69
|
-
for (let i = 0; i < steps.length; i++) {
|
|
70
|
-
const [command, args, config] = steps[i];
|
|
71
|
-
if (messages?.[i]) {
|
|
72
|
-
console.log(chalk3.gray(messages?.[i]));
|
|
73
|
-
}
|
|
74
|
-
const argList = Array.isArray(args) ? args : args.split(" ");
|
|
75
|
-
if (command === "node" && !existsSync(argList[0])) {
|
|
76
|
-
throw Error(`File not found [${argList[0]}]`);
|
|
77
|
-
}
|
|
78
|
-
const status = spawnSync(command, Array.isArray(args) ? args : args.split(" "), {
|
|
79
|
-
...config,
|
|
80
|
-
encoding: "utf8",
|
|
81
|
-
env: { FORCE_COLOR: "3", ...process.env },
|
|
82
|
-
shell: true,
|
|
83
|
-
stdio: "inherit"
|
|
84
|
-
}).status ?? 0;
|
|
85
|
-
checkResult(name, status, "error", exitOnFail);
|
|
86
|
-
totalStatus += status ?? 0;
|
|
87
|
-
}
|
|
88
|
-
return totalStatus;
|
|
89
|
-
}, !!exitOnFail);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
// src/actions/upyarn.ts
|
|
93
|
-
var updateYarnVersion = () => {
|
|
94
|
-
return runSteps("Update Yarn Version", [["yarn", ["set", "version", "latest"]]]);
|
|
95
|
-
};
|
|
96
|
-
export {
|
|
97
|
-
updateYarnVersion
|
|
98
|
-
};
|
|
99
|
-
//# sourceMappingURL=upyarn.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/checkResult.ts","../../src/lib/processEx.ts","../../src/lib/withError.ts","../../src/lib/withErrnoException.ts","../../src/lib/safeExit.ts","../../src/lib/runSteps.ts","../../src/actions/upyarn.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const checkResult = (name: string, result: number, level: 'error' | 'warn' = 'error', exitOnFail = false) => {\n if (result) {\n const exiting = exitOnFail ? '[Exiting Process]' : '[Continuing]'\n const chalkFunc = level === 'error' ? chalk.red : chalk.yellow\n console[level](chalkFunc(`${name} had ${result} failures ${exiting}`))\n if (exitOnFail) {\n process.exit(result)\n }\n }\n}\n","import chalk from 'chalk'\n\nimport { withErrnoException } from './withErrnoException'\nimport { withError } from './withError'\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const processEx = (ex: any) => {\n const error = typeof ex === 'string' ? Error(ex) : ex\n const exitCode =\n withErrnoException(error, (error) => {\n if (error.code === 'ENOENT') {\n console.error(chalk.red(`'${error.path}' not found.`))\n } else {\n console.error(chalk.red(`Errno: ${error.code}`))\n }\n return error.errno ?? -1\n }) ??\n withError(error, (error) => {\n console.error(chalk.red(`${error.name}: ${error.message}`))\n return -1\n }) ??\n (() => {\n console.error(chalk.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`))\n return -1\n })()\n //This allows us to use a previously set exit code\n process.exit(process.exitCode ?? exitCode)\n}\n","export const withError = <T extends Error = Error>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ex: any,\n closure: (error: T) => number,\n predicate = (ex: T) => ex.name !== undefined && ex.message !== undefined,\n) => {\n return predicate(ex as T) ? closure(ex as T) : undefined\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { withError } from './withError'\n\nexport const withErrnoException = <T extends NodeJS.ErrnoException = NodeJS.ErrnoException>(ex: any, closure: (error: T) => number) => {\n return withError<T>(ex, closure, (ex: any) => ex.errno !== undefined)\n}\n","/** Catch child process a crash and returns the code */\n\nimport { processEx } from './processEx'\n\nconst safeExit = (func: () => number, exitOnFail = true): number => {\n try {\n const result = func()\n if (result && exitOnFail) {\n process.exit(result)\n }\n return result\n } catch (ex) {\n return processEx(ex)\n }\n}\n\nconst safeExitAsync = async (func: () => Promise<number>, exitOnFail = true): Promise<number> => {\n try {\n const result = await func()\n if (result && exitOnFail) {\n process.exit(result)\n }\n return result\n } catch (ex) {\n return processEx(ex)\n }\n}\n\nexport { safeExit, safeExitAsync }\n","import chalk from 'chalk'\nimport { spawnSync, SpawnSyncOptionsWithBufferEncoding } from 'child_process'\nimport { existsSync } from 'fs'\n\nimport { checkResult } from './checkResult'\nimport { safeExit } from './safeExit'\n\nexport type ScriptStep =\n | [/*command*/ 'yarn' | 'node' | 'ts-node-script' | 'tsc' | 'jest', /*arg*/ string | string[]]\n | [/*command*/ string, /*arg*/ string | string[], /*config*/ SpawnSyncOptionsWithBufferEncoding]\n\nexport const runSteps = (name: string, steps: ScriptStep[], exitOnFail = true, messages?: string[]): number => {\n return safeExit(() => {\n const pkgName = process.env.npm_package_name\n console.log(chalk.green(`${name} [${pkgName}]`))\n let totalStatus = 0\n for (let i = 0; i < steps.length; i++) {\n const [command, args, config] = steps[i]\n if (messages?.[i]) {\n console.log(chalk.gray(messages?.[i]))\n }\n const argList = Array.isArray(args) ? args : args.split(' ')\n if (command === 'node' && !existsSync(argList[0])) {\n throw Error(`File not found [${argList[0]}]`)\n }\n const status =\n spawnSync(command, Array.isArray(args) ? args : args.split(' '), {\n ...config,\n encoding: 'utf8',\n env: { FORCE_COLOR: '3', ...process.env },\n shell: true,\n stdio: 'inherit',\n }).status ?? 0\n checkResult(name, status, 'error', exitOnFail)\n totalStatus += status ?? 0\n }\n return totalStatus\n }, !!exitOnFail)\n}\n","import { runSteps } from '../lib'\n\nexport const updateYarnVersion = () => {\n return runSteps('Update Yarn Version', [['yarn', ['set', 'version', 'latest']]])\n}\n"],"mappings":"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","names":["chalk","ex","ex","error","chalk","chalk","chalk"]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// src/lib/processEx.ts
|
|
2
|
-
import chalk from "chalk";
|
|
3
|
-
|
|
4
|
-
// src/lib/withError.ts
|
|
5
|
-
var withError = (ex, closure, predicate = (ex2) => ex2.name !== void 0 && ex2.message !== void 0) => {
|
|
6
|
-
return predicate(ex) ? closure(ex) : void 0;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
// src/lib/withErrnoException.ts
|
|
10
|
-
var withErrnoException = (ex, closure) => {
|
|
11
|
-
return withError(ex, closure, (ex2) => ex2.errno !== void 0);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
// src/lib/processEx.ts
|
|
15
|
-
var processEx = (ex) => {
|
|
16
|
-
const error = typeof ex === "string" ? Error(ex) : ex;
|
|
17
|
-
const exitCode = withErrnoException(error, (error2) => {
|
|
18
|
-
if (error2.code === "ENOENT") {
|
|
19
|
-
console.error(chalk.red(`'${error2.path}' not found.`));
|
|
20
|
-
} else {
|
|
21
|
-
console.error(chalk.red(`Errno: ${error2.code}`));
|
|
22
|
-
}
|
|
23
|
-
return error2.errno ?? -1;
|
|
24
|
-
}) ?? withError(error, (error2) => {
|
|
25
|
-
console.error(chalk.red(`${error2.name}: ${error2.message}`));
|
|
26
|
-
return -1;
|
|
27
|
-
}) ?? (() => {
|
|
28
|
-
console.error(chalk.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`));
|
|
29
|
-
return -1;
|
|
30
|
-
})();
|
|
31
|
-
process.exit(process.exitCode ?? exitCode);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// src/lib/yarn/isYarnVersionOrGreater.ts
|
|
35
|
-
import { spawnSync } from "child_process";
|
|
36
|
-
var isYarnVersionOrGreater = (major, minor, patch) => {
|
|
37
|
-
const result = spawnSync("yarn", ["-v"], { encoding: "utf8", shell: true });
|
|
38
|
-
const version = result.stdout.toString().replaceAll("\n", "");
|
|
39
|
-
const versionNumbers = version.split(".").map((ver) => parseInt(ver));
|
|
40
|
-
const majorDelta = versionNumbers[0] - major;
|
|
41
|
-
const minorDelta = versionNumbers[1] - (minor ?? versionNumbers[1]);
|
|
42
|
-
const patchDelta = versionNumbers[2] - (patch ?? versionNumbers[2]);
|
|
43
|
-
const majorOk = majorDelta >= 0;
|
|
44
|
-
const minorOk = majorDelta > 0 || minorDelta >= 0;
|
|
45
|
-
const patchOk = majorDelta > 0 || minorDelta > 0 || patchDelta >= 0;
|
|
46
|
-
return [majorOk && minorOk && patchOk, version];
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// src/actions/yarn3only.ts
|
|
50
|
-
var yarn3Only = () => {
|
|
51
|
-
const [valid, version] = isYarnVersionOrGreater(3);
|
|
52
|
-
if (!valid) {
|
|
53
|
-
processEx(`Invalid Yarn version [${version}]`);
|
|
54
|
-
}
|
|
55
|
-
return 0;
|
|
56
|
-
};
|
|
57
|
-
export {
|
|
58
|
-
yarn3Only
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=yarn3only.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/processEx.ts","../../src/lib/withError.ts","../../src/lib/withErrnoException.ts","../../src/lib/yarn/isYarnVersionOrGreater.ts","../../src/actions/yarn3only.ts"],"sourcesContent":["import chalk from 'chalk'\n\nimport { withErrnoException } from './withErrnoException'\nimport { withError } from './withError'\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const processEx = (ex: any) => {\n const error = typeof ex === 'string' ? Error(ex) : ex\n const exitCode =\n withErrnoException(error, (error) => {\n if (error.code === 'ENOENT') {\n console.error(chalk.red(`'${error.path}' not found.`))\n } else {\n console.error(chalk.red(`Errno: ${error.code}`))\n }\n return error.errno ?? -1\n }) ??\n withError(error, (error) => {\n console.error(chalk.red(`${error.name}: ${error.message}`))\n return -1\n }) ??\n (() => {\n console.error(chalk.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`))\n return -1\n })()\n //This allows us to use a previously set exit code\n process.exit(process.exitCode ?? exitCode)\n}\n","export const withError = <T extends Error = Error>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ex: any,\n closure: (error: T) => number,\n predicate = (ex: T) => ex.name !== undefined && ex.message !== undefined,\n) => {\n return predicate(ex as T) ? closure(ex as T) : undefined\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { withError } from './withError'\n\nexport const withErrnoException = <T extends NodeJS.ErrnoException = NodeJS.ErrnoException>(ex: any, closure: (error: T) => number) => {\n return withError<T>(ex, closure, (ex: any) => ex.errno !== undefined)\n}\n","import { spawnSync } from 'child_process'\n\nexport const isYarnVersionOrGreater = (major: number, minor?: number, patch?: number): [boolean, string] => {\n const result = spawnSync('yarn', ['-v'], { encoding: 'utf8', shell: true })\n const version = result.stdout.toString().replaceAll('\\n', '')\n const versionNumbers = version.split('.').map((ver) => parseInt(ver))\n const majorDelta = versionNumbers[0] - major\n const minorDelta = versionNumbers[1] - (minor ?? versionNumbers[1])\n const patchDelta = versionNumbers[2] - (patch ?? versionNumbers[2])\n\n const majorOk = majorDelta >= 0\n const minorOk = majorDelta > 0 || minorDelta >= 0\n const patchOk = majorDelta > 0 || minorDelta > 0 || patchDelta >= 0\n\n return [majorOk && minorOk && patchOk, version]\n}\n","import { isYarnVersionOrGreater, processEx } from '../lib'\n\nexport const yarn3Only = () => {\n const [valid, version] = isYarnVersionOrGreater(3)\n if (!valid) {\n processEx(`Invalid Yarn version [${version}]`)\n }\n return 0\n}\n"],"mappings":";AAAA,OAAO,WAAW;;;ACAX,IAAM,YAAY,CAEvB,IACA,SACA,YAAY,CAACA,QAAUA,IAAG,SAAS,UAAaA,IAAG,YAAY,WAC5D;AACH,SAAO,UAAU,EAAO,IAAI,QAAQ,EAAO,IAAI;AACjD;;;ACJO,IAAM,qBAAqB,CAA0D,IAAS,YAAkC;AACrI,SAAO,UAAa,IAAI,SAAS,CAACC,QAAYA,IAAG,UAAU,MAAS;AACtE;;;AFCO,IAAM,YAAY,CAAC,OAAY;AACpC,QAAM,QAAQ,OAAO,OAAO,WAAW,MAAM,EAAE,IAAI;AACnD,QAAM,WACJ,mBAAmB,OAAO,CAACC,WAAU;AACnC,QAAIA,OAAM,SAAS,UAAU;AAC3B,cAAQ,MAAM,MAAM,IAAI,IAAIA,OAAM,IAAI,cAAc,CAAC;AAAA,IACvD,OAAO;AACL,cAAQ,MAAM,MAAM,IAAI,UAAUA,OAAM,IAAI,EAAE,CAAC;AAAA,IACjD;AACA,WAAOA,OAAM,SAAS;AAAA,EACxB,CAAC,KACD,UAAU,OAAO,CAACA,WAAU;AAC1B,YAAQ,MAAM,MAAM,IAAI,GAAGA,OAAM,IAAI,KAAKA,OAAM,OAAO,EAAE,CAAC;AAC1D,WAAO;AAAA,EACT,CAAC,MACA,MAAM;AACL,YAAQ,MAAM,MAAM,IAAI,qBAAqB,KAAK,UAAU,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC;AAC3E,WAAO;AAAA,EACT,GAAG;AAEL,UAAQ,KAAK,QAAQ,YAAY,QAAQ;AAC3C;;;AG3BA,SAAS,iBAAiB;AAEnB,IAAM,yBAAyB,CAAC,OAAe,OAAgB,UAAsC;AAC1G,QAAM,SAAS,UAAU,QAAQ,CAAC,IAAI,GAAG,EAAE,UAAU,QAAQ,OAAO,KAAK,CAAC;AAC1E,QAAM,UAAU,OAAO,OAAO,SAAS,EAAE,WAAW,MAAM,EAAE;AAC5D,QAAM,iBAAiB,QAAQ,MAAM,GAAG,EAAE,IAAI,CAAC,QAAQ,SAAS,GAAG,CAAC;AACpE,QAAM,aAAa,eAAe,CAAC,IAAI;AACvC,QAAM,aAAa,eAAe,CAAC,KAAK,SAAS,eAAe,CAAC;AACjE,QAAM,aAAa,eAAe,CAAC,KAAK,SAAS,eAAe,CAAC;AAEjE,QAAM,UAAU,cAAc;AAC9B,QAAM,UAAU,aAAa,KAAK,cAAc;AAChD,QAAM,UAAU,aAAa,KAAK,aAAa,KAAK,cAAc;AAElE,SAAO,CAAC,WAAW,WAAW,SAAS,OAAO;AAChD;;;ACbO,IAAM,YAAY,MAAM;AAC7B,QAAM,CAAC,OAAO,OAAO,IAAI,uBAAuB,CAAC;AACjD,MAAI,CAAC,OAAO;AACV,cAAU,yBAAyB,OAAO,GAAG;AAAA,EAC/C;AACA,SAAO;AACT;","names":["ex","ex","error"]}
|
package/dist/bin/build.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/build.ts
|
|
12
|
-
runXyWithWarning("build");
|
|
13
|
-
//# sourceMappingURL=build.mjs.map
|
package/dist/bin/build.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/build.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('build')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,OAAO;","names":[]}
|
package/dist/bin/clean.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/clean.ts
|
|
12
|
-
runXyWithWarning("clean");
|
|
13
|
-
//# sourceMappingURL=clean.mjs.map
|
package/dist/bin/clean.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/clean.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('clean')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,OAAO;","names":[]}
|
package/dist/bin/compile.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/compile.ts
|
|
12
|
-
runXyWithWarning("compile");
|
|
13
|
-
//# sourceMappingURL=compile.mjs.map
|
package/dist/bin/compile.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/compile.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('compile')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,SAAS;","names":[]}
|
package/dist/bin/cycle.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/cycle.ts
|
|
12
|
-
runXyWithWarning("cycle");
|
|
13
|
-
//# sourceMappingURL=cycle.mjs.map
|
package/dist/bin/cycle.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/cycle.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('cycle')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,OAAO;","names":[]}
|
package/dist/bin/dead.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/dead.ts
|
|
12
|
-
runXyWithWarning("dead");
|
|
13
|
-
//# sourceMappingURL=dead.mjs.map
|
package/dist/bin/dead.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/dead.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('dead')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,MAAM;","names":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/deploy-major.ts
|
|
12
|
-
runXyWithWarning("deploy-major");
|
|
13
|
-
//# sourceMappingURL=deploy-major.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/deploy-major.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('deploy-major')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,cAAc;","names":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/deploy-minor.ts
|
|
12
|
-
runXyWithWarning("deploy-minor");
|
|
13
|
-
//# sourceMappingURL=deploy-minor.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/deploy-minor.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('deploy-minor')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,cAAc;","names":[]}
|
package/dist/bin/deploy-next.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/deploy-next.ts
|
|
12
|
-
runXyWithWarning("deploy-next");
|
|
13
|
-
//# sourceMappingURL=deploy-next.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/deploy-next.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('deploy-next')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,aAAa;","names":[]}
|
package/dist/bin/deploy.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/deploy.ts
|
|
12
|
-
runXyWithWarning("deploy");
|
|
13
|
-
//# sourceMappingURL=deploy.mjs.map
|
package/dist/bin/deploy.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/deploy.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('deploy')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,QAAQ;","names":[]}
|
package/dist/bin/deps.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/deps.ts
|
|
12
|
-
runXyWithWarning("deps");
|
|
13
|
-
//# sourceMappingURL=deps.mjs.map
|
package/dist/bin/deps.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/deps.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('deps')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,MAAM;","names":[]}
|
package/dist/bin/fix.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/fix.ts
|
|
12
|
-
runXyWithWarning("fix");
|
|
13
|
-
//# sourceMappingURL=fix.mjs.map
|
package/dist/bin/fix.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/fix.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('fix')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,KAAK;","names":[]}
|
package/dist/bin/gen-docs.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/gen-docs.ts
|
|
12
|
-
runXyWithWarning("gen-docs");
|
|
13
|
-
//# sourceMappingURL=gen-docs.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/gen-docs.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('gen-docs')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,UAAU;","names":[]}
|
package/dist/bin/gitlint-fix.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/gitlint-fix.ts
|
|
12
|
-
runXyWithWarning("gitlint-fix");
|
|
13
|
-
//# sourceMappingURL=gitlint-fix.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/gitlint-fix.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('gitlint-fix')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,aAAa;","names":[]}
|
package/dist/bin/gitlint.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/gitlint.ts
|
|
12
|
-
runXyWithWarning("gitlint");
|
|
13
|
-
//# sourceMappingURL=gitlint.mjs.map
|
package/dist/bin/gitlint.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/gitlint.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('gitlint')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,SAAS;","names":[]}
|
package/dist/bin/license.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/license.ts
|
|
12
|
-
runXyWithWarning("license");
|
|
13
|
-
//# sourceMappingURL=license.mjs.map
|
package/dist/bin/license.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/license.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('license')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,SAAS;","names":[]}
|
package/dist/bin/lint-clean.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/lint-clean.ts
|
|
12
|
-
runXyWithWarning("lint-clean");
|
|
13
|
-
//# sourceMappingURL=lint-clean.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/lint-clean.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('lint-clean')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,YAAY;","names":[]}
|
package/dist/bin/lint-fast.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/lint-fast.ts
|
|
12
|
-
runXyWithWarning("lint-fast");
|
|
13
|
-
//# sourceMappingURL=lint-fast.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/lint-fast.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('lint-fast')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,WAAW;","names":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/lint-profile.ts
|
|
12
|
-
runXyWithWarning("lint-profile");
|
|
13
|
-
//# sourceMappingURL=lint-profile.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/lint-profile.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('lint-profile')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,cAAc;","names":[]}
|
package/dist/bin/lint.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/lib/runXyWithWarning.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
var runXyWithWarning = (command) => {
|
|
6
|
-
console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`));
|
|
7
|
-
console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`));
|
|
8
|
-
return 1;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// src/bin/lint.ts
|
|
12
|
-
runXyWithWarning("lint");
|
|
13
|
-
//# sourceMappingURL=lint.mjs.map
|
package/dist/bin/lint.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/runXyWithWarning.ts","../../src/bin/lint.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const runXyWithWarning = (command: string) => {\n console.warn(chalk.yellow(`WARNING: [${chalk.white(`yarn ${command}`)}] is deprecated for XY Labs Scripts.`))\n console.warn(chalk.gray(`Did you mean [${chalk.magenta(`yarn xy ${command}`)}]?`))\n return 1\n}\n","#!/usr/bin/env node\n\nimport { runXyWithWarning } from \"../lib\"\n\nrunXyWithWarning('lint')\n"],"mappings":";;;AAAA,OAAO,WAAW;AAEX,IAAM,mBAAmB,CAAC,YAAoB;AACnD,UAAQ,KAAK,MAAM,OAAO,aAAa,MAAM,MAAM,QAAQ,OAAO,EAAE,CAAC,sCAAsC,CAAC;AAC5G,UAAQ,KAAK,MAAM,KAAK,iBAAiB,MAAM,QAAQ,WAAW,OAAO,EAAE,CAAC,IAAI,CAAC;AACjF,SAAO;AACT;;;ACFA,iBAAiB,MAAM;","names":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/actions/package/clean-outputs.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
import { rmSync } from "fs";
|
|
6
|
-
import path from "path";
|
|
7
|
-
var packageCleanOutputs = () => {
|
|
8
|
-
const pkg = process.env.INIT_CWD ?? ".";
|
|
9
|
-
const pkgName = process.env.npm_package_name;
|
|
10
|
-
console.log(chalk.green(`Cleaning Outputs [${pkgName}]`));
|
|
11
|
-
const dist = path.join(pkg, "dist");
|
|
12
|
-
rmSync(dist, { force: true, recursive: true });
|
|
13
|
-
const build = path.join(pkg, "build");
|
|
14
|
-
rmSync(build, { force: true, recursive: true });
|
|
15
|
-
return 0;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// src/bin/package/clean-outputs.ts
|
|
19
|
-
packageCleanOutputs();
|
|
20
|
-
//# sourceMappingURL=clean-outputs.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/package/clean-outputs.ts","../../../src/bin/package/clean-outputs.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { rmSync } from 'fs'\nimport path from 'path'\n\nexport const packageCleanOutputs = () => {\n const pkg = process.env.INIT_CWD ?? '.'\n const pkgName = process.env.npm_package_name\n console.log(chalk.green(`Cleaning Outputs [${pkgName}]`))\n\n const dist = path.join(pkg, 'dist')\n rmSync(dist, { force: true, recursive: true })\n\n const build = path.join(pkg, 'build')\n rmSync(build, { force: true, recursive: true })\n return 0\n}\n","#!/usr/bin/env node\n\nimport { packageCleanOutputs } from '../../actions'\n\npackageCleanOutputs()\n"],"mappings":";;;AAAA,OAAO,WAAW;AAClB,SAAS,cAAc;AACvB,OAAO,UAAU;AAEV,IAAM,sBAAsB,MAAM;AACvC,QAAM,MAAM,QAAQ,IAAI,YAAY;AACpC,QAAM,UAAU,QAAQ,IAAI;AAC5B,UAAQ,IAAI,MAAM,MAAM,qBAAqB,OAAO,GAAG,CAAC;AAExD,QAAM,OAAO,KAAK,KAAK,KAAK,MAAM;AAClC,SAAO,MAAM,EAAE,OAAO,MAAM,WAAW,KAAK,CAAC;AAE7C,QAAM,QAAQ,KAAK,KAAK,KAAK,OAAO;AACpC,SAAO,OAAO,EAAE,OAAO,MAAM,WAAW,KAAK,CAAC;AAC9C,SAAO;AACT;;;ACXA,oBAAoB;","names":[]}
|