Skip to content

Commit b52475b

Browse files
Merge pull request #4759 from preactjs/node-prefix
chore: node prefix + script string args
2 parents e92fdf8 + ff053c8 commit b52475b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

demo/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'vite';
2-
import path from 'path';
2+
import path from 'node:path';
33

44
const root = path.join(__dirname, '..');
55
const resolvePkg = (...parts) => path.join(root, ...parts, 'src', 'index.js');

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"types": "src/index.d.ts",
115115
"scripts": {
116116
"prepare": "husky && run-s build",
117-
"build": "npm-run-all --parallel build:*",
117+
"build": "npm-run-all --parallel 'build:*'",
118118
"build:core": "microbundle build --raw --no-generateTypes -f cjs,esm,umd",
119119
"build:core-min": "microbundle build --raw --no-generateTypes -f cjs,esm,umd,iife src/cjs.js -o dist/preact.min.js",
120120
"build:debug": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd debug",
@@ -132,7 +132,7 @@
132132
"test:vitest": "cross-env COVERAGE=true vitest run",
133133
"test:vitest:min": "cross-env MINIFY=true vitest run",
134134
"test:vitest:watch": "vitest",
135-
"test:ts": "run-p test:ts:*",
135+
"test:ts": "run-p 'test:ts:*'",
136136
"test:ts:core": "tsc -p test/ts/ && mocha --require \"@babel/register\" test/ts/**/*-test.js",
137137
"test:ts:compat": "tsc -p compat/test/ts/",
138138
"test:mocha": "mocha --recursive --require \"@babel/register\" test/shared test/node",

vitest.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { defineConfig } from 'vitest/config';
22
import { transformAsync } from '@babel/core';
3-
import fs from 'fs/promises';
4-
import { readFileSync } from 'fs';
5-
import path from 'path';
3+
import fs from 'node:fs/promises';
4+
import { readFileSync } from 'node:fs';
5+
import path from 'node:path';
66

77
const MINIFY = process.env.MINIFY === 'true';
88
const COVERAGE = process.env.COVERAGE === 'true';

0 commit comments

Comments
 (0)