diff --git a/demo/vite.config.js b/demo/vite.config.js index 38bc2274b1..fc1f5788ea 100644 --- a/demo/vite.config.js +++ b/demo/vite.config.js @@ -1,5 +1,5 @@ import { defineConfig } from 'vite'; -import path from 'path'; +import path from 'node:path'; const root = path.join(__dirname, '..'); const resolvePkg = (...parts) => path.join(root, ...parts, 'src', 'index.js'); diff --git a/package.json b/package.json index be0eda0e26..ffaab6395b 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "types": "src/index.d.ts", "scripts": { "prepare": "husky && run-s build", - "build": "npm-run-all --parallel build:*", + "build": "npm-run-all --parallel 'build:*'", "build:core": "microbundle build --raw --no-generateTypes -f cjs,esm,umd", "build:core-min": "microbundle build --raw --no-generateTypes -f cjs,esm,umd,iife src/cjs.js -o dist/preact.min.js", "build:debug": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd debug", @@ -132,7 +132,7 @@ "test:vitest": "cross-env COVERAGE=true vitest run", "test:vitest:min": "cross-env MINIFY=true vitest run", "test:vitest:watch": "vitest", - "test:ts": "run-p test:ts:*", + "test:ts": "run-p 'test:ts:*'", "test:ts:core": "tsc -p test/ts/ && mocha --require \"@babel/register\" test/ts/**/*-test.js", "test:ts:compat": "tsc -p compat/test/ts/", "test:mocha": "mocha --recursive --require \"@babel/register\" test/shared test/node", diff --git a/vitest.config.mjs b/vitest.config.mjs index ec64cc3113..8545ea05f5 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -1,8 +1,8 @@ import { defineConfig } from 'vitest/config'; import { transformAsync } from '@babel/core'; -import fs from 'fs/promises'; -import { readFileSync } from 'fs'; -import path from 'path'; +import fs from 'node:fs/promises'; +import { readFileSync } from 'node:fs'; +import path from 'node:path'; const MINIFY = process.env.MINIFY === 'true'; const COVERAGE = process.env.COVERAGE === 'true';