@bagelink/vue 0.0.108 → 0.0.110

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.108",
4
+ "version": "0.0.110",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -27,19 +27,19 @@
27
27
  "./src/utils": "./src/utils/index.ts",
28
28
  "./src/types": "./src/types/index.ts",
29
29
  ".": {
30
- "types": "./dist/index.d.ts",
30
+ "types": "./dist/types/index.d.ts",
31
31
  "require": "./dist/index.cjs",
32
32
  "import": "./dist/index.mjs"
33
33
  }
34
34
  },
35
35
  "main": "./dist/index.mjs",
36
36
  "module": "./dist/index.mjs",
37
- "types": "./dist/index.d.ts",
37
+ "types": "./dist/types/index.d.ts",
38
38
  "typesVersions": {
39
39
  "*": {
40
40
  "*": [
41
- "./dist/*",
42
- "./dist/index.d.ts"
41
+ "./dist/types/*",
42
+ "./dist/types/index.d.ts"
43
43
  ]
44
44
  }
45
45
  },
@@ -53,7 +53,7 @@
53
53
  "devDependencies": {
54
54
  "vue": "^3.3.8",
55
55
  "@vue-macros/reactivity-transform": "^0.4.0",
56
- "@bagelink/sdk": "0.0.108"
56
+ "@bagelink/sdk": "0.0.110"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@bagelink/sdk": "*",
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es2020",
3
+ "target": "ESNext",
4
4
  "baseUrl": ".",
5
5
  "rootDir": ".",
6
6
  "module": "ESNext",
@@ -22,8 +22,13 @@
22
22
  "DOM"
23
23
  ],
24
24
  "types": [
25
+ "vite/client",
25
26
  "@vue-macros/reactivity-transform/macros-global"
26
27
  ],
28
+ "useDefineForClassFields": true,
29
+ "sourceMap": true,
30
+ "emitDeclarationOnly": true,
31
+ "declarationDir": "./dist/types",
27
32
  "paths": {
28
33
  "@bagelink/vue": [
29
34
  "./src/index.ts"
package/vite.config.ts CHANGED
@@ -19,9 +19,24 @@ export default defineConfig(() => ({
19
19
  build: {
20
20
  minify: false,
21
21
  lib: {
22
+
22
23
  entry: resolve(indexDir, 'index.ts'),
23
24
  formats: ['es', 'cjs'],
24
25
  fileName: (module, entry) => `${entry}.${module === 'es' ? 'mjs' : module}`,
25
26
  },
27
+ rollupOptions: {
28
+ // external modules won't be bundled into your library
29
+ external: ['vue', 'vue-router'], // not every external has a global
30
+ output: {
31
+ // disable warning on src/index.ts using both default and named export
32
+ exports: 'named',
33
+ // Provide global variables to use in the UMD build
34
+ // for externalized deps (not useful if 'umd' is not in lib.formats)
35
+ globals: {
36
+ vue: 'Vue',
37
+ },
38
+ },
39
+ },
40
+ emptyOutDir: false, // to retain the types folder generated by tsc
26
41
  },
27
42
  }));