kirbyup 2.1.0 → 2.1.2
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 +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugin.d.ts +1 -4
- package/dist/plugin.mjs +2 -1
- package/dist/shared/{kirbyup.5093ad02.mjs → kirbyup.f44725b4.mjs} +2 -2
- package/dist/{types-02ae296f.d.ts → types-77db3ac4.d.ts} +0 -0
- package/package.json +24 -24
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.
|
|
2
|
+
import { n as name, b as build, s as serve, v as version, h as handleError } from './shared/kirbyup.f44725b4.mjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
package/dist/config.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { B as BuildOptions, S as ServeOptions } from './types-
|
|
2
|
+
import { B as BuildOptions, S as ServeOptions } from './types-77db3ac4.js';
|
|
3
3
|
|
|
4
4
|
declare function build(options: BuildOptions): Promise<void>;
|
|
5
5
|
declare function serve(options: ServeOptions): Promise<vite.ViteDevServer>;
|
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import 'vite-plugin-full-reload';
|
|
|
12
12
|
import 'postcss-load-config';
|
|
13
13
|
import 'postcss-logical';
|
|
14
14
|
import 'postcss-dir-pseudo-class';
|
|
15
|
-
export { b as build, s as serve } from './shared/kirbyup.
|
|
15
|
+
export { b as build, s as serve } from './shared/kirbyup.f44725b4.mjs';
|
|
16
16
|
import 'zlib';
|
|
17
17
|
import 'util';
|
|
18
18
|
import 'fs';
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
interface Module {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
1
|
declare const kirbyup: Readonly<{
|
|
5
2
|
/**
|
|
6
3
|
* Auto-import Kirby Panel components, will be transformed by
|
|
@@ -9,7 +6,7 @@ declare const kirbyup: Readonly<{
|
|
|
9
6
|
* @example
|
|
10
7
|
* kirbyup.import('./components/blocks/*.vue')
|
|
11
8
|
*/
|
|
12
|
-
import(
|
|
9
|
+
import(glob: string): Record<string, any>;
|
|
13
10
|
}>;
|
|
14
11
|
|
|
15
12
|
export { kirbyup };
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const getComponentName = (path) => path.substring(path.lastIndexOf("/") + 1, path.lastIndexOf(".")).toLowerCase();
|
|
2
2
|
const kirbyup = Object.freeze({
|
|
3
|
-
import(
|
|
3
|
+
import(glob) {
|
|
4
|
+
const modules = glob;
|
|
4
5
|
return Object.entries(modules).reduce(
|
|
5
6
|
(accumulator, [path, component]) => {
|
|
6
7
|
accumulator[getComponentName(path)] = component.default;
|
|
@@ -20,7 +20,7 @@ import MagicString from 'magic-string';
|
|
|
20
20
|
import { detect } from 'detect-package-manager';
|
|
21
21
|
|
|
22
22
|
const name = "kirbyup";
|
|
23
|
-
const version = "2.1.
|
|
23
|
+
const version = "2.1.2";
|
|
24
24
|
|
|
25
25
|
class PrettyError extends Error {
|
|
26
26
|
constructor(message) {
|
|
@@ -112,7 +112,7 @@ for (const methodName of ['rerender', 'reload']) {
|
|
|
112
112
|
|
|
113
113
|
if (key) {
|
|
114
114
|
const pluginComponents = window.panel.plugins.components
|
|
115
|
-
const usedComponentDefs = window.panel.$vue.$options.components
|
|
115
|
+
const usedComponentDefs = window.panel.$vue._vnode.componentInstance.$options.components
|
|
116
116
|
|
|
117
117
|
for (const componentName in pluginComponents) {
|
|
118
118
|
if (updatedDef[key] === pluginComponents[componentName][key]) {
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kirbyup",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"packageManager": "pnpm@7.
|
|
3
|
+
"version": "2.1.2",
|
|
4
|
+
"packageManager": "pnpm@7.18.1",
|
|
5
5
|
"description": "Zero-config bundler for Kirby Panel plugins",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Johann Schopplich",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dist"
|
|
56
56
|
],
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": "
|
|
58
|
+
"node": "^16 || ^18"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "unbuild",
|
|
@@ -64,44 +64,44 @@
|
|
|
64
64
|
"lint:fix": "eslint . --fix",
|
|
65
65
|
"release": "bumpp --commit --push --tag",
|
|
66
66
|
"test": "vitest",
|
|
67
|
-
"
|
|
67
|
+
"test:types": "tsc --noEmit",
|
|
68
68
|
"prepare": "simple-git-hooks"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@vitejs/plugin-vue2": "2.
|
|
72
|
-
"@vitejs/plugin-vue2-jsx": "1.0
|
|
73
|
-
"@vue/compiler-sfc": "^2.7.
|
|
71
|
+
"@vitejs/plugin-vue2": "2.2.0",
|
|
72
|
+
"@vitejs/plugin-vue2-jsx": "1.1.0",
|
|
73
|
+
"@vue/compiler-sfc": "^2.7.14",
|
|
74
74
|
"cac": "^6.7.14",
|
|
75
75
|
"chokidar": "^3.5.3",
|
|
76
76
|
"consola": "^2.15.3",
|
|
77
77
|
"detect-package-manager": "^2.0.1",
|
|
78
|
-
"magic-string": "^0.
|
|
79
|
-
"pathe": "^0.
|
|
78
|
+
"magic-string": "^0.27.0",
|
|
79
|
+
"pathe": "^1.0.0",
|
|
80
80
|
"perfect-debounce": "^0.1.3",
|
|
81
81
|
"picocolors": "^1.0.0",
|
|
82
|
-
"postcss": "^8.4.
|
|
82
|
+
"postcss": "^8.4.20",
|
|
83
83
|
"postcss-dir-pseudo-class": "^6.0.5",
|
|
84
84
|
"postcss-load-config": "^4.0.1",
|
|
85
85
|
"postcss-logical": "^5.0.4",
|
|
86
|
-
"sass": "^1.
|
|
87
|
-
"unconfig": "^0.3.
|
|
88
|
-
"vite": "^3.
|
|
89
|
-
"vite-plugin-full-reload": "^1.0.
|
|
90
|
-
"vue": "^2.7.
|
|
86
|
+
"sass": "^1.56.2",
|
|
87
|
+
"unconfig": "^0.3.7",
|
|
88
|
+
"vite": "^3.2.4",
|
|
89
|
+
"vite-plugin-full-reload": "^1.0.5",
|
|
90
|
+
"vue": "^2.7.14"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@antfu/eslint-config": "^0.
|
|
93
|
+
"@antfu/eslint-config": "^0.33.1",
|
|
94
94
|
"@types/fs-extra": "^9.0.13",
|
|
95
|
-
"@types/node": "^18.
|
|
96
|
-
"@types/prompts": "^2.4.
|
|
95
|
+
"@types/node": "^18.11.13",
|
|
96
|
+
"@types/prompts": "^2.4.2",
|
|
97
97
|
"bumpp": "^8.2.1",
|
|
98
|
-
"eslint": "^8.
|
|
98
|
+
"eslint": "^8.29.0",
|
|
99
99
|
"fast-glob": "^3.2.12",
|
|
100
|
-
"fs-extra": "^
|
|
101
|
-
"simple-git-hooks": "^2.8.
|
|
102
|
-
"typescript": "^4.
|
|
103
|
-
"unbuild": "^0.
|
|
104
|
-
"vitest": "^0.
|
|
100
|
+
"fs-extra": "^11.1.0",
|
|
101
|
+
"simple-git-hooks": "^2.8.1",
|
|
102
|
+
"typescript": "^4.9.4",
|
|
103
|
+
"unbuild": "^1.0.2",
|
|
104
|
+
"vitest": "^0.25.6"
|
|
105
105
|
},
|
|
106
106
|
"simple-git-hooks": {
|
|
107
107
|
"commit-msg": "node scripts/verifyCommit.mjs $1"
|