@pikacss/integration 0.0.17 → 0.0.19
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 +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ const node_fs = require('node:fs');
|
|
|
4
4
|
const promises = require('node:fs/promises');
|
|
5
5
|
const core = require('@pikacss/core');
|
|
6
6
|
const jiti = require('jiti');
|
|
7
|
+
const klona = require('klona');
|
|
7
8
|
const localPkg = require('local-pkg');
|
|
8
9
|
const MagicString = require('magic-string');
|
|
9
10
|
const micromatch = require('micromatch');
|
|
@@ -269,7 +270,7 @@ async function createCtx(options) {
|
|
|
269
270
|
},
|
|
270
271
|
loadConfig: async () => {
|
|
271
272
|
if (inlineConfig != null)
|
|
272
|
-
return { config: inlineConfig, file: null };
|
|
273
|
+
return { config: klona.klona(inlineConfig), file: null };
|
|
273
274
|
let resolvedConfigPath = configSources.find((path) => {
|
|
274
275
|
const stat = node_fs.statSync(path, { throwIfNoEntry: false });
|
|
275
276
|
return stat != null && stat.isFile();
|
|
@@ -295,7 +296,7 @@ async function createCtx(options) {
|
|
|
295
296
|
moduleCache: false
|
|
296
297
|
});
|
|
297
298
|
const config = await jiti$1.import(resolvedConfigPath, { default: true });
|
|
298
|
-
return { config, file: resolvedConfigPath };
|
|
299
|
+
return { config: klona.klona(config), file: resolvedConfigPath };
|
|
299
300
|
},
|
|
300
301
|
init: perfectDebounce.debounce(async () => {
|
|
301
302
|
ctx.isReady = false;
|
package/dist/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { writeFile, mkdir } from 'node:fs/promises';
|
|
|
3
3
|
import { setWarnFn, warn, defineEnginePlugin, createEngine } from '@pikacss/core';
|
|
4
4
|
export * from '@pikacss/core';
|
|
5
5
|
import { createJiti } from 'jiti';
|
|
6
|
+
import { klona } from 'klona';
|
|
6
7
|
import { isPackageExists } from 'local-pkg';
|
|
7
8
|
import MagicString from 'magic-string';
|
|
8
9
|
import micromatch from 'micromatch';
|
|
@@ -263,7 +264,7 @@ async function createCtx(options) {
|
|
|
263
264
|
},
|
|
264
265
|
loadConfig: async () => {
|
|
265
266
|
if (inlineConfig != null)
|
|
266
|
-
return { config: inlineConfig, file: null };
|
|
267
|
+
return { config: klona(inlineConfig), file: null };
|
|
267
268
|
let resolvedConfigPath = configSources.find((path) => {
|
|
268
269
|
const stat = statSync(path, { throwIfNoEntry: false });
|
|
269
270
|
return stat != null && stat.isFile();
|
|
@@ -289,7 +290,7 @@ async function createCtx(options) {
|
|
|
289
290
|
moduleCache: false
|
|
290
291
|
});
|
|
291
292
|
const config = await jiti.import(resolvedConfigPath, { default: true });
|
|
292
|
-
return { config, file: resolvedConfigPath };
|
|
293
|
+
return { config: klona(config), file: resolvedConfigPath };
|
|
293
294
|
},
|
|
294
295
|
init: debounce(async () => {
|
|
295
296
|
ctx.isReady = false;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.19",
|
|
8
8
|
"author": "DevilTea <ch19980814@gmail.com>",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -35,13 +35,14 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"fast-glob": "^3.3.2",
|
|
38
|
-
"jiti": "^2.4.
|
|
38
|
+
"jiti": "^2.4.2",
|
|
39
|
+
"klona": "^2.0.6",
|
|
39
40
|
"local-pkg": "^1.1.1",
|
|
40
41
|
"magic-string": "^0.30.12",
|
|
41
42
|
"micromatch": "^4.0.8",
|
|
42
43
|
"pathe": "^2.0.3",
|
|
43
44
|
"perfect-debounce": "^1.0.0",
|
|
44
|
-
"@pikacss/core": "0.0.
|
|
45
|
+
"@pikacss/core": "0.0.19"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@types/micromatch": "^4.0.9"
|