vue-chrts 0.0.130 → 0.0.131
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/package.json +8 -13
- package/vite.config.ts +8 -4
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-chrts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.131",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"types": "./index.d.ts",
|
|
10
|
-
"import": "./index.js",
|
|
11
|
-
"require": "./index.cjs"
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"main": "./index.cjs",
|
|
15
|
-
"module": "./index.js",
|
|
16
|
-
"types": "./index.d.ts",
|
|
17
|
-
"typings": "./index.d.ts",
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"typings": "./dist/index.d.ts",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "vite",
|
|
20
20
|
"build": "vite build",
|
|
@@ -31,11 +31,6 @@
|
|
|
31
31
|
"vue": "^3.5.13",
|
|
32
32
|
"vue-router": "^4.5.0"
|
|
33
33
|
},
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"@unovis/ts": "1.5.1",
|
|
36
|
-
"@unovis/vue": "1.5.1",
|
|
37
|
-
"vue": "^3"
|
|
38
|
-
},
|
|
39
34
|
"devDependencies": {
|
|
40
35
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
41
36
|
"rollup-plugin-commonjs": "^10.1.0",
|
package/vite.config.ts
CHANGED
|
@@ -9,14 +9,18 @@ const outputDefault = (format: ModuleFormat, extension: string): OutputOptions =
|
|
|
9
9
|
// Provide global variables to use in the UMD build
|
|
10
10
|
// for externalized deps
|
|
11
11
|
globals: {
|
|
12
|
-
vue: 'Vue'
|
|
12
|
+
vue: 'Vue',
|
|
13
|
+
'@unovis/ts': '@unovis/ts',
|
|
14
|
+
'@unovis/vue': '@unovis/vue',
|
|
13
15
|
},
|
|
16
|
+
preserveModules: true,
|
|
17
|
+
preserveModulesRoot: './src',
|
|
14
18
|
format,
|
|
15
19
|
entryFileNames: ({ name }) => {
|
|
16
20
|
return `${name.replace('.vue', '')}.${extension}`
|
|
17
|
-
}
|
|
21
|
+
},
|
|
22
|
+
exports: 'named',
|
|
18
23
|
})
|
|
19
|
-
|
|
20
24
|
export default defineConfig(({ command, mode }): UserConfig => {
|
|
21
25
|
if (command === 'build' && mode !== 'gallery') {
|
|
22
26
|
return {
|
|
@@ -37,7 +41,7 @@ export default defineConfig(({ command, mode }): UserConfig => {
|
|
|
37
41
|
rollupOptions: {
|
|
38
42
|
// make sure to externalize deps that shouldn't be bundled
|
|
39
43
|
// into your library (Vue)
|
|
40
|
-
external: ['vue'],
|
|
44
|
+
external: ['vue', '@unovis/ts', '@unovis/vue'],
|
|
41
45
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
42
46
|
// @ts-ignore overloaded issue
|
|
43
47
|
output: [outputDefault('cjs', 'cjs'), outputDefault('es', 'js')],
|