@prosopo/config 3.1.21 → 3.1.25
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/CHANGELOG.md +22 -0
- package/dist/cjs/dependencies.cjs +2 -1
- package/dist/cjs/vite/vite.backend.config.cjs +3 -4
- package/dist/cjs/vite/vite.commonjs.config.cjs +17 -7
- package/dist/cjs/vite/vite.esm.config.cjs +3 -2
- package/dist/cjs/vite/vite.frontend.config.cjs +1 -1
- package/dist/cjs/webpack/webpack.config.cjs +1 -1
- package/dist/vite/vite.backend.config.d.ts.map +1 -1
- package/dist/vite/vite.backend.config.js +3 -4
- package/dist/vite/vite.commonjs.config.d.ts.map +1 -1
- package/dist/vite/vite.commonjs.config.js +17 -7
- package/dist/vite/vite.esm.config.d.ts.map +1 -1
- package/dist/vite/vite.esm.config.js +3 -2
- package/dist/vite/vite.frontend.config.js +1 -1
- package/package.json +32 -35
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @prosopo/config
|
|
2
2
|
|
|
3
|
+
## 3.1.25
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 93d92a7: correcting jsx import source
|
|
7
|
+
|
|
8
|
+
## 3.1.24
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 8ee8434: bump node engines to 24 and npm version to 11
|
|
12
|
+
|
|
13
|
+
## 3.1.23
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- e926831: mega mini bump for all to trigger publish all
|
|
17
|
+
|
|
18
|
+
## 3.1.22
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 8ce9205: Change engine requirements
|
|
22
|
+
- df79c03: More dep fixes
|
|
23
|
+
- b6e98b2: Run npm audit
|
|
24
|
+
|
|
3
25
|
## 3.1.21
|
|
4
26
|
### Patch Changes
|
|
5
27
|
|
|
@@ -4,6 +4,7 @@ const child_process = require("node:child_process");
|
|
|
4
4
|
const fs = require("node:fs");
|
|
5
5
|
const path = require("node:path");
|
|
6
6
|
const util = require("node:util");
|
|
7
|
+
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
7
8
|
const exec = util.promisify(child_process.exec);
|
|
8
9
|
const tsConfigRegex = /\/[A-Za-z.]*\.json$/;
|
|
9
10
|
const peerDepsRegex = /UNMET\sOPTIONAL\sDEPENDENCY\s+(@*[\w\-/.]+)@/;
|
|
@@ -82,7 +83,7 @@ async function getExternalsFromReferences(tsConfigPath, ignorePatterns = []) {
|
|
|
82
83
|
reject(err);
|
|
83
84
|
}
|
|
84
85
|
fs.readFile(
|
|
85
|
-
new URL(packageJsonPath,
|
|
86
|
+
new URL(packageJsonPath, typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("dependencies.cjs", document.baseURI).href),
|
|
86
87
|
(err2, buffer) => {
|
|
87
88
|
if (err2) {
|
|
88
89
|
reject(err2);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const node_module = require("node:module");
|
|
3
3
|
const path = require("node:path");
|
|
4
|
-
const nodeResolve = require("@rollup/plugin-node-resolve");
|
|
5
4
|
const pluginWasm = require("@rollup/plugin-wasm");
|
|
6
5
|
const css = require("rollup-plugin-import-css");
|
|
7
6
|
const dependencies = require("../dependencies.cjs");
|
|
@@ -60,7 +59,7 @@ async function vite_backend_config(packageName, packageVersion, bundleName, pack
|
|
|
60
59
|
},
|
|
61
60
|
esbuild: {
|
|
62
61
|
platform: "node",
|
|
63
|
-
target: "
|
|
62
|
+
target: "node24",
|
|
64
63
|
// drop,
|
|
65
64
|
legalComments: "none"
|
|
66
65
|
},
|
|
@@ -69,7 +68,7 @@ async function vite_backend_config(packageName, packageVersion, bundleName, pack
|
|
|
69
68
|
outDir,
|
|
70
69
|
minify: isProduction,
|
|
71
70
|
ssr: true,
|
|
72
|
-
target: "
|
|
71
|
+
target: "node24",
|
|
73
72
|
lib: {
|
|
74
73
|
entry: entriesAbsolute,
|
|
75
74
|
name: bundleName,
|
|
@@ -85,7 +84,7 @@ async function vite_backend_config(packageName, packageVersion, bundleName, pack
|
|
|
85
84
|
entryFileNames: `${bundleName}.[name].bundle.js`
|
|
86
85
|
},
|
|
87
86
|
// biome-ignore lint/suspicious/noExplicitAny: has to be any to represent object prototype
|
|
88
|
-
plugins: [css(), pluginWasm.wasm()
|
|
87
|
+
plugins: [css(), pluginWasm.wasm()]
|
|
89
88
|
}
|
|
90
89
|
},
|
|
91
90
|
plugins: [
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const node_module = require("node:module");
|
|
3
3
|
const path = require("node:path");
|
|
4
|
-
const replace = require("@rollup/plugin-replace");
|
|
5
4
|
const vite = require("vite");
|
|
6
5
|
const noBundlePlugin = require("vite-plugin-no-bundle");
|
|
7
6
|
const tsconfigPaths = require("vite-tsconfig-paths");
|
|
@@ -22,10 +21,20 @@ async function vite_commonjs_config(name, tsConfigPath, entry) {
|
|
|
22
21
|
ssr: { external: allExternal },
|
|
23
22
|
plugins: [
|
|
24
23
|
// @ts-ignore
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
{
|
|
25
|
+
name: "string-replace-require('url').pathToFileURL(__filename).href",
|
|
26
|
+
generateBundle(_, bundle) {
|
|
27
|
+
for (const fileName in bundle) {
|
|
28
|
+
const chunk = bundle[fileName];
|
|
29
|
+
if (chunk && chunk.type === "chunk" && "code" in chunk && chunk.code) {
|
|
30
|
+
chunk.code = chunk.code.replace(
|
|
31
|
+
/import\.meta\.url/g,
|
|
32
|
+
"require('url').pathToFileURL(__filename).href"
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
29
38
|
// @ts-ignore
|
|
30
39
|
noBundlePlugin({
|
|
31
40
|
root: "src",
|
|
@@ -42,7 +51,7 @@ async function vite_commonjs_config(name, tsConfigPath, entry) {
|
|
|
42
51
|
build: {
|
|
43
52
|
emptyOutDir: false,
|
|
44
53
|
ssr: true,
|
|
45
|
-
target: "
|
|
54
|
+
target: "node24",
|
|
46
55
|
outDir: "dist/cjs",
|
|
47
56
|
lib: {
|
|
48
57
|
name,
|
|
@@ -57,7 +66,8 @@ async function vite_commonjs_config(name, tsConfigPath, entry) {
|
|
|
57
66
|
},
|
|
58
67
|
esbuild: {
|
|
59
68
|
jsx: "automatic",
|
|
60
|
-
|
|
69
|
+
// Use standard React JSX for library packages
|
|
70
|
+
// Frontend apps using ViteFrontendConfig will override to Emotion
|
|
61
71
|
jsxDev: process.env.NODE_ENV === "development"
|
|
62
72
|
}
|
|
63
73
|
});
|
|
@@ -47,7 +47,7 @@ async function vite_esm_config(name, tsConfigPath, entry) {
|
|
|
47
47
|
build: {
|
|
48
48
|
emptyOutDir: false,
|
|
49
49
|
ssr: true,
|
|
50
|
-
target: "
|
|
50
|
+
target: "node24",
|
|
51
51
|
outDir: "dist",
|
|
52
52
|
lib: {
|
|
53
53
|
name,
|
|
@@ -62,7 +62,8 @@ async function vite_esm_config(name, tsConfigPath, entry) {
|
|
|
62
62
|
},
|
|
63
63
|
esbuild: {
|
|
64
64
|
jsx: "automatic",
|
|
65
|
-
|
|
65
|
+
// Use standard React JSX for library packages
|
|
66
|
+
// Frontend apps using ViteFrontendConfig will override to Emotion
|
|
66
67
|
jsxDev: process.env.NODE_ENV === "development"
|
|
67
68
|
}
|
|
68
69
|
});
|
|
@@ -110,7 +110,7 @@ const webpack_config = (mode) => {
|
|
|
110
110
|
// match JSON files to optimize
|
|
111
111
|
loader: "webpack-json-access-optimizer"
|
|
112
112
|
},
|
|
113
|
-
// Fix for
|
|
113
|
+
// Fix for require('url').pathToFileURL(__filename).href
|
|
114
114
|
{
|
|
115
115
|
test: /packageInfo.js$/,
|
|
116
116
|
loader: "string-replace-loader",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.backend.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.backend.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vite.backend.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.backend.config.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKvC,yBACC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,CA2GrB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { builtinModules } from "node:module";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
4
3
|
import { wasm } from "@rollup/plugin-wasm";
|
|
5
4
|
import css from "rollup-plugin-import-css";
|
|
6
5
|
import { getDependencies, filterDependencies } from "../dependencies.js";
|
|
@@ -59,7 +58,7 @@ async function vite_backend_config(packageName, packageVersion, bundleName, pack
|
|
|
59
58
|
},
|
|
60
59
|
esbuild: {
|
|
61
60
|
platform: "node",
|
|
62
|
-
target: "
|
|
61
|
+
target: "node24",
|
|
63
62
|
// drop,
|
|
64
63
|
legalComments: "none"
|
|
65
64
|
},
|
|
@@ -68,7 +67,7 @@ async function vite_backend_config(packageName, packageVersion, bundleName, pack
|
|
|
68
67
|
outDir,
|
|
69
68
|
minify: isProduction,
|
|
70
69
|
ssr: true,
|
|
71
|
-
target: "
|
|
70
|
+
target: "node24",
|
|
72
71
|
lib: {
|
|
73
72
|
entry: entriesAbsolute,
|
|
74
73
|
name: bundleName,
|
|
@@ -84,7 +83,7 @@ async function vite_backend_config(packageName, packageVersion, bundleName, pack
|
|
|
84
83
|
entryFileNames: `${bundleName}.[name].bundle.js`
|
|
85
84
|
},
|
|
86
85
|
// biome-ignore lint/suspicious/noExplicitAny: has to be any to represent object prototype
|
|
87
|
-
plugins: [css(), wasm()
|
|
86
|
+
plugins: [css(), wasm()]
|
|
88
87
|
}
|
|
89
88
|
},
|
|
90
89
|
plugins: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.commonjs.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.commonjs.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vite.commonjs.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.commonjs.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,UAAU,EAAgB,MAAM,MAAM,CAAC;AAOrD,yBACC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,OAAO,CAAC,UAAU,CAAC,CAoErB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { builtinModules } from "node:module";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import replace from "@rollup/plugin-replace";
|
|
4
3
|
import { defineConfig } from "vite";
|
|
5
4
|
import noBundlePlugin from "vite-plugin-no-bundle";
|
|
6
5
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
@@ -21,10 +20,20 @@ async function vite_commonjs_config(name, tsConfigPath, entry) {
|
|
|
21
20
|
ssr: { external: allExternal },
|
|
22
21
|
plugins: [
|
|
23
22
|
// @ts-ignore
|
|
24
|
-
|
|
25
|
-
"import.meta.url"
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
{
|
|
24
|
+
name: "string-replace-import.meta.url",
|
|
25
|
+
generateBundle(_, bundle) {
|
|
26
|
+
for (const fileName in bundle) {
|
|
27
|
+
const chunk = bundle[fileName];
|
|
28
|
+
if (chunk && chunk.type === "chunk" && "code" in chunk && chunk.code) {
|
|
29
|
+
chunk.code = chunk.code.replace(
|
|
30
|
+
/import\.meta\.url/g,
|
|
31
|
+
"require('url').pathToFileURL(__filename).href"
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
28
37
|
// @ts-ignore
|
|
29
38
|
noBundlePlugin({
|
|
30
39
|
root: "src",
|
|
@@ -41,7 +50,7 @@ async function vite_commonjs_config(name, tsConfigPath, entry) {
|
|
|
41
50
|
build: {
|
|
42
51
|
emptyOutDir: false,
|
|
43
52
|
ssr: true,
|
|
44
|
-
target: "
|
|
53
|
+
target: "node24",
|
|
45
54
|
outDir: "dist/cjs",
|
|
46
55
|
lib: {
|
|
47
56
|
name,
|
|
@@ -56,7 +65,8 @@ async function vite_commonjs_config(name, tsConfigPath, entry) {
|
|
|
56
65
|
},
|
|
57
66
|
esbuild: {
|
|
58
67
|
jsx: "automatic",
|
|
59
|
-
|
|
68
|
+
// Use standard React JSX for library packages
|
|
69
|
+
// Frontend apps using ViteFrontendConfig will override to Emotion
|
|
60
70
|
jsxDev: process.env.NODE_ENV === "development"
|
|
61
71
|
}
|
|
62
72
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.esm.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.esm.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vite.esm.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.esm.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,UAAU,EAAgB,MAAM,MAAM,CAAC;AAOrD,yBACC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,OAAO,CAAC,UAAU,CAAC,CA2DrB"}
|
|
@@ -46,7 +46,7 @@ async function vite_esm_config(name, tsConfigPath, entry) {
|
|
|
46
46
|
build: {
|
|
47
47
|
emptyOutDir: false,
|
|
48
48
|
ssr: true,
|
|
49
|
-
target: "
|
|
49
|
+
target: "node24",
|
|
50
50
|
outDir: "dist",
|
|
51
51
|
lib: {
|
|
52
52
|
name,
|
|
@@ -61,7 +61,8 @@ async function vite_esm_config(name, tsConfigPath, entry) {
|
|
|
61
61
|
},
|
|
62
62
|
esbuild: {
|
|
63
63
|
jsx: "automatic",
|
|
64
|
-
|
|
64
|
+
// Use standard React JSX for library packages
|
|
65
|
+
// Frontend apps using ViteFrontendConfig will override to Emotion
|
|
65
66
|
jsxDev: process.env.NODE_ENV === "development"
|
|
66
67
|
}
|
|
67
68
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/config",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.25",
|
|
4
4
|
"description": "Prosopo config library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -11,64 +11,61 @@
|
|
|
11
11
|
"typecheck": "tsc --project tsconfig.types.json"
|
|
12
12
|
},
|
|
13
13
|
"engines": {
|
|
14
|
-
"node": "
|
|
15
|
-
"npm": "
|
|
14
|
+
"node": "^24",
|
|
15
|
+
"npm": "^11"
|
|
16
16
|
},
|
|
17
17
|
"author": "Prosopo Limited",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@rollup/plugin-node-resolve": "
|
|
21
|
-
"@rollup/plugin-replace": "5.0.7",
|
|
20
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
22
21
|
"@rollup/plugin-typescript": "11.1.6",
|
|
23
22
|
"@rollup/plugin-wasm": "6.2.2",
|
|
24
|
-
"@vitejs/plugin-react": "
|
|
25
|
-
"esbuild": "0.25.
|
|
23
|
+
"@vitejs/plugin-react": "5.1.0",
|
|
24
|
+
"esbuild": "0.25.9",
|
|
26
25
|
"fast-glob": "3.3.2",
|
|
27
26
|
"html-webpack-plugin": "5.6.0",
|
|
28
27
|
"mini-css-extract-plugin": "2.9.1",
|
|
29
|
-
"node-polyfill-webpack-plugin": "4.
|
|
30
|
-
"rollup": "4.
|
|
31
|
-
"rollup-plugin-import-css": "
|
|
32
|
-
"rollup-plugin-visualizer": "
|
|
33
|
-
"terser-webpack-plugin": "5.3.
|
|
28
|
+
"node-polyfill-webpack-plugin": "4.1.0",
|
|
29
|
+
"rollup": "4.52.5",
|
|
30
|
+
"rollup-plugin-import-css": "4.1.1",
|
|
31
|
+
"rollup-plugin-visualizer": "6.0.5",
|
|
32
|
+
"terser-webpack-plugin": "5.3.14",
|
|
34
33
|
"vite-plugin-no-bundle": "4.0.0",
|
|
35
34
|
"vite-tsconfig-paths": "5.1.4"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
|
-
"@babel/plugin-proposal-import-attributes-to-assertions": "7.
|
|
39
|
-
"@babel/plugin-
|
|
40
|
-
"@babel/plugin-transform-
|
|
41
|
-
"@babel/
|
|
42
|
-
"@babel/
|
|
43
|
-
"@babel/plugin-
|
|
44
|
-
"@babel/
|
|
45
|
-
"@babel/
|
|
46
|
-
"@babel/preset-env": "7.25.4",
|
|
37
|
+
"@babel/plugin-proposal-import-attributes-to-assertions": "7.27.1",
|
|
38
|
+
"@babel/plugin-syntax-import-attributes": "7.27.1",
|
|
39
|
+
"@babel/plugin-transform-class-properties": "7.27.1",
|
|
40
|
+
"@babel/plugin-transform-object-rest-spread": "7.28.4",
|
|
41
|
+
"@babel/plugin-transform-react-jsx": "7.27.1",
|
|
42
|
+
"@babel/plugin-transform-runtime": "7.28.5",
|
|
43
|
+
"@babel/preset-env": "7.28.5",
|
|
44
|
+
"@babel/preset-typescript": "7.28.5",
|
|
47
45
|
"@rollup/plugin-alias": "5.1.0",
|
|
48
46
|
"@rollup/plugin-babel": "6.0.4",
|
|
49
|
-
"@rollup/plugin-dynamic-import-vars": "2.1.
|
|
50
|
-
"@rollup/plugin-inject": "5.0.5",
|
|
47
|
+
"@rollup/plugin-dynamic-import-vars": "2.1.5",
|
|
51
48
|
"@rollup/plugin-json": "6.1.0",
|
|
49
|
+
"@types/node": "22.10.2",
|
|
50
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
52
51
|
"babel-loader": "9.2.1",
|
|
52
|
+
"concurrently": "9.0.1",
|
|
53
53
|
"css-loader": "7.1.2",
|
|
54
|
+
"del-cli": "6.0.0",
|
|
55
|
+
"npm-run-all": "4.1.5",
|
|
54
56
|
"regenerator-runtime": "0.14.1",
|
|
55
57
|
"rollup-plugin-cleanup": "3.2.1",
|
|
56
58
|
"string-replace-loader": "3.1.0",
|
|
57
59
|
"tsconfig-paths": "4.2.0",
|
|
58
|
-
"vite-bundle-visualizer": "1.2.1",
|
|
59
|
-
"vite-tsconfig-paths": "5.1.4",
|
|
60
|
-
"webpack": "5.94.0",
|
|
61
|
-
"@types/node": "22.10.2",
|
|
62
|
-
"@vitest/coverage-v8": "3.0.9",
|
|
63
|
-
"concurrently": "9.0.1",
|
|
64
|
-
"del-cli": "6.0.0",
|
|
65
|
-
"npm-run-all": "4.1.5",
|
|
66
60
|
"tslib": "2.7.0",
|
|
67
|
-
"tsx": "4.20.
|
|
61
|
+
"tsx": "4.20.6",
|
|
68
62
|
"typescript": "5.6.2",
|
|
69
|
-
"vite": "6.
|
|
70
|
-
"vite-
|
|
71
|
-
"
|
|
63
|
+
"vite": "6.4.1",
|
|
64
|
+
"vite-bundle-visualizer": "1.2.1",
|
|
65
|
+
"vite-plugin-node-polyfills": "0.24.0",
|
|
66
|
+
"vite-tsconfig-paths": "5.1.4",
|
|
67
|
+
"vitest": "3.2.4",
|
|
68
|
+
"webpack": "5.102.1",
|
|
72
69
|
"webpack-cli": "5.1.4",
|
|
73
70
|
"webpack-dev-server": "5.2.2"
|
|
74
71
|
},
|