@jsonresume/jsonresume-theme-professional 1.0.22 → 1.0.23
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 +6 -0
- package/dist/index.js +2945 -0
- package/dist/index.mjs +1266 -180
- package/package.json +9 -6
- package/vite.config.js +6 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@jsonresume/jsonresume-theme-professional",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"main": "./
|
|
4
|
+
"version": "1.0.23",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"devDependencies": {
|
|
8
9
|
"react": "^19.2.0",
|
|
@@ -22,16 +23,18 @@
|
|
|
22
23
|
},
|
|
23
24
|
"exports": {
|
|
24
25
|
".": {
|
|
25
|
-
"import": "./
|
|
26
|
-
"
|
|
26
|
+
"import": "./dist/index.mjs",
|
|
27
|
+
"require": "./dist/index.js",
|
|
28
|
+
"default": "./dist/index.js"
|
|
27
29
|
},
|
|
28
30
|
"./dist": {
|
|
29
|
-
"import": "./dist/index.
|
|
31
|
+
"import": "./dist/index.mjs",
|
|
32
|
+
"require": "./dist/index.js",
|
|
30
33
|
"default": "./dist/index.js"
|
|
31
34
|
}
|
|
32
35
|
},
|
|
33
36
|
"scripts": {
|
|
34
|
-
"lint": "eslint src
|
|
37
|
+
"lint": "eslint src --ext .js,.jsx",
|
|
35
38
|
"build": "vite build"
|
|
36
39
|
}
|
|
37
40
|
}
|
package/vite.config.js
CHANGED
|
@@ -11,7 +11,9 @@ export default defineConfig({
|
|
|
11
11
|
minify: false,
|
|
12
12
|
lib: {
|
|
13
13
|
entry: './src/index.jsx',
|
|
14
|
-
formats: ['es'],
|
|
14
|
+
formats: ['es', 'cjs'],
|
|
15
|
+
// Without package type=module, Vite emits index.mjs for ESM and
|
|
16
|
+
// index.js for CommonJS. That preserves legacy require() support.
|
|
15
17
|
fileName: 'index',
|
|
16
18
|
},
|
|
17
19
|
rollupOptions: {
|
|
@@ -28,6 +30,9 @@ export default defineConfig({
|
|
|
28
30
|
'@emotion/is-prop-valid',
|
|
29
31
|
'stylis',
|
|
30
32
|
'shallowequal',
|
|
33
|
+
// marked is ESM-only. Bundle it so the legacy CommonJS entry remains
|
|
34
|
+
// usable by resume-cli and require() consumers.
|
|
35
|
+
'marked',
|
|
31
36
|
],
|
|
32
37
|
},
|
|
33
38
|
});
|