Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/vite.config.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Loading