@xylabs/ts-scripts-yarn3 6.5.17 → 7.0.0-rc.1
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/deplint/checkPackage/checkPackage.mjs +7 -25
- package/dist/actions/deplint/checkPackage/checkPackage.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnlistedDependencies.mjs +2 -13
- package/dist/actions/deplint/checkPackage/getUnlistedDependencies.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.mjs +1 -1
- package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnusedDependencies.mjs +1 -1
- package/dist/actions/deplint/checkPackage/getUnusedDependencies.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.mjs +1 -1
- package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/index.mjs +7 -25
- package/dist/actions/deplint/checkPackage/index.mjs.map +1 -1
- package/dist/actions/deplint/deplint.mjs +7 -25
- package/dist/actions/deplint/deplint.mjs.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs +2 -9
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs.map +1 -1
- package/dist/actions/deplint/index.mjs +7 -25
- package/dist/actions/deplint/index.mjs.map +1 -1
- package/dist/actions/index.mjs +155 -129
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +82 -91
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +136 -92
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTscTypes.mjs +58 -3
- package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +92 -120
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +142 -98
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +82 -91
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/build-only.mjs +84 -93
- package/dist/bin/package/build-only.mjs.map +1 -1
- package/dist/bin/package/build.mjs +84 -93
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +84 -93
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +97 -125
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +84 -93
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +84 -93
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/xy.mjs +7 -25
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.mjs +155 -129
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +7 -25
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +7 -25
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +7 -25
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +6 -5
- package/dist/actions/package/compile/compileTypes.mjs +0 -138
- package/dist/actions/package/compile/compileTypes.mjs.map +0 -1
- package/dist/bin/package/compile-types.mjs +0 -150
- package/dist/bin/package/compile-types.mjs.map +0 -1
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/bin/package/compile-types.ts
|
|
4
|
-
import chalk3 from "chalk";
|
|
5
|
-
|
|
6
|
-
// src/lib/loadConfig.ts
|
|
7
|
-
import chalk from "chalk";
|
|
8
|
-
import { cosmiconfig } from "cosmiconfig";
|
|
9
|
-
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
10
|
-
import deepmerge from "deepmerge";
|
|
11
|
-
var config;
|
|
12
|
-
var loadConfig = async (params) => {
|
|
13
|
-
if (config) {
|
|
14
|
-
return deepmerge(config, params ?? {});
|
|
15
|
-
}
|
|
16
|
-
const cosmicConfigResult = await cosmiconfig("xy", { cache: true, loaders: { ".ts": TypeScriptLoader() } }).search();
|
|
17
|
-
config = cosmicConfigResult?.config;
|
|
18
|
-
const configFilePath = cosmicConfigResult?.filepath;
|
|
19
|
-
if (configFilePath) {
|
|
20
|
-
console.log(chalk.gray(`Loading config from ${configFilePath}`));
|
|
21
|
-
}
|
|
22
|
-
return deepmerge(config, params ?? {});
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
// src/actions/package/compile/inputs.ts
|
|
26
|
-
import { glob } from "glob";
|
|
27
|
-
var getAllInputs = (folder) => {
|
|
28
|
-
return glob.sync(`${folder}/**/*.*`, { posix: true });
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
// src/actions/package/compile/buildEntries.ts
|
|
32
|
-
var buildEntries = (folder, entryMode = "single", excludeSpecAndStories = true, verbose = false) => {
|
|
33
|
-
let entries = [];
|
|
34
|
-
switch (entryMode) {
|
|
35
|
-
case "platform": {
|
|
36
|
-
entries = [`${folder}/index-node.ts`, `${folder}/index-browser.ts`];
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
case "all": {
|
|
40
|
-
entries = excludeSpecAndStories ? getAllInputs(folder).filter((entry) => !entry.includes(".spec.") && !entry.includes(".stories.")) : getAllInputs(folder);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
default: {
|
|
44
|
-
entries = [`${folder}/index.ts`];
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (verbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
|
|
49
|
-
return entries;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
// src/actions/package/compile/packageCompileTscTypes.ts
|
|
53
|
-
import { cwd } from "process";
|
|
54
|
-
import chalk2 from "chalk";
|
|
55
|
-
import { createProgramFromConfig } from "tsc-prog";
|
|
56
|
-
import {
|
|
57
|
-
DiagnosticCategory,
|
|
58
|
-
formatDiagnosticsWithColorAndContext,
|
|
59
|
-
getPreEmitDiagnostics,
|
|
60
|
-
sys as sys2
|
|
61
|
-
} from "typescript";
|
|
62
|
-
|
|
63
|
-
// src/actions/package/compile/getCompilerOptions.ts
|
|
64
|
-
import { createRequire } from "module";
|
|
65
|
-
import deepmerge2 from "deepmerge";
|
|
66
|
-
import {
|
|
67
|
-
findConfigFile,
|
|
68
|
-
readConfigFile,
|
|
69
|
-
sys
|
|
70
|
-
} from "typescript";
|
|
71
|
-
var getNested = (config2) => {
|
|
72
|
-
if (config2.extends) {
|
|
73
|
-
const require2 = createRequire(import.meta.url);
|
|
74
|
-
const opts = require2(config2.extends);
|
|
75
|
-
return deepmerge2(getNested(opts), config2.compilerOptions ?? {});
|
|
76
|
-
}
|
|
77
|
-
return config2.compilerOptions;
|
|
78
|
-
};
|
|
79
|
-
var getCompilerOptionsJSONFollowExtends = (filename) => {
|
|
80
|
-
const config2 = readConfigFile(filename, sys.readFile).config;
|
|
81
|
-
return getNested(config2);
|
|
82
|
-
};
|
|
83
|
-
var getCompilerOptions = (options = {}, tsconfig = "tsconfig.json") => {
|
|
84
|
-
const configFileName = findConfigFile("./", sys.fileExists, tsconfig);
|
|
85
|
-
const configFileCompilerOptions = (configFileName ? getCompilerOptionsJSONFollowExtends(configFileName) : void 0) ?? {};
|
|
86
|
-
return deepmerge2(configFileCompilerOptions, options);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
// src/actions/package/compile/packageCompileTscTypes.ts
|
|
90
|
-
var packageCompileTscTypes = (folder = "src", config2 = {}, compilerOptionsParam) => {
|
|
91
|
-
const pkg = process.env.INIT_CWD ?? cwd();
|
|
92
|
-
const verbose = config2?.verbose ?? false;
|
|
93
|
-
const compilerOptions = {
|
|
94
|
-
...getCompilerOptions({
|
|
95
|
-
emitDeclarationOnly: true,
|
|
96
|
-
outDir: config2.compile?.tsup?.options?.outDir ?? "dist/types",
|
|
97
|
-
removeComments: false,
|
|
98
|
-
skipDefaultLibCheck: true,
|
|
99
|
-
skipLibCheck: true,
|
|
100
|
-
sourceMap: false
|
|
101
|
-
}),
|
|
102
|
-
...compilerOptionsParam,
|
|
103
|
-
emitDeclarationOnly: true,
|
|
104
|
-
noEmit: false
|
|
105
|
-
};
|
|
106
|
-
const validTsExt = [".ts", ".tsx", ".d.ts", ".cts", ".d.cts", ".mts", ".d.mts"];
|
|
107
|
-
const excludes = [".stories.", ".spec.", "/stories/", "/spec/"];
|
|
108
|
-
const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && !excludes.some((exclude) => file.includes(exclude)));
|
|
109
|
-
console.log(chalk2.green(`Compiling Types ${pkg}: ${files.length}`));
|
|
110
|
-
if (files.length > 0) {
|
|
111
|
-
const program = createProgramFromConfig({
|
|
112
|
-
basePath: pkg ?? cwd(),
|
|
113
|
-
compilerOptions,
|
|
114
|
-
exclude: ["build", "dist", "docs", "**/*.spec.*", "**/*.stories.*", "src/**/spec/**/*"],
|
|
115
|
-
files
|
|
116
|
-
});
|
|
117
|
-
const diagnostics = getPreEmitDiagnostics(program);
|
|
118
|
-
if (diagnostics.length > 0) {
|
|
119
|
-
const formattedDiagnostics = formatDiagnosticsWithColorAndContext(
|
|
120
|
-
diagnostics,
|
|
121
|
-
{
|
|
122
|
-
getCanonicalFileName: (fileName) => fileName,
|
|
123
|
-
getCurrentDirectory: () => folder,
|
|
124
|
-
getNewLine: () => sys2.newLine
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
console.error(formattedDiagnostics);
|
|
128
|
-
}
|
|
129
|
-
program.emit();
|
|
130
|
-
return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory.Error ? 1 : 0), 0);
|
|
131
|
-
}
|
|
132
|
-
return 0;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
// src/actions/package/compile/compileTypes.ts
|
|
136
|
-
var packageCompileTypes = async (inConfig = {}) => {
|
|
137
|
-
const config2 = await loadConfig(inConfig);
|
|
138
|
-
return packageCompileTscTypes(void 0, config2);
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
// src/bin/package/compile-types.ts
|
|
142
|
-
packageCompileTypes({ verbose: true }).then((value) => {
|
|
143
|
-
if (value) {
|
|
144
|
-
process.exit(value);
|
|
145
|
-
}
|
|
146
|
-
}).catch((reason) => {
|
|
147
|
-
console.error(chalk3.red(reason));
|
|
148
|
-
process.exit(-1);
|
|
149
|
-
});
|
|
150
|
-
//# sourceMappingURL=compile-types.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/bin/package/compile-types.ts","../../../src/lib/loadConfig.ts","../../../src/actions/package/compile/inputs.ts","../../../src/actions/package/compile/buildEntries.ts","../../../src/actions/package/compile/packageCompileTscTypes.ts","../../../src/actions/package/compile/getCompilerOptions.ts","../../../src/actions/package/compile/compileTypes.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport chalk from 'chalk'\n\nimport { packageCompileTypes } from '../../actions/index.ts'\n\npackageCompileTypes({ verbose: true })\n .then((value) => {\n if (value) {\n process.exit(value)\n }\n })\n .catch((reason) => {\n console.error(chalk.red(reason))\n process.exit(-1)\n })\n","import chalk from 'chalk'\nimport { cosmiconfig } from 'cosmiconfig'\nimport { TypeScriptLoader } from 'cosmiconfig-typescript-loader'\nimport deepmerge from 'deepmerge'\n\nlet config: Record<string, unknown>\n\nexport const loadConfig = async <T extends object>(params?: T): Promise<T> => {\n if (config) {\n return deepmerge(config, params ?? {}) as T\n }\n\n const cosmicConfigResult = await cosmiconfig('xy', { cache: true, loaders: { '.ts': TypeScriptLoader() } }).search()\n config = cosmicConfigResult?.config\n const configFilePath = cosmicConfigResult?.filepath\n if (configFilePath) {\n console.log(chalk.gray(`Loading config from ${configFilePath}`))\n }\n return deepmerge(config, params ?? {}) as T\n}\n","import { glob } from 'glob'\n\nexport const getAllInputs = (folder: string) => {\n /* tsup wants posix paths */\n return glob.sync(`${folder}/**/*.*`, { posix: true })\n}\n","import { getAllInputs } from './inputs.ts'\nimport type { EntryMode } from './XyConfig.ts'\n\nexport const buildEntries = (folder: string, entryMode: EntryMode = 'single', excludeSpecAndStories = true, verbose = false) => {\n let entries: string[] = []\n switch (entryMode) {\n case 'platform': {\n entries = [`${folder}/index-node.ts`, `${folder}/index-browser.ts`]\n break\n }\n case 'all': {\n entries = excludeSpecAndStories ? getAllInputs(folder).filter(entry => !entry.includes('.spec.') && !entry.includes('.stories.')) : getAllInputs(folder)\n break\n }\n default: {\n entries = [`${folder}/index.ts`]\n break\n }\n }\n if (verbose) console.log(`buildEntries [${entryMode}] ${entries.length}`)\n return entries\n}\n","import { cwd } from 'node:process'\n\nimport chalk from 'chalk'\nimport type { TsConfigCompilerOptions } from 'tsc-prog'\nimport { createProgramFromConfig } from 'tsc-prog'\nimport type { CompilerOptions } from 'typescript'\nimport {\n DiagnosticCategory, formatDiagnosticsWithColorAndContext, getPreEmitDiagnostics, sys,\n} from 'typescript'\n\nimport { buildEntries } from './buildEntries.ts'\nimport { getCompilerOptions } from './getCompilerOptions.ts'\nimport type { XyConfig, XyTsupConfig } from './XyConfig.ts'\n\nexport const packageCompileTscTypes = (\n folder: string = 'src',\n config: XyConfig = {},\n compilerOptionsParam?: CompilerOptions,\n): number => {\n const pkg = process.env.INIT_CWD ?? cwd()\n const verbose = config?.verbose ?? false\n\n const compilerOptions = {\n ...(getCompilerOptions({\n emitDeclarationOnly: true,\n outDir: (config as XyTsupConfig).compile?.tsup?.options?.outDir ?? 'dist/types',\n removeComments: false,\n skipDefaultLibCheck: true,\n skipLibCheck: true,\n sourceMap: false,\n })),\n ...compilerOptionsParam,\n emitDeclarationOnly: true,\n noEmit: false,\n } as TsConfigCompilerOptions\n\n const validTsExt = ['.ts', '.tsx', '.d.ts', '.cts', '.d.cts', '.mts', '.d.mts']\n const excludes = ['.stories.', '.spec.', '/stories/', '/spec/']\n\n // calling all here since the types do not get rolled up\n const files = buildEntries(folder, 'all', verbose)\n .filter(file => validTsExt.find(ext => file.endsWith(ext)) && !(excludes.some(exclude => file.includes(exclude))))\n\n console.log(chalk.green(`Compiling Types ${pkg}: ${files.length}`))\n\n if (files.length > 0) {\n const program = createProgramFromConfig({\n basePath: pkg ?? cwd(),\n compilerOptions,\n exclude: ['build', 'dist', 'docs', '**/*.spec.*', '**/*.stories.*', 'src/**/spec/**/*'],\n files,\n })\n\n const diagnostics = getPreEmitDiagnostics(program)\n\n if (diagnostics.length > 0) {\n const formattedDiagnostics = formatDiagnosticsWithColorAndContext(\n diagnostics,\n {\n getCanonicalFileName: fileName => fileName,\n getCurrentDirectory: () => folder,\n getNewLine: () => sys.newLine,\n },\n )\n console.error(formattedDiagnostics)\n }\n\n program.emit()\n return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory.Error ? 1 : 0), 0)\n }\n return 0\n}\n","import { createRequire } from 'node:module'\n\nimport deepmerge from 'deepmerge'\nimport type { TsConfig } from 'tsc-prog'\nimport type { CompilerOptions } from 'typescript'\nimport {\n findConfigFile, readConfigFile, sys,\n} from 'typescript'\n\nconst getNested = (config: TsConfig): CompilerOptions => {\n if (config.extends) {\n const require = createRequire(import.meta.url)\n const opts = require(config.extends)\n return deepmerge(getNested(opts), config.compilerOptions ?? {}) as CompilerOptions\n }\n\n return config.compilerOptions as CompilerOptions\n}\n\nconst getCompilerOptionsJSONFollowExtends = (filename: string): CompilerOptions => {\n const config = readConfigFile(filename, sys.readFile).config\n return getNested(config)\n}\n\nexport const getCompilerOptions = (options: CompilerOptions = {}, tsconfig: string = 'tsconfig.json'): CompilerOptions => {\n const configFileName = findConfigFile('./', sys.fileExists, tsconfig)\n const configFileCompilerOptions = (configFileName ? getCompilerOptionsJSONFollowExtends(configFileName) : undefined) ?? {}\n\n return deepmerge(configFileCompilerOptions, options)\n}\n","import { loadConfig } from '../../../lib/index.ts'\nimport { packageCompileTscTypes } from './packageCompileTscTypes.ts'\nimport type { XyConfig, XyTscConfig } from './XyConfig.ts'\n\nexport const packageCompileTypes = async (inConfig: XyConfig = {}): Promise<number> => {\n const config = await loadConfig(inConfig)\n\n return packageCompileTscTypes(undefined, config as XyTscConfig)\n}\n"],"mappings":";;;AAEA,OAAOA,YAAW;;;ACFlB,OAAO,WAAW;AAClB,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,OAAO,eAAe;AAEtB,IAAI;AAEG,IAAM,aAAa,OAAyB,WAA2B;AAC5E,MAAI,QAAQ;AACV,WAAO,UAAU,QAAQ,UAAU,CAAC,CAAC;AAAA,EACvC;AAEA,QAAM,qBAAqB,MAAM,YAAY,MAAM,EAAE,OAAO,MAAM,SAAS,EAAE,OAAO,iBAAiB,EAAE,EAAE,CAAC,EAAE,OAAO;AACnH,WAAS,oBAAoB;AAC7B,QAAM,iBAAiB,oBAAoB;AAC3C,MAAI,gBAAgB;AAClB,YAAQ,IAAI,MAAM,KAAK,uBAAuB,cAAc,EAAE,CAAC;AAAA,EACjE;AACA,SAAO,UAAU,QAAQ,UAAU,CAAC,CAAC;AACvC;;;ACnBA,SAAS,YAAY;AAEd,IAAM,eAAe,CAAC,WAAmB;AAE9C,SAAO,KAAK,KAAK,GAAG,MAAM,WAAW,EAAE,OAAO,KAAK,CAAC;AACtD;;;ACFO,IAAM,eAAe,CAAC,QAAgB,YAAuB,UAAU,wBAAwB,MAAM,UAAU,UAAU;AAC9H,MAAI,UAAoB,CAAC;AACzB,UAAQ,WAAW;AAAA,IACjB,KAAK,YAAY;AACf,gBAAU,CAAC,GAAG,MAAM,kBAAkB,GAAG,MAAM,mBAAmB;AAClE;AAAA,IACF;AAAA,IACA,KAAK,OAAO;AACV,gBAAU,wBAAwB,aAAa,MAAM,EAAE,OAAO,WAAS,CAAC,MAAM,SAAS,QAAQ,KAAK,CAAC,MAAM,SAAS,WAAW,CAAC,IAAI,aAAa,MAAM;AACvJ;AAAA,I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