kirbyup 3.1.5 → 3.1.6
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/node/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.CoQcp64G.mjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
package/dist/node/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import '@vitejs/plugin-vue2';
|
|
|
10
10
|
import '@vitejs/plugin-vue2-jsx';
|
|
11
11
|
import 'vite-plugin-full-reload';
|
|
12
12
|
import 'rollup-plugin-external-globals';
|
|
13
|
-
export { b as build, s as serve } from '../shared/kirbyup.
|
|
13
|
+
export { b as build, s as serve } from '../shared/kirbyup.CoQcp64G.mjs';
|
|
14
14
|
import 'node:zlib';
|
|
15
15
|
import 'node:util';
|
|
16
16
|
import 'node:buffer';
|
|
@@ -21,7 +21,7 @@ import MagicString from 'magic-string';
|
|
|
21
21
|
import 'node:module';
|
|
22
22
|
|
|
23
23
|
const name = "kirbyup";
|
|
24
|
-
const version = "3.1.
|
|
24
|
+
const version = "3.1.6";
|
|
25
25
|
|
|
26
26
|
class PrettyError extends Error {
|
|
27
27
|
constructor(message) {
|
|
@@ -359,7 +359,7 @@ function getViteConfig(command, options) {
|
|
|
359
359
|
const aliasDir = resolve(options.cwd, dirname(options.entry));
|
|
360
360
|
const { alias = {}, vite, extendViteConfig } = resolvedKirbyupConfig;
|
|
361
361
|
const userConfig = vite ?? extendViteConfig ?? {};
|
|
362
|
-
const
|
|
362
|
+
const sharedConfig = {
|
|
363
363
|
resolve: {
|
|
364
364
|
alias: {
|
|
365
365
|
"~/": `${aliasDir}/`,
|
|
@@ -381,7 +381,7 @@ function getViteConfig(command, options) {
|
|
|
381
381
|
};
|
|
382
382
|
if (command === "serve") {
|
|
383
383
|
const { port, watch } = options;
|
|
384
|
-
const serveConfig = mergeConfig(
|
|
384
|
+
const serveConfig = mergeConfig(sharedConfig, {
|
|
385
385
|
plugins: [
|
|
386
386
|
kirbyupHmrPlugin(options),
|
|
387
387
|
watch && fullReloadPlugin(watch)
|
|
@@ -394,7 +394,7 @@ function getViteConfig(command, options) {
|
|
|
394
394
|
return mergeConfig(serveConfig, userConfig);
|
|
395
395
|
}
|
|
396
396
|
const mode = options.watch ? "development" : "production";
|
|
397
|
-
const buildConfig = mergeConfig(
|
|
397
|
+
const buildConfig = mergeConfig(sharedConfig, {
|
|
398
398
|
plugins: [kirbyupBuildCleanupPlugin(options)],
|
|
399
399
|
mode,
|
|
400
400
|
build: {
|
|
@@ -448,7 +448,7 @@ async function generate(options) {
|
|
|
448
448
|
return result;
|
|
449
449
|
}
|
|
450
450
|
async function build(options) {
|
|
451
|
-
|
|
451
|
+
assertEntryExists(options);
|
|
452
452
|
const { cwd } = options;
|
|
453
453
|
const { config, configFile } = await loadConfig(cwd);
|
|
454
454
|
resolvedKirbyupConfig = config ?? {};
|
|
@@ -503,7 +503,7 @@ async function build(options) {
|
|
|
503
503
|
startWatcher();
|
|
504
504
|
}
|
|
505
505
|
async function serve(options) {
|
|
506
|
-
|
|
506
|
+
assertEntryExists(options);
|
|
507
507
|
const { cwd } = options;
|
|
508
508
|
const { config } = await loadConfig(cwd);
|
|
509
509
|
resolvedKirbyupConfig = config ?? {};
|
|
@@ -517,7 +517,7 @@ async function serve(options) {
|
|
|
517
517
|
consola.success(`Server is listening on :${server.config.server.port}`);
|
|
518
518
|
return server;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function assertEntryExists(options) {
|
|
521
521
|
if (!existsSync(resolve(options.cwd, options.entry)))
|
|
522
522
|
throw new PrettyError(`Cannot find "${options.entry}"`);
|
|
523
523
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kirbyup",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "3.1.6",
|
|
5
|
+
"packageManager": "pnpm@9.1.1",
|
|
6
6
|
"description": "Zero-config bundler for Kirby Panel plugins",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Johann Schopplich",
|
|
9
|
-
"email": "
|
|
9
|
+
"email": "hello@johannschopplich.com",
|
|
10
10
|
"url": "https://johannschopplich.com"
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
@@ -79,33 +79,33 @@
|
|
|
79
79
|
"cac": "^6.7.14",
|
|
80
80
|
"chokidar": "^3.6.0",
|
|
81
81
|
"consola": "^3.2.3",
|
|
82
|
-
"magic-string": "^0.30.
|
|
82
|
+
"magic-string": "^0.30.10",
|
|
83
83
|
"pathe": "^1.1.2",
|
|
84
84
|
"perfect-debounce": "^1.0.0",
|
|
85
|
-
"postcss": "^8.4.
|
|
85
|
+
"postcss": "^8.4.38",
|
|
86
86
|
"postcss-dir-pseudo-class": "^8.0.1",
|
|
87
|
-
"postcss-load-config": "^5.0
|
|
87
|
+
"postcss-load-config": "^5.1.0",
|
|
88
88
|
"postcss-logical": "^7.0.1",
|
|
89
|
-
"rollup-plugin-external-globals": "^0.
|
|
90
|
-
"sass": "^1.
|
|
91
|
-
"vite": "
|
|
89
|
+
"rollup-plugin-external-globals": "^0.10.0",
|
|
90
|
+
"sass": "^1.77.1",
|
|
91
|
+
"vite": "~5.1.7",
|
|
92
92
|
"vite-plugin-full-reload": "^1.1.0",
|
|
93
93
|
"vue": "^2.7.16"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@antfu/eslint-config": "^2.
|
|
96
|
+
"@antfu/eslint-config": "^2.18.0",
|
|
97
97
|
"@types/fs-extra": "^11.0.4",
|
|
98
|
-
"@types/node": "^20.
|
|
98
|
+
"@types/node": "^20.12.12",
|
|
99
99
|
"@types/prompts": "^2.4.9",
|
|
100
|
-
"bumpp": "^9.4.
|
|
101
|
-
"eslint": "^
|
|
100
|
+
"bumpp": "^9.4.1",
|
|
101
|
+
"eslint": "^9.2.0",
|
|
102
102
|
"fast-glob": "^3.3.2",
|
|
103
103
|
"fs-extra": "^11.2.0",
|
|
104
104
|
"nypm": "^0.3.8",
|
|
105
|
-
"simple-git-hooks": "^2.
|
|
106
|
-
"typescript": "
|
|
105
|
+
"simple-git-hooks": "^2.11.1",
|
|
106
|
+
"typescript": "^5.4.5",
|
|
107
107
|
"unbuild": "^3.0.0-rc.1",
|
|
108
|
-
"vitest": "^1.
|
|
108
|
+
"vitest": "^1.6.0"
|
|
109
109
|
},
|
|
110
110
|
"simple-git-hooks": {
|
|
111
111
|
"commit-msg": "node scripts/verifyCommit.mjs $1"
|