@pikacss/integration 0.0.31 → 0.0.32

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/index.cjs CHANGED
@@ -329,10 +329,10 @@ async function createCtx(options) {
329
329
  "})"
330
330
  ].join("\n"));
331
331
  }
332
- const config = (0, jiti.createJiti)(cwd, {
332
+ const config = (await (0, jiti.createJiti)(cwd, {
333
333
  fsCache: false,
334
334
  moduleCache: false
335
- }).evalModule(await (0, node_fs_promises.readFile)(resolvedConfigPath, { encoding: "utf-8" }), { filename: resolvedConfigPath }).default;
335
+ }).import(resolvedConfigPath)).default;
336
336
  return {
337
337
  config: (0, klona.klona)(config),
338
338
  file: resolvedConfigPath
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { statSync } from "node:fs";
2
- import { mkdir, readFile, writeFile } from "node:fs/promises";
2
+ import { mkdir, writeFile } from "node:fs/promises";
3
3
  import { createEngine, defineEnginePlugin, setWarnFn, warn } from "@pikacss/core";
4
4
  import { createJiti } from "jiti";
5
5
  import { klona } from "klona";
@@ -302,10 +302,10 @@ async function createCtx(options) {
302
302
  "})"
303
303
  ].join("\n"));
304
304
  }
305
- const config = createJiti(cwd, {
305
+ const config = (await createJiti(cwd, {
306
306
  fsCache: false,
307
307
  moduleCache: false
308
- }).evalModule(await readFile(resolvedConfigPath, { encoding: "utf-8" }), { filename: resolvedConfigPath }).default;
308
+ }).import(resolvedConfigPath)).default;
309
309
  return {
310
310
  config: klona(config),
311
311
  file: resolvedConfigPath
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.0.31",
7
+ "version": "0.0.32",
8
8
  "author": "DevilTea <ch19980814@gmail.com>",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -35,17 +35,17 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "fast-glob": "^3.3.2",
38
- "jiti": "^2.4.2",
38
+ "jiti": "^2.6.1",
39
39
  "klona": "^2.0.6",
40
- "local-pkg": "^1.1.1",
41
- "magic-string": "^0.30.12",
40
+ "local-pkg": "^1.1.2",
41
+ "magic-string": "^0.30.21",
42
42
  "micromatch": "^4.0.8",
43
43
  "pathe": "^2.0.3",
44
- "perfect-debounce": "^1.0.0",
45
- "@pikacss/core": "0.0.31"
44
+ "perfect-debounce": "^2.0.0",
45
+ "@pikacss/core": "0.0.32"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/micromatch": "^4.0.9"
48
+ "@types/micromatch": "^4.0.10"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsdown",