@pikacss/integration 0.0.6 → 0.0.8

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
@@ -304,7 +304,8 @@ async function createCtx(options) {
304
304
  ctx.isReady = false;
305
305
  await promises.mkdir(pathe.dirname(devCssFilepath), { recursive: true }).catch(() => {
306
306
  });
307
- if ((await promises.stat(devCssFilepath)).isFile() === false)
307
+ const isDevCssFileExists = await promises.stat(devCssFilepath).then((stat2) => stat2.isFile()).catch(() => false);
308
+ if (isDevCssFileExists === false)
308
309
  await promises.writeFile(devCssFilepath, "");
309
310
  if (tsCodegenFilepath != null) {
310
311
  await promises.mkdir(pathe.dirname(tsCodegenFilepath), { recursive: true }).catch(() => {
package/dist/index.mjs CHANGED
@@ -285,7 +285,8 @@ async function createCtx(options) {
285
285
  ctx.isReady = false;
286
286
  await mkdir(dirname(devCssFilepath), { recursive: true }).catch(() => {
287
287
  });
288
- if ((await stat(devCssFilepath)).isFile() === false)
288
+ const isDevCssFileExists = await stat(devCssFilepath).then((stat2) => stat2.isFile()).catch(() => false);
289
+ if (isDevCssFileExists === false)
289
290
  await writeFile(devCssFilepath, "");
290
291
  if (tsCodegenFilepath != null) {
291
292
  await mkdir(dirname(tsCodegenFilepath), { recursive: true }).catch(() => {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.0.6",
7
+ "version": "0.0.8",
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
  "prettier": "^3.2.5",
44
- "@pikacss/core": "0.0.6"
44
+ "@pikacss/core": "0.0.8"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/micromatch": "^4.0.9"