-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace picocolors with tinyrainbow
- Loading branch information
1 parent
a169d25
commit 3e829e4
Showing
85 changed files
with
2,120 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "@vitest/pretty-format", | ||
"type": "module", | ||
"version": "2.0.1", | ||
"description": "Fork of pretty-format with support for ESM", | ||
"license": "MIT", | ||
"funding": "https://opencollective.com/vitest", | ||
"homepage": "https://github.com/vitest-dev/vitest/tree/main/packages/utils#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/vitest-dev/vitest.git", | ||
"directory": "packages/pretty-format" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/vitest-dev/vitest/issues" | ||
}, | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"./*": "./*" | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"*.d.ts", | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "rimraf dist && rollup -c", | ||
"dev": "rollup -c --watch" | ||
}, | ||
"dependencies": { | ||
"tinyrainbow": "^1.1.2" | ||
}, | ||
"devDependencies": { | ||
"react-is": "^18.3.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { builtinModules, createRequire } from 'node:module' | ||
import { defineConfig } from 'rollup' | ||
import esbuild from 'rollup-plugin-esbuild' | ||
import dts from 'rollup-plugin-dts' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import json from '@rollup/plugin-json' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
|
||
const require = createRequire(import.meta.url) | ||
const pkg = require('./package.json') | ||
|
||
const entries = { | ||
index: 'src/index.ts', | ||
} | ||
|
||
const external = [ | ||
...builtinModules, | ||
...Object.keys(pkg.dependencies || {}), | ||
...Object.keys(pkg.peerDependencies || {}), | ||
] | ||
|
||
const plugins = [ | ||
resolve({ | ||
preferBuiltins: true, | ||
}), | ||
json(), | ||
esbuild({ | ||
target: 'node14', | ||
}), | ||
commonjs(), | ||
] | ||
|
||
export default defineConfig([ | ||
{ | ||
input: entries, | ||
output: { | ||
dir: 'dist', | ||
format: 'esm', | ||
entryFileNames: '[name].js', | ||
chunkFileNames: 'chunk-[name].js', | ||
}, | ||
external, | ||
plugins, | ||
onwarn, | ||
}, | ||
{ | ||
input: entries, | ||
output: { | ||
dir: 'dist', | ||
entryFileNames: '[name].d.ts', | ||
format: 'esm', | ||
}, | ||
external, | ||
plugins: [dts({ respectExternal: true })], | ||
onwarn, | ||
}, | ||
]) | ||
|
||
function onwarn(message) { | ||
if (['EMPTY_BUNDLE', 'CIRCULAR_DEPENDENCY'].includes(message.code)) { | ||
return | ||
} | ||
console.error(message) | ||
} |
Oops, something went wrong.