kirbyup 3.1.8 → 3.1.9

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.CjcDI6Uw.mjs';
2
+ import { n as name, b as build, s as serve, v as version, h as handleError } from '../shared/kirbyup.XT8XBlyG.mjs';
3
3
  import 'node:fs';
4
4
  import 'node:fs/promises';
5
5
  import 'pathe';
@@ -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.CjcDI6Uw.mjs';
13
+ export { b as build, s as serve } from '../shared/kirbyup.XT8XBlyG.mjs';
14
14
  import 'node:zlib';
15
15
  import 'node:util';
16
16
  import 'node:buffer';
@@ -4,7 +4,7 @@ import { normalize, relative, resolve, join, dirname, basename } from 'pathe';
4
4
  import { consola } from 'consola';
5
5
  import { colors } from 'consola/utils';
6
6
  import { debounce } from 'perfect-debounce';
7
- import { createServer, mergeConfig, build as build$1 } from 'vite';
7
+ import { createLogger, createServer, mergeConfig, build as build$1 } from 'vite';
8
8
  import * as vueCompilerSfc from 'vue/compiler-sfc';
9
9
  import vuePlugin from '@vitejs/plugin-vue2';
10
10
  import vueJsxPlugin from '@vitejs/plugin-vue2-jsx';
@@ -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.8";
24
+ const version = "3.1.9";
25
25
 
26
26
  class PrettyError extends Error {
27
27
  constructor(message) {
@@ -355,6 +355,14 @@ function kirbyupBuildCleanupPlugin(options) {
355
355
 
356
356
  let resolvedKirbyupConfig;
357
357
  let resolvedPostCssConfig;
358
+ const logger = createLogger();
359
+ const loggerWarn = logger.warn;
360
+ logger.warn = (msg, options) => {
361
+ if (msg.startsWith(`
362
+ (!) build.outDir must not be`))
363
+ return;
364
+ loggerWarn(msg, options);
365
+ };
358
366
  function getViteConfig(command, options) {
359
367
  const aliasDir = resolve(options.cwd, dirname(options.entry));
360
368
  const { alias = {}, vite, extendViteConfig } = resolvedKirbyupConfig;
@@ -377,6 +385,7 @@ function getViteConfig(command, options) {
377
385
  ],
378
386
  css: { postcss: resolvedPostCssConfig },
379
387
  envPrefix: ["VITE_", "KIRBYUP_"],
388
+ customLogger: logger,
380
389
  logLevel: "warn"
381
390
  };
382
391
  if (command === "serve") {
@@ -387,9 +396,17 @@ function getViteConfig(command, options) {
387
396
  watch && fullReloadPlugin(watch)
388
397
  ].filter(Boolean),
389
398
  // Input needs to be specified so dependency pre-bundling works
390
- build: { rollupOptions: { input: resolve(options.cwd, options.entry) } },
399
+ build: {
400
+ rollupOptions: {
401
+ input: resolve(options.cwd, options.entry)
402
+ }
403
+ },
391
404
  // Specify origin so asset URLs include Vite server host
392
- server: { port, strictPort: true, origin: `http://localhost:${port}` }
405
+ server: {
406
+ port,
407
+ strictPort: true,
408
+ origin: `http://localhost:${port}`
409
+ }
393
410
  });
394
411
  return mergeConfig(serveConfig, userConfig);
395
412
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kirbyup",
3
3
  "type": "module",
4
- "version": "3.1.8",
4
+ "version": "3.1.9",
5
5
  "packageManager": "pnpm@9.5.0",
6
6
  "description": "Zero-config bundler for Kirby Panel plugins",
7
7
  "author": {
@@ -43,10 +43,10 @@
43
43
  "typesVersions": {
44
44
  "*": {
45
45
  "config": [
46
- "./dist/client/config.d.mts"
46
+ "./dist/client/config.d.ts"
47
47
  ],
48
48
  "plugin": [
49
- "./dist/client/plugin.d.mts"
49
+ "./dist/client/plugin.d.ts"
50
50
  ]
51
51
  }
52
52
  },
@@ -104,10 +104,5 @@
104
104
  "typescript": "^5.5.3",
105
105
  "unbuild": "^3.0.0-rc.6",
106
106
  "vitest": "^2.0.1"
107
- },
108
- "pnpm": {
109
- "patchedDependencies": {
110
- "vite@5.3.3": "patches/vite@5.3.3.patch"
111
- }
112
107
  }
113
108
  }