@pikacss/integration 0.0.16 → 0.0.17
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 +5 -10
- package/dist/index.mjs +6 -11
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -271,8 +271,8 @@ async function createCtx(options) {
|
|
|
271
271
|
if (inlineConfig != null)
|
|
272
272
|
return { config: inlineConfig, file: null };
|
|
273
273
|
let resolvedConfigPath = configSources.find((path) => {
|
|
274
|
-
const
|
|
275
|
-
return
|
|
274
|
+
const stat = node_fs.statSync(path, { throwIfNoEntry: false });
|
|
275
|
+
return stat != null && stat.isFile();
|
|
276
276
|
});
|
|
277
277
|
if (resolvedConfigPath == null) {
|
|
278
278
|
if (autoCreateConfig === false)
|
|
@@ -322,17 +322,12 @@ async function createCtx(options) {
|
|
|
322
322
|
}
|
|
323
323
|
await promises.mkdir(pathe.dirname(devCssFilepath), { recursive: true }).catch(() => {
|
|
324
324
|
});
|
|
325
|
-
|
|
326
|
-
if (isDevCssFileExists === false)
|
|
327
|
-
await promises.writeFile(devCssFilepath, "");
|
|
325
|
+
await promises.writeFile(devCssFilepath, "");
|
|
328
326
|
if (tsCodegenFilepath != null) {
|
|
329
327
|
await promises.mkdir(pathe.dirname(tsCodegenFilepath), { recursive: true }).catch(() => {
|
|
330
328
|
});
|
|
331
|
-
const
|
|
332
|
-
|
|
333
|
-
const content = generateTsCodegenContent(ctx);
|
|
334
|
-
await promises.writeFile(tsCodegenFilepath, content);
|
|
335
|
-
}
|
|
329
|
+
const content = generateTsCodegenContent(ctx);
|
|
330
|
+
await promises.writeFile(tsCodegenFilepath, content);
|
|
336
331
|
}
|
|
337
332
|
ctx.isReady = true;
|
|
338
333
|
}, 300),
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { statSync } from 'node:fs';
|
|
2
|
-
import { writeFile, mkdir
|
|
2
|
+
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';
|
|
@@ -265,8 +265,8 @@ async function createCtx(options) {
|
|
|
265
265
|
if (inlineConfig != null)
|
|
266
266
|
return { config: inlineConfig, file: null };
|
|
267
267
|
let resolvedConfigPath = configSources.find((path) => {
|
|
268
|
-
const
|
|
269
|
-
return
|
|
268
|
+
const stat = statSync(path, { throwIfNoEntry: false });
|
|
269
|
+
return stat != null && stat.isFile();
|
|
270
270
|
});
|
|
271
271
|
if (resolvedConfigPath == null) {
|
|
272
272
|
if (autoCreateConfig === false)
|
|
@@ -316,17 +316,12 @@ async function createCtx(options) {
|
|
|
316
316
|
}
|
|
317
317
|
await mkdir(dirname(devCssFilepath), { recursive: true }).catch(() => {
|
|
318
318
|
});
|
|
319
|
-
|
|
320
|
-
if (isDevCssFileExists === false)
|
|
321
|
-
await writeFile(devCssFilepath, "");
|
|
319
|
+
await writeFile(devCssFilepath, "");
|
|
322
320
|
if (tsCodegenFilepath != null) {
|
|
323
321
|
await mkdir(dirname(tsCodegenFilepath), { recursive: true }).catch(() => {
|
|
324
322
|
});
|
|
325
|
-
const
|
|
326
|
-
|
|
327
|
-
const content = generateTsCodegenContent(ctx);
|
|
328
|
-
await writeFile(tsCodegenFilepath, content);
|
|
329
|
-
}
|
|
323
|
+
const content = generateTsCodegenContent(ctx);
|
|
324
|
+
await writeFile(tsCodegenFilepath, content);
|
|
330
325
|
}
|
|
331
326
|
ctx.isReady = true;
|
|
332
327
|
}, 300),
|
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.17",
|
|
8
8
|
"author": "DevilTea <ch19980814@gmail.com>",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"micromatch": "^4.0.8",
|
|
42
42
|
"pathe": "^2.0.3",
|
|
43
43
|
"perfect-debounce": "^1.0.0",
|
|
44
|
-
"@pikacss/core": "0.0.
|
|
44
|
+
"@pikacss/core": "0.0.17"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/micromatch": "^4.0.9"
|