@supersoniks/concorde 4.4.1 → 4.4.2
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/build-infos.json +1 -1
- package/concorde-core.bundle.js +1 -1
- package/concorde-core.es.js +1 -1
- package/dist/concorde-core.bundle.js +1 -1
- package/dist/concorde-core.es.js +1 -1
- package/docs/assets/{index-DP1oMukw.js → index-CW8cIYT9.js} +1 -1
- package/docs/index.html +1 -1
- package/docs/src/tsconfig.json +317 -317
- package/package.json +2 -2
- package/vite/config.js +11 -6
- package/vite.config.mts +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersoniks/concorde",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "",
|
|
@@ -364,4 +364,4 @@
|
|
|
364
364
|
"url-pattern": "^1.0.3"
|
|
365
365
|
},
|
|
366
366
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
367
|
-
}
|
|
367
|
+
}
|
package/vite/config.js
CHANGED
|
@@ -93,8 +93,7 @@ componentsFiles.forEach((file) => {
|
|
|
93
93
|
}
|
|
94
94
|
if (shortPathMapping[`@concorde/${last}`]) {
|
|
95
95
|
console.warn(
|
|
96
|
-
`@concorde/${last} already exists in ${
|
|
97
|
-
shortPathMapping[`@concorde/${last}`]
|
|
96
|
+
`@concorde/${last} already exists in ${shortPathMapping[`@concorde/${last}`]
|
|
98
97
|
} : ${file}`
|
|
99
98
|
);
|
|
100
99
|
}
|
|
@@ -116,8 +115,7 @@ componentsFiles.forEach((file) => {
|
|
|
116
115
|
}
|
|
117
116
|
if (shortPathMapping[`@concorde/${joined}`]) {
|
|
118
117
|
console.warn(
|
|
119
|
-
`@concorde/${joined} already exists in ${
|
|
120
|
-
shortPathMapping[`@concorde/${joined}`]
|
|
118
|
+
`@concorde/${joined} already exists in ${shortPathMapping[`@concorde/${joined}`]
|
|
121
119
|
}`
|
|
122
120
|
);
|
|
123
121
|
}
|
|
@@ -229,7 +227,7 @@ const scopeComponents = (prefix, filesFilter) => {
|
|
|
229
227
|
// // remap source beginig with @supersoniks/concorde to the local path
|
|
230
228
|
const result = path.resolve(
|
|
231
229
|
source.replace("@supersoniks/concorde", __dirname + "/../src") +
|
|
232
|
-
|
|
230
|
+
extension
|
|
233
231
|
);
|
|
234
232
|
// console.log("longPathMapping", result);
|
|
235
233
|
|
|
@@ -290,11 +288,14 @@ const config = (
|
|
|
290
288
|
...tsConfig.compilerOptions.paths,
|
|
291
289
|
...shortPathMapping,
|
|
292
290
|
};
|
|
293
|
-
|
|
294
291
|
if (tsConfig) {
|
|
295
292
|
const tsconfigInline = { compilerOptions: tsConfig.compilerOptions };
|
|
296
293
|
result.oxc = {
|
|
297
294
|
...result.oxc,
|
|
295
|
+
decorator: {
|
|
296
|
+
legacy: true,
|
|
297
|
+
...result.oxc?.decorator,
|
|
298
|
+
},
|
|
298
299
|
tsconfig: {
|
|
299
300
|
...result.oxc?.tsconfig,
|
|
300
301
|
...tsconfigInline,
|
|
@@ -312,6 +313,10 @@ const config = (
|
|
|
312
313
|
...(result.optimizeDeps?.rolldownOptions || {}),
|
|
313
314
|
transform: {
|
|
314
315
|
...(result.optimizeDeps?.rolldownOptions?.transform || {}),
|
|
316
|
+
decorator: {
|
|
317
|
+
legacy: true,
|
|
318
|
+
...result.optimizeDeps?.rolldownOptions?.transform?.decorator,
|
|
319
|
+
},
|
|
315
320
|
tsconfig: {
|
|
316
321
|
...(result.optimizeDeps?.rolldownOptions?.transform?.tsconfig || {}),
|
|
317
322
|
...tsconfigInline,
|
package/vite.config.mts
CHANGED
|
@@ -44,7 +44,14 @@ const build = {
|
|
|
44
44
|
emptyOutDir: true, //!currentConfig.isLibrary,
|
|
45
45
|
outDir: currentConfig.outDir,
|
|
46
46
|
// require("electron") dans src/core/utils/Electron.ts (lib + doc)
|
|
47
|
-
rolldownOptions: {
|
|
47
|
+
rolldownOptions: {
|
|
48
|
+
external: ["electron"],
|
|
49
|
+
transform: {
|
|
50
|
+
decorator: {
|
|
51
|
+
legacy: true,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
48
55
|
};
|
|
49
56
|
if (currentConfig.isLibrary) {
|
|
50
57
|
build.lib = {
|
|
@@ -67,6 +74,11 @@ fs.writeFileSync(
|
|
|
67
74
|
|
|
68
75
|
// https://vitejs.dev/config/
|
|
69
76
|
export default defineConfig({
|
|
77
|
+
oxc: {
|
|
78
|
+
decorator: {
|
|
79
|
+
legacy: true,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
70
82
|
optimizeDeps: {
|
|
71
83
|
exclude: ["electron"],
|
|
72
84
|
},
|