@xylabs/ts-scripts-yarn3 4.0.0-rc.5 → 4.0.0-rc.7
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/index.mjs +6 -5
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +6 -5
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +6 -5
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +6 -88
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +6 -5
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +6 -5
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +6 -5
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +8 -90
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +6 -5
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +6 -5
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -4
- package/src/actions/package/compile/packageCompileTsup.ts +6 -6
package/package.json
CHANGED
|
@@ -60,17 +60,20 @@
|
|
|
60
60
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
61
61
|
"@rollup/plugin-json": "^6.1.0",
|
|
62
62
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
63
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
64
|
+
"@svgr/rollup": "^8.1.0",
|
|
63
65
|
"@swc/core": "^1.7.6",
|
|
64
66
|
"@types/node": "^22.1.0",
|
|
65
67
|
"@types/yargs": "^17.0.32",
|
|
66
|
-
"@xylabs/tsconfig": "^4.0.0-rc.
|
|
67
|
-
"@xylabs/tsconfig-dom": "^4.0.0-rc.
|
|
68
|
+
"@xylabs/tsconfig": "^4.0.0-rc.7",
|
|
69
|
+
"@xylabs/tsconfig-dom": "^4.0.0-rc.7",
|
|
68
70
|
"async-mutex": "^0.5.0",
|
|
69
71
|
"chalk": "^5.3.0",
|
|
70
72
|
"cosmiconfig": "^9.0.0",
|
|
71
73
|
"cosmiconfig-typescript-loader": "^5.0.0",
|
|
72
74
|
"cpy": "^11.1.0",
|
|
73
75
|
"depcheck": "^1.4.7",
|
|
76
|
+
"esbuild-plugin-svgr": "^2.1.0",
|
|
74
77
|
"eslint": "^9.8.0",
|
|
75
78
|
"glob": "^11.0.0",
|
|
76
79
|
"jest": "^29.7.0",
|
|
@@ -109,7 +112,7 @@
|
|
|
109
112
|
"@types/license-checker": "^25.0.6",
|
|
110
113
|
"@types/lodash": "^4.17.7",
|
|
111
114
|
"@types/parse-git-config": "^3.0.4",
|
|
112
|
-
"@xylabs/tsconfig": "^4.0.0-rc.
|
|
115
|
+
"@xylabs/tsconfig": "^4.0.0-rc.7",
|
|
113
116
|
"publint": "^0.2.9",
|
|
114
117
|
"typescript": "^5.5.4"
|
|
115
118
|
},
|
|
@@ -151,7 +154,7 @@
|
|
|
151
154
|
"package-clean": "echo Not cleaning..."
|
|
152
155
|
},
|
|
153
156
|
"sideEffects": false,
|
|
154
|
-
"version": "4.0.0-rc.
|
|
157
|
+
"version": "4.0.0-rc.7",
|
|
155
158
|
"type": "module",
|
|
156
159
|
"stableVersion": "3.15.16"
|
|
157
160
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { Loader } from 'esbuild'
|
|
2
|
+
import svgrPlugin from 'esbuild-plugin-svgr'
|
|
2
3
|
import { build, defineConfig, Options } from 'tsup'
|
|
3
4
|
|
|
4
5
|
import { packagePublint } from '../publint.ts'
|
|
5
6
|
import { buildEntries } from './buildEntries.ts'
|
|
6
|
-
import { packageCompileTsc } from './packageCompileTsc.ts'
|
|
7
|
-
import { packageCompileTscTypes } from './packageCompileTscTypes.ts'
|
|
8
7
|
import { EntryMode, XyTsupConfig } from './XyConfig.ts'
|
|
9
8
|
|
|
10
|
-
const compileFolder = async (folder: string, entryMode: EntryMode = 'single', options?: Options,
|
|
9
|
+
const compileFolder = async (folder: string, entryMode: EntryMode = 'single', options?: Options, _verbose?: boolean) => {
|
|
11
10
|
const outDir = options?.outDir ?? 'dist'
|
|
12
11
|
const entry = buildEntries(folder, entryMode)
|
|
13
12
|
const optionsResult = defineConfig({
|
|
@@ -22,6 +21,9 @@ const compileFolder = async (folder: string, entryMode: EntryMode = 'single', op
|
|
|
22
21
|
sourcemap: true,
|
|
23
22
|
splitting: false,
|
|
24
23
|
tsconfig: 'tsconfig.json',
|
|
24
|
+
esbuildPlugins: [
|
|
25
|
+
svgrPlugin(),
|
|
26
|
+
],
|
|
25
27
|
...options,
|
|
26
28
|
})
|
|
27
29
|
const optionsList = (
|
|
@@ -39,7 +41,6 @@ const compileFolder = async (folder: string, entryMode: EntryMode = 'single', op
|
|
|
39
41
|
return 0
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
// eslint-disable-next-line complexity
|
|
43
44
|
export const packageCompileTsup = async (config?: XyTsupConfig) => {
|
|
44
45
|
const compile = config?.compile
|
|
45
46
|
const publint = config?.publint ?? true
|
|
@@ -64,8 +65,7 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => {
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
return (
|
|
67
|
-
(
|
|
68
|
-
|| (
|
|
68
|
+
(
|
|
69
69
|
await Promise.all(
|
|
70
70
|
Object.entries(compileForNode).map(async ([folder, options]) => {
|
|
71
71
|
const inEsBuildOptions = typeof compile?.node?.esbuildOptions === 'object' ? compile?.node?.esbuildOptions : {}
|