kirbyup 3.1.10 → 3.1.12

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.DOfPK-TS.mjs';
2
+ import { n as name, b as build, s as serve, v as version, h as handleError } from '../shared/kirbyup.TnJrqKie.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.DOfPK-TS.mjs';
13
+ export { b as build, s as serve } from '../shared/kirbyup.TnJrqKie.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.10";
24
+ const version = "3.1.12";
25
25
 
26
26
  class PrettyError extends Error {
27
27
  constructor(message) {
@@ -355,11 +355,11 @@ function kirbyupBuildCleanupPlugin(options) {
355
355
 
356
356
  let resolvedKirbyupConfig;
357
357
  let resolvedPostCssConfig;
358
- const logger = createLogger();
358
+ const logLevel = "warn";
359
+ const logger = createLogger(logLevel);
359
360
  const loggerWarn = logger.warn;
360
361
  logger.warn = (msg, options) => {
361
- if (msg.startsWith(`
362
- (!) build.outDir must not be`))
362
+ if (msg.includes("(!) build.outDir"))
363
363
  return;
364
364
  loggerWarn(msg, options);
365
365
  };
@@ -383,10 +383,15 @@ function getViteConfig(command, options) {
383
383
  kirbyupGlobImportPlugin(),
384
384
  { ...externalGlobals({ vue: "Vue" }), enforce: "post" }
385
385
  ],
386
- css: { postcss: resolvedPostCssConfig },
386
+ build: {
387
+ copyPublicDir: false
388
+ },
389
+ css: {
390
+ postcss: resolvedPostCssConfig
391
+ },
387
392
  envPrefix: ["VITE_", "KIRBYUP_"],
388
393
  customLogger: logger,
389
- logLevel: "warn"
394
+ logLevel
390
395
  };
391
396
  if (command === "serve") {
392
397
  const { port, watch } = options;
@@ -412,8 +417,8 @@ function getViteConfig(command, options) {
412
417
  }
413
418
  const mode = options.watch ? "development" : "production";
414
419
  const buildConfig = mergeConfig(sharedConfig, {
415
- plugins: [kirbyupBuildCleanupPlugin(options)],
416
420
  mode,
421
+ plugins: [kirbyupBuildCleanupPlugin(options)],
417
422
  build: {
418
423
  lib: {
419
424
  entry: resolve(options.cwd, options.entry),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kirbyup",
3
3
  "type": "module",
4
- "version": "3.1.10",
4
+ "version": "3.1.12",
5
5
  "packageManager": "pnpm@9.5.0",
6
6
  "description": "Zero-config bundler for Kirby Panel plugins",
7
7
  "author": {