@xylabs/ts-scripts-yarn3 3.0.19 → 3.0.20
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/package/compile/tscTypes.js +2 -0
- package/dist/actions/package/compile/tscTypes.js.map +1 -1
- package/dist/actions/package/compile/tscTypes.mjs +2 -0
- package/dist/actions/package/compile/tscTypes.mjs.map +1 -1
- package/package.json +4 -4
- package/src/actions/package/compile/tscTypes.ts +2 -0
|
@@ -24,6 +24,7 @@ module.exports = __toCommonJS(tscTypes_exports);
|
|
|
24
24
|
var import_process = require("process");
|
|
25
25
|
var import_tsc_prog = require("tsc-prog");
|
|
26
26
|
var import_lib = require("../../../lib");
|
|
27
|
+
var import_copyTypeFiles = require("./copyTypeFiles");
|
|
27
28
|
const packageCompileTscTypes = async (params) => {
|
|
28
29
|
const pkg = process.env.INIT_CWD;
|
|
29
30
|
const buildOptions = {
|
|
@@ -45,6 +46,7 @@ const packageCompileTscTypes = async (params) => {
|
|
|
45
46
|
console.log(`Compiling types with TSC [${pkg}]`);
|
|
46
47
|
}
|
|
47
48
|
(0, import_tsc_prog.build)(buildOptions);
|
|
49
|
+
await (0, import_copyTypeFiles.copyTypeFiles)();
|
|
48
50
|
return 0;
|
|
49
51
|
};
|
|
50
52
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/actions/package/compile/tscTypes.ts"],"sourcesContent":["import { cwd } from 'process'\nimport { build, BuildOptions } from 'tsc-prog'\n\nimport { loadConfig } from '../../../lib'\nimport { CompileParams } from './CompileParams'\n\nexport const packageCompileTscTypes = async (params?: CompileParams): Promise<number> => {\n const pkg = process.env.INIT_CWD\n const buildOptions: BuildOptions = {\n basePath: pkg ?? cwd(),\n compilerOptions: {\n declaration: true,\n declarationMap: true,\n emitDeclarationOnly: true,\n esModuleInterop: true,\n outDir: 'dist',\n skipLibCheck: true,\n sourceMap: true,\n },\n exclude: ['dist', 'docs', '*.spec.*', 'src/**/spec/**/*'],\n include: ['src'],\n }\n\n const config = await loadConfig(params)\n if (config.verbose) {\n console.log(`Compiling types with TSC [${pkg}]`)\n }\n\n build(buildOptions)\n return 0\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAoB;AACpB,sBAAoC;AAEpC,iBAA2B;
|
|
1
|
+
{"version":3,"sources":["../../../../src/actions/package/compile/tscTypes.ts"],"sourcesContent":["import { cwd } from 'process'\nimport { build, BuildOptions } from 'tsc-prog'\n\nimport { loadConfig } from '../../../lib'\nimport { CompileParams } from './CompileParams'\nimport { copyTypeFiles } from './copyTypeFiles'\n\nexport const packageCompileTscTypes = async (params?: CompileParams): Promise<number> => {\n const pkg = process.env.INIT_CWD\n const buildOptions: BuildOptions = {\n basePath: pkg ?? cwd(),\n compilerOptions: {\n declaration: true,\n declarationMap: true,\n emitDeclarationOnly: true,\n esModuleInterop: true,\n outDir: 'dist',\n skipLibCheck: true,\n sourceMap: true,\n },\n exclude: ['dist', 'docs', '*.spec.*', 'src/**/spec/**/*'],\n include: ['src'],\n }\n\n const config = await loadConfig(params)\n if (config.verbose) {\n console.log(`Compiling types with TSC [${pkg}]`)\n }\n\n build(buildOptions)\n await copyTypeFiles()\n return 0\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAoB;AACpB,sBAAoC;AAEpC,iBAA2B;AAE3B,2BAA8B;AAEvB,MAAM,yBAAyB,OAAO,WAA4C;AACvF,QAAM,MAAM,QAAQ,IAAI;AACxB,QAAM,eAA6B;AAAA,IACjC,UAAU,WAAO,oBAAI;AAAA,IACrB,iBAAiB;AAAA,MACf,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,qBAAqB;AAAA,MACrB,iBAAiB;AAAA,MACjB,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,WAAW;AAAA,IACb;AAAA,IACA,SAAS,CAAC,QAAQ,QAAQ,YAAY,kBAAkB;AAAA,IACxD,SAAS,CAAC,KAAK;AAAA,EACjB;AAEA,QAAM,SAAS,UAAM,uBAAW,MAAM;AACtC,MAAI,OAAO,SAAS;AAClB,YAAQ,IAAI,6BAA6B,GAAG,GAAG;AAAA,EACjD;AAEA,6BAAM,YAAY;AAClB,YAAM,oCAAc;AACpB,SAAO;AACT;","names":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cwd } from "process";
|
|
2
2
|
import { build } from "tsc-prog";
|
|
3
3
|
import { loadConfig } from "../../../lib";
|
|
4
|
+
import { copyTypeFiles } from "./copyTypeFiles";
|
|
4
5
|
const packageCompileTscTypes = async (params) => {
|
|
5
6
|
const pkg = process.env.INIT_CWD;
|
|
6
7
|
const buildOptions = {
|
|
@@ -22,6 +23,7 @@ const packageCompileTscTypes = async (params) => {
|
|
|
22
23
|
console.log(`Compiling types with TSC [${pkg}]`);
|
|
23
24
|
}
|
|
24
25
|
build(buildOptions);
|
|
26
|
+
await copyTypeFiles();
|
|
25
27
|
return 0;
|
|
26
28
|
};
|
|
27
29
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/actions/package/compile/tscTypes.ts"],"sourcesContent":["import { cwd } from 'process'\nimport { build, BuildOptions } from 'tsc-prog'\n\nimport { loadConfig } from '../../../lib'\nimport { CompileParams } from './CompileParams'\n\nexport const packageCompileTscTypes = async (params?: CompileParams): Promise<number> => {\n const pkg = process.env.INIT_CWD\n const buildOptions: BuildOptions = {\n basePath: pkg ?? cwd(),\n compilerOptions: {\n declaration: true,\n declarationMap: true,\n emitDeclarationOnly: true,\n esModuleInterop: true,\n outDir: 'dist',\n skipLibCheck: true,\n sourceMap: true,\n },\n exclude: ['dist', 'docs', '*.spec.*', 'src/**/spec/**/*'],\n include: ['src'],\n }\n\n const config = await loadConfig(params)\n if (config.verbose) {\n console.log(`Compiling types with TSC [${pkg}]`)\n }\n\n build(buildOptions)\n return 0\n}\n"],"mappings":"AAAA,SAAS,WAAW;AACpB,SAAS,aAA2B;AAEpC,SAAS,kBAAkB;
|
|
1
|
+
{"version":3,"sources":["../../../../src/actions/package/compile/tscTypes.ts"],"sourcesContent":["import { cwd } from 'process'\nimport { build, BuildOptions } from 'tsc-prog'\n\nimport { loadConfig } from '../../../lib'\nimport { CompileParams } from './CompileParams'\nimport { copyTypeFiles } from './copyTypeFiles'\n\nexport const packageCompileTscTypes = async (params?: CompileParams): Promise<number> => {\n const pkg = process.env.INIT_CWD\n const buildOptions: BuildOptions = {\n basePath: pkg ?? cwd(),\n compilerOptions: {\n declaration: true,\n declarationMap: true,\n emitDeclarationOnly: true,\n esModuleInterop: true,\n outDir: 'dist',\n skipLibCheck: true,\n sourceMap: true,\n },\n exclude: ['dist', 'docs', '*.spec.*', 'src/**/spec/**/*'],\n include: ['src'],\n }\n\n const config = await loadConfig(params)\n if (config.verbose) {\n console.log(`Compiling types with TSC [${pkg}]`)\n }\n\n build(buildOptions)\n await copyTypeFiles()\n return 0\n}\n"],"mappings":"AAAA,SAAS,WAAW;AACpB,SAAS,aAA2B;AAEpC,SAAS,kBAAkB;AAE3B,SAAS,qBAAqB;AAEvB,MAAM,yBAAyB,OAAO,WAA4C;AACvF,QAAM,MAAM,QAAQ,IAAI;AACxB,QAAM,eAA6B;AAAA,IACjC,UAAU,OAAO,IAAI;AAAA,IACrB,iBAAiB;AAAA,MACf,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,qBAAqB;AAAA,MACrB,iBAAiB;AAAA,MACjB,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,WAAW;AAAA,IACb;AAAA,IACA,SAAS,CAAC,QAAQ,QAAQ,YAAY,kBAAkB;AAAA,IACxD,SAAS,CAAC,KAAK;AAAA,EACjB;AAEA,QAAM,SAAS,MAAM,WAAW,MAAM;AACtC,MAAI,OAAO,SAAS;AAClB,YAAQ,IAAI,6BAA6B,GAAG,GAAG;AAAA,EACjD;AAEA,QAAM,YAAY;AAClB,QAAM,cAAc;AACpB,SAAO;AACT;","names":[]}
|
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@types/yargs": "^17.0.24",
|
|
67
67
|
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
68
68
|
"@typescript-eslint/parser": "^6.7.0",
|
|
69
|
-
"@xylabs/tsconfig": "~3.0.
|
|
69
|
+
"@xylabs/tsconfig": "~3.0.20",
|
|
70
70
|
"chalk": "^4.1.2",
|
|
71
71
|
"cosmiconfig": "^8.3.6",
|
|
72
72
|
"cpy": "^8.1.2",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"@types/license-checker": "^25.0.4",
|
|
111
111
|
"@types/lodash": "^4.14.198",
|
|
112
112
|
"@types/parse-git-config": "^3.0.1",
|
|
113
|
-
"@xylabs/eslint-config": "^3.0.
|
|
114
|
-
"@xylabs/tsconfig": "^3.0.
|
|
113
|
+
"@xylabs/eslint-config": "^3.0.20",
|
|
114
|
+
"@xylabs/tsconfig": "^3.0.20",
|
|
115
115
|
"publint": "^0.2.2",
|
|
116
116
|
"typescript": "^5.2.2"
|
|
117
117
|
},
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"package-clean": "echo Not cleaning..."
|
|
169
169
|
},
|
|
170
170
|
"sideEffects": false,
|
|
171
|
-
"version": "3.0.
|
|
171
|
+
"version": "3.0.20"
|
|
172
172
|
}
|
|
@@ -3,6 +3,7 @@ import { build, BuildOptions } from 'tsc-prog'
|
|
|
3
3
|
|
|
4
4
|
import { loadConfig } from '../../../lib'
|
|
5
5
|
import { CompileParams } from './CompileParams'
|
|
6
|
+
import { copyTypeFiles } from './copyTypeFiles'
|
|
6
7
|
|
|
7
8
|
export const packageCompileTscTypes = async (params?: CompileParams): Promise<number> => {
|
|
8
9
|
const pkg = process.env.INIT_CWD
|
|
@@ -27,5 +28,6 @@ export const packageCompileTscTypes = async (params?: CompileParams): Promise<nu
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
build(buildOptions)
|
|
31
|
+
await copyTypeFiles()
|
|
30
32
|
return 0
|
|
31
33
|
}
|