47
47
"transpile:stream-node" : " microbundle src/stream-node.js -o dist/stream/node/index.js -f es,cjs,umd --target node" ,
48
48
"transpile:jsx" : " microbundle src/jsx.js -o dist/jsx/index.js -f es,cjs,umd && microbundle dist/jsx/index.js -o dist/jsx/index.js -f cjs" ,
49
49
"copy-typescript-definition" : " copyfiles -f src/*.d.ts dist" ,
50
- "test" : " eslint src test && tsc && npm run test:mocha && npm run test:mocha:compat && npm run test:mocha:debug && npm run bench" ,
51
- "test:mocha" : " BABEL_ENV=test mocha -r @babel/register -r test/setup.js test/*.test.jsx" ,
52
- "test:mocha:compat" : " BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/compat/*.test.js' 'test/compat/*.test.jsx'" ,
53
- "test:mocha:debug" : " BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/debug/*.test.jsx'" ,
50
+ "test" : " eslint src/**/* test/**/* && tsc && npm run test:vitest:run && npm run bench" ,
51
+ "test:vitest" : " vitest" ,
52
+ "test:vitest:run" : " vitest run" ,
54
53
"format" : " prettier src/**/*.{d.ts,js} test/**/*.js --write" ,
55
54
"prepublishOnly" : " npm run build" ,
56
55
"release" : " npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
135
134
"@changesets/cli" : " ^2.18.0" ,
136
135
"baseline-rts" : " npm:preact-render-to-string@latest" ,
137
136
"benchmarkjs-pretty" : " ^2.0.1" ,
138
- "chai" : " ^4.2.0" ,
139
137
"check-export-map" : " ^1.3.1" ,
140
138
"copyfiles" : " ^2.4.1" ,
141
139
"eslint" : " ^7.16.0" ,
142
140
"eslint-config-developit" : " ^1.2.0" ,
143
141
"husky" : " ^4.3.6" ,
144
142
"lint-staged" : " ^10.5.3" ,
145
143
"microbundle" : " ^0.15.1" ,
146
- "mocha" : " ^8.2.1" ,
147
144
"preact" : " ^10.24.0" ,
148
145
"prettier" : " ^2.2.1" ,
149
146
"pretty-format" : " ^3.8.0" ,
150
- "sinon" : " ^9.2.2" ,
151
- "sinon-chai" : " ^3.5.0" ,
152
147
"typescript" : " ^5.0.0" ,
148
+ "vitest" : " ^3.2.4" ,
153
149
"web-streams-polyfill" : " ^3.2.1"
154
150
},
155
151
"prettier" : {
171
167
"publishConfig" : {
172
168
"provenance" : true
173
169
}
174
- }
170
+ }
0 commit comments