kirbyup 3.2.1 → 3.3.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.
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
- import('./dist/node/cli.mjs')
3
+ import('../dist/node/cli.mjs')
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { };
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { };
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.Dy3k0wjA.mjs';
2
+ import { n as name, b as build, s as serve, v as version, h as handleError } from '../shared/kirbyup.BtejYnwg.mjs';
3
3
  import 'node:fs';
4
4
  import 'node:fs/promises';
5
5
  import '@vitejs/plugin-vue2';
@@ -13,9 +13,7 @@ import 'vite';
13
13
  import 'vite-plugin-full-reload';
14
14
  import 'vue/compiler-sfc';
15
15
  import 'c12';
16
- import 'postcss-dir-pseudo-class';
17
16
  import 'postcss-load-config';
18
- import 'postcss-logical';
19
17
  import 'magic-string';
20
18
  import 'node:module';
21
19
  import 'child_process';
@@ -10,11 +10,9 @@ import 'rollup-plugin-external-globals';
10
10
  import 'vite';
11
11
  import 'vite-plugin-full-reload';
12
12
  import 'vue/compiler-sfc';
13
- export { b as build, s as serve } from '../shared/kirbyup.Dy3k0wjA.mjs';
13
+ export { b as build, s as serve } from '../shared/kirbyup.BtejYnwg.mjs';
14
14
  import 'c12';
15
- import 'postcss-dir-pseudo-class';
16
15
  import 'postcss-load-config';
17
- import 'postcss-logical';
18
16
  import 'magic-string';
19
17
  import 'node:module';
20
18
  import 'child_process';
@@ -13,9 +13,7 @@ import { createLogger, createServer, build as build$1, mergeConfig } from 'vite'
13
13
  import fullReloadPlugin from 'vite-plugin-full-reload';
14
14
  import * as vueCompilerSfc from 'vue/compiler-sfc';
15
15
  import { loadConfig as loadConfig$1 } from 'c12';
16
- import postcssDirPseudoClass from 'postcss-dir-pseudo-class';
17
16
  import postcssrc from 'postcss-load-config';
18
- import postcssLogical from 'postcss-logical';
19
17
  import MagicString from 'magic-string';
20
18
  import { createRequire } from 'node:module';
21
19
  import 'child_process';
@@ -28,7 +26,7 @@ import { promisify } from 'node:util';
28
26
  import { gzip } from 'node:zlib';
29
27
 
30
28
  const name = "kirbyup";
31
- const version = "3.2.1";
29
+ const version = "3.3.0";
32
30
 
33
31
  function loadConfig(cwd = process.cwd()) {
34
32
  return loadConfig$1({
@@ -44,9 +42,6 @@ async function resolvePostCSSConfig(cwd) {
44
42
  } catch (error) {
45
43
  if (!error.message.includes("No PostCSS Config found"))
46
44
  throw error;
47
- return {
48
- plugins: [postcssLogical(), postcssDirPseudoClass()]
49
- };
50
45
  }
51
46
  }
52
47
 
@@ -769,8 +764,10 @@ function getViteConfig(command, options) {
769
764
  build: {
770
765
  copyPublicDir: false
771
766
  },
772
- css: {
773
- postcss: resolvedPostCssConfig
767
+ ...resolvedPostCssConfig && {
768
+ css: {
769
+ postcss: resolvedPostCssConfig
770
+ }
774
771
  },
775
772
  envDir: options.cwd,
776
773
  envPrefix: ["VITE_", "KIRBYUP_"],
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "kirbyup",
3
3
  "type": "module",
4
- "version": "3.2.1",
5
- "packageManager": "pnpm@10.5.2",
4
+ "version": "3.3.0",
5
+ "packageManager": "pnpm@10.7.1",
6
6
  "description": "Zero-config bundler for Kirby Panel plugins",
7
7
  "author": {
8
8
  "name": "Johann Schopplich",
@@ -27,19 +27,18 @@
27
27
  "exports": {
28
28
  ".": {
29
29
  "types": "./dist/node/index.d.mts",
30
- "import": "./dist/node/index.mjs"
30
+ "default": "./dist/node/index.mjs"
31
31
  },
32
32
  "./config": {
33
33
  "types": "./dist/client/config.d.mts",
34
- "import": "./dist/client/config.mjs"
34
+ "default": "./dist/client/config.mjs"
35
35
  },
36
36
  "./plugin": {
37
37
  "types": "./dist/client/plugin.d.mts",
38
- "import": "./dist/client/plugin.mjs"
38
+ "default": "./dist/client/plugin.mjs"
39
39
  }
40
40
  },
41
- "module": "./dist/node/index.mjs",
42
- "types": "./dist/node/index.d.ts",
41
+ "types": "./dist/node/index.d.mts",
43
42
  "typesVersions": {
44
43
  "*": {
45
44
  "config": [
@@ -50,7 +49,9 @@
50
49
  ]
51
50
  }
52
51
  },
53
- "bin": "./cli.mjs",
52
+ "bin": {
53
+ "kirbyup": "bin/kirbyup.mjs"
54
+ },
54
55
  "files": [
55
56
  "bin",
56
57
  "dist"
@@ -74,34 +75,32 @@
74
75
  "@vitejs/plugin-vue2": "2.2.0",
75
76
  "@vitejs/plugin-vue2-jsx": "1.1.0",
76
77
  "@vue/compiler-sfc": "^2.7.16",
77
- "c12": "^3.0.2",
78
+ "c12": "^3.0.3",
78
79
  "cac": "^6.7.14",
79
80
  "chokidar": "~3.6.0",
80
- "consola": "^3.4.0",
81
+ "consola": "^3.4.2",
81
82
  "magic-string": "^0.30.17",
82
83
  "pathe": "^2.0.3",
83
84
  "perfect-debounce": "^1.0.0",
84
85
  "postcss": "^8.5.3",
85
- "postcss-dir-pseudo-class": "^9.0.1",
86
86
  "postcss-load-config": "^6.0.1",
87
- "postcss-logical": "^8.1.0",
88
87
  "rollup-plugin-external-globals": "^0.13.0",
89
- "sass": "^1.85.1",
90
- "vite": "~5.4.14",
88
+ "sass": "^1.86.3",
89
+ "vite": "~5.4.17",
91
90
  "vite-plugin-full-reload": "^1.2.0",
92
91
  "vue": "^2.7.16"
93
92
  },
94
93
  "devDependencies": {
95
- "@antfu/eslint-config": "^4.3.0",
96
- "@types/node": "^22.13.5",
94
+ "@antfu/eslint-config": "^4.11.0",
95
+ "@types/node": "^22.14.0",
97
96
  "@types/prompts": "^2.4.9",
98
- "bumpp": "^10.0.3",
99
- "eslint": "^9.21.0",
97
+ "bumpp": "^10.1.0",
98
+ "eslint": "^9.24.0",
100
99
  "fast-glob": "^3.3.3",
101
100
  "nypm": "^0.6.0",
102
- "typescript": "^5.7.3",
101
+ "typescript": "^5.8.3",
103
102
  "unbuild": "^3.5.0",
104
- "vitest": "^3.0.7"
103
+ "vitest": "^3.1.1"
105
104
  },
106
105
  "pnpm": {
107
106
  "onlyBuiltDependencies": [