kirbyup 2.2.0 → 2.2.1-beta.0

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/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { cac } from 'cac';
2
- import { n as name, b as build, s as serve, v as version, h as handleError } from './shared/kirbyup.b9aab2d0.mjs';
2
+ import { n as name, b as build, s as serve, v as version, h as handleError } from './shared/kirbyup.7abc4f5a.mjs';
3
3
  import 'node:fs';
4
4
  import 'node:fs/promises';
5
5
  import 'pathe';
@@ -11,6 +11,7 @@ import 'vue/compiler-sfc';
11
11
  import '@vitejs/plugin-vue2';
12
12
  import '@vitejs/plugin-vue2-jsx';
13
13
  import 'vite-plugin-full-reload';
14
+ import 'rollup-plugin-external-globals';
14
15
  import 'postcss-load-config';
15
16
  import 'postcss-logical';
16
17
  import 'postcss-dir-pseudo-class';
package/dist/index.mjs CHANGED
@@ -9,10 +9,11 @@ import 'vue/compiler-sfc';
9
9
  import '@vitejs/plugin-vue2';
10
10
  import '@vitejs/plugin-vue2-jsx';
11
11
  import 'vite-plugin-full-reload';
12
+ import 'rollup-plugin-external-globals';
12
13
  import 'postcss-load-config';
13
14
  import 'postcss-logical';
14
15
  import 'postcss-dir-pseudo-class';
15
- export { b as build, s as serve } from './shared/kirbyup.b9aab2d0.mjs';
16
+ export { b as build, s as serve } from './shared/kirbyup.7abc4f5a.mjs';
16
17
  import 'node:zlib';
17
18
  import 'node:util';
18
19
  import 'node:buffer';
@@ -9,6 +9,7 @@ import * as vueCompilerSfc from 'vue/compiler-sfc';
9
9
  import vuePlugin from '@vitejs/plugin-vue2';
10
10
  import vueJsxPlugin from '@vitejs/plugin-vue2-jsx';
11
11
  import fullReloadPlugin from 'vite-plugin-full-reload';
12
+ import externalGlobals from 'rollup-plugin-external-globals';
12
13
  import postcssrc from 'postcss-load-config';
13
14
  import postcssLogical from 'postcss-logical';
14
15
  import postcssDirPseudoClass from 'postcss-dir-pseudo-class';
@@ -20,7 +21,7 @@ import MagicString from 'magic-string';
20
21
  import { detect } from 'detect-package-manager';
21
22
 
22
23
  const name = "kirbyup";
23
- const version = "2.2.0";
24
+ const version = "2.2.1-beta.0";
24
25
 
25
26
  class PrettyError extends Error {
26
27
  constructor(message) {
@@ -282,7 +283,8 @@ function getViteConfig(command, options) {
282
283
  // looks in the current directory and breaks `npx kirbyup`
283
284
  vuePlugin({ compiler: vueCompilerSfc }),
284
285
  vueJsxPlugin(),
285
- kirbyupAutoImportPlugin()
286
+ kirbyupAutoImportPlugin(),
287
+ { ...externalGlobals({ vue: "Vue" }), enforce: "post" }
286
288
  ],
287
289
  css: { postcss: resolvedPostCssConfig },
288
290
  envPrefix: ["VITE_", "KIRBYUP_"],
@@ -316,13 +318,7 @@ function getViteConfig(command, options) {
316
318
  minify: mode === "production",
317
319
  outDir: options.outDir,
318
320
  emptyOutDir: false,
319
- rollupOptions: {
320
- external: ["vue"],
321
- output: {
322
- assetFileNames: "index.[ext]",
323
- globals: { vue: "Vue" }
324
- }
325
- }
321
+ rollupOptions: { output: { assetFileNames: "index.[ext]" } }
326
322
  }
327
323
  });
328
324
  return mergeConfig(buildConfig, extendViteConfig);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kirbyup",
3
- "version": "2.2.0",
4
- "packageManager": "pnpm@8.1.1",
3
+ "version": "2.2.1-beta.0",
4
+ "packageManager": "pnpm@8.6.1",
5
5
  "description": "Zero-config bundler for Kirby Panel plugins",
6
6
  "author": {
7
7
  "name": "Johann Schopplich",
@@ -76,31 +76,32 @@
76
76
  "consola": "^2.15.3",
77
77
  "detect-package-manager": "^2.0.1",
78
78
  "magic-string": "^0.30.0",
79
- "pathe": "^1.1.0",
79
+ "pathe": "^1.1.1",
80
80
  "perfect-debounce": "^0.1.3",
81
81
  "picocolors": "^1.0.0",
82
- "postcss": "^8.4.21",
82
+ "postcss": "^8.4.24",
83
83
  "postcss-dir-pseudo-class": "^7.0.2",
84
84
  "postcss-load-config": "^4.0.1",
85
- "postcss-logical": "^6.1.0",
86
- "sass": "^1.61.0",
87
- "unconfig": "^0.3.7",
88
- "vite": "^4.2.1",
85
+ "postcss-logical": "^6.2.0",
86
+ "rollup-plugin-external-globals": "^0.8.0",
87
+ "sass": "^1.63.2",
88
+ "unconfig": "^0.3.9",
89
+ "vite": "^4.3.9",
89
90
  "vite-plugin-full-reload": "^1.0.5",
90
91
  "vue": "^2.7.14"
91
92
  },
92
93
  "devDependencies": {
93
- "@antfu/eslint-config": "^0.38.4",
94
+ "@antfu/eslint-config": "^0.38.6",
94
95
  "@types/fs-extra": "^11.0.1",
95
- "@types/node": "^18.15.11",
96
+ "@types/node": "^18.16.16",
96
97
  "@types/prompts": "^2.4.4",
97
- "bumpp": "^9.1.0",
98
- "eslint": "^8.37.0",
98
+ "bumpp": "^9.1.1",
99
+ "eslint": "^8.42.0",
99
100
  "fast-glob": "^3.2.12",
100
101
  "fs-extra": "^11.1.1",
101
102
  "simple-git-hooks": "^2.8.1",
102
- "typescript": "^5.0.3",
103
- "unbuild": "^1.2.0",
103
+ "typescript": "~5.0.4",
104
+ "unbuild": "^1.2.1",
104
105
  "vitest": "^0.29.8"
105
106
  },
106
107
  "simple-git-hooks": {