@visulima/is-ansi-color-supported 2.2.10 → 2.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +1 -1
- package/dist/is-color-supported.browser.cjs +31 -0
- package/dist/is-color-supported.browser.d.cts +7 -0
- package/dist/is-color-supported.browser.d.mts +3 -7
- package/dist/is-color-supported.browser.d.ts +3 -7
- package/dist/is-color-supported.edge-light.cjs +41 -0
- package/dist/is-color-supported.edge-light.d.cts +11 -0
- package/dist/is-color-supported.server.d.cts +3 -7
- package/dist/is-color-supported.server.d.mts +3 -7
- package/dist/is-color-supported.server.d.ts +3 -7
- package/dist/packem_shared/color-spaces-DeN59JDX.d.cts +8 -0
- package/dist/packem_shared/color-spaces-DeN59JDX.d.mjs +8 -0
- package/dist/packem_shared/color-spaces-DeN59JDX.d.mts +8 -0
- package/package.json +35 -66
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## @visulima/is-ansi-color-supported [2.2.12](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.11...@visulima/is-ansi-color-supported@2.2.12) (2025-01-25)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* fixed wrong node version range in package.json ([4ae2929](https://github.com/visulima/visulima/commit/4ae292984681c71a770e4d4560432f7b7c5a141a))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* fixed typescript url ([fe65a8c](https://github.com/visulima/visulima/commit/fe65a8c0296ece7ee26474c70d065b06d4d0da89))
|
|
10
|
+
* updated all dev dependencies ([37fb298](https://github.com/visulima/visulima/commit/37fb298b2af7c63be64252024e54bb3af6ddabec))
|
|
11
|
+
|
|
12
|
+
## @visulima/is-ansi-color-supported [2.2.11](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.10...@visulima/is-ansi-color-supported@2.2.11) (2025-01-22)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* fixed support for edge-light runtime ([40e9ea3](https://github.com/visulima/visulima/commit/40e9ea38d442c5aed4f8660596d4ef63c79bdf35))
|
|
17
|
+
|
|
18
|
+
### Miscellaneous Chores
|
|
19
|
+
|
|
20
|
+
* updated all dev dependencies and all dependencies in the app folder ([87f4ccb](https://github.com/visulima/visulima/commit/87f4ccbf9f7900ec5b56f3c1477bc4a0ef571bcf))
|
|
21
|
+
|
|
1
22
|
## @visulima/is-ansi-color-supported [2.2.10](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.9...@visulima/is-ansi-color-supported@2.2.10) (2025-01-12)
|
|
2
23
|
|
|
3
24
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -169,7 +169,7 @@ If you would like to help take a look at the [list of issues](https://github.com
|
|
|
169
169
|
The visulima is-ansi-color-supported is open-sourced software licensed under the [MIT][license-url]
|
|
170
170
|
|
|
171
171
|
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
172
|
-
[typescript-url]: "typescript"
|
|
172
|
+
[typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
|
|
173
173
|
[license-image]: https://img.shields.io/npm/l/@visulima/is-ansi-color-supported?color=blueviolet&style=for-the-badge
|
|
174
174
|
[license-url]: LICENSE.md "license"
|
|
175
175
|
[npm-image]: https://img.shields.io/npm/v/@visulima/is-ansi-color-supported/latest.svg?style=for-the-badge&logo=npm
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const SPACE_MONO = require('./packem_shared/SPACE_MONO-Cwv43lY6.cjs');
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
const isColorSupported = /* @__PURE__ */ __name(() => (() => {
|
|
10
|
+
if (typeof navigator !== "undefined") {
|
|
11
|
+
if (navigator.userAgentData) {
|
|
12
|
+
const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
|
|
13
|
+
if (brand?.version > 93) {
|
|
14
|
+
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
|
|
18
|
+
return SPACE_MONO.SPACE_16_COLORS;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return SPACE_MONO.SPACE_MONO;
|
|
22
|
+
})(), "isColorSupported");
|
|
23
|
+
const isStdoutColorSupported = isColorSupported;
|
|
24
|
+
const isStderrColorSupported = isColorSupported;
|
|
25
|
+
|
|
26
|
+
exports.SPACE_16_COLORS = SPACE_MONO.SPACE_16_COLORS;
|
|
27
|
+
exports.SPACE_256_COLORS = SPACE_MONO.SPACE_256_COLORS;
|
|
28
|
+
exports.SPACE_MONO = SPACE_MONO.SPACE_MONO;
|
|
29
|
+
exports.SPACE_TRUE_COLORS = SPACE_MONO.SPACE_TRUE_COLORS;
|
|
30
|
+
exports.isStderrColorSupported = isStderrColorSupported;
|
|
31
|
+
exports.isStdoutColorSupported = isStdoutColorSupported;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.cjs';
|
|
2
|
+
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.cjs';
|
|
3
|
+
|
|
4
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
6
|
+
|
|
7
|
+
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const SPACE_MONO = 0;
|
|
4
|
-
declare const SPACE_16_COLORS = 1;
|
|
5
|
-
declare const SPACE_256_COLORS = 2;
|
|
6
|
-
declare const SPACE_TRUE_COLORS = 3;
|
|
1
|
+
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.mjs';
|
|
2
|
+
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.mjs';
|
|
7
3
|
|
|
8
4
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
9
5
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
10
6
|
|
|
11
|
-
export {
|
|
7
|
+
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const SPACE_MONO = 0;
|
|
4
|
-
declare const SPACE_16_COLORS = 1;
|
|
5
|
-
declare const SPACE_256_COLORS = 2;
|
|
6
|
-
declare const SPACE_TRUE_COLORS = 3;
|
|
1
|
+
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.d.mjs';
|
|
2
|
+
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.d.mjs';
|
|
7
3
|
|
|
8
4
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
9
5
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
10
6
|
|
|
11
|
-
export {
|
|
7
|
+
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const SPACE_MONO = require('./packem_shared/SPACE_MONO-Cwv43lY6.cjs');
|
|
6
|
+
|
|
7
|
+
var __defProp$1 = Object.defineProperty;
|
|
8
|
+
var __name$1 = (target, value) => __defProp$1(target, "name", { value, configurable: true });
|
|
9
|
+
const isColorSupported$1 = /* @__PURE__ */ __name$1(() => (() => {
|
|
10
|
+
if (typeof navigator !== "undefined") {
|
|
11
|
+
if (navigator.userAgentData) {
|
|
12
|
+
const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
|
|
13
|
+
if (brand?.version > 93) {
|
|
14
|
+
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
|
|
18
|
+
return SPACE_MONO.SPACE_16_COLORS;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return SPACE_MONO.SPACE_MONO;
|
|
22
|
+
})(), "isColorSupported");
|
|
23
|
+
const isStdoutColorSupported$1 = isColorSupported$1;
|
|
24
|
+
|
|
25
|
+
var __defProp = Object.defineProperty;
|
|
26
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
27
|
+
const isColorSupported = /* @__PURE__ */ __name(() => (() => {
|
|
28
|
+
if (process?.env?.NEXT_RUNTIME !== undefined && process?.env.NEXT_RUNTIME.includes("edge")) {
|
|
29
|
+
return SPACE_MONO.SPACE_16_COLORS;
|
|
30
|
+
}
|
|
31
|
+
return isStdoutColorSupported$1();
|
|
32
|
+
})(), "isColorSupported");
|
|
33
|
+
const isStdoutColorSupported = isColorSupported;
|
|
34
|
+
const isStderrColorSupported = isColorSupported;
|
|
35
|
+
|
|
36
|
+
exports.SPACE_16_COLORS = SPACE_MONO.SPACE_16_COLORS;
|
|
37
|
+
exports.SPACE_256_COLORS = SPACE_MONO.SPACE_256_COLORS;
|
|
38
|
+
exports.SPACE_MONO = SPACE_MONO.SPACE_MONO;
|
|
39
|
+
exports.SPACE_TRUE_COLORS = SPACE_MONO.SPACE_TRUE_COLORS;
|
|
40
|
+
exports.isStderrColorSupported = isStderrColorSupported;
|
|
41
|
+
exports.isStdoutColorSupported = isStdoutColorSupported;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
2
|
+
|
|
3
|
+
declare const SPACE_MONO = 0;
|
|
4
|
+
declare const SPACE_16_COLORS = 1;
|
|
5
|
+
declare const SPACE_256_COLORS = 2;
|
|
6
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
7
|
+
|
|
8
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
9
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
10
|
+
|
|
11
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const SPACE_MONO = 0;
|
|
4
|
-
declare const SPACE_16_COLORS = 1;
|
|
5
|
-
declare const SPACE_256_COLORS = 2;
|
|
6
|
-
declare const SPACE_TRUE_COLORS = 3;
|
|
1
|
+
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.cjs';
|
|
2
|
+
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.cjs';
|
|
7
3
|
|
|
8
4
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
9
5
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
10
6
|
|
|
11
|
-
export {
|
|
7
|
+
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const SPACE_MONO = 0;
|
|
4
|
-
declare const SPACE_16_COLORS = 1;
|
|
5
|
-
declare const SPACE_256_COLORS = 2;
|
|
6
|
-
declare const SPACE_TRUE_COLORS = 3;
|
|
1
|
+
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.mjs';
|
|
2
|
+
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.mjs';
|
|
7
3
|
|
|
8
4
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
9
5
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
10
6
|
|
|
11
|
-
export {
|
|
7
|
+
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const SPACE_MONO = 0;
|
|
4
|
-
declare const SPACE_16_COLORS = 1;
|
|
5
|
-
declare const SPACE_256_COLORS = 2;
|
|
6
|
-
declare const SPACE_TRUE_COLORS = 3;
|
|
1
|
+
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.d.mjs';
|
|
2
|
+
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.d.mjs';
|
|
7
3
|
|
|
8
4
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
9
5
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
10
6
|
|
|
11
|
-
export {
|
|
7
|
+
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
2
|
+
|
|
3
|
+
declare const SPACE_MONO = 0;
|
|
4
|
+
declare const SPACE_16_COLORS = 1;
|
|
5
|
+
declare const SPACE_256_COLORS = 2;
|
|
6
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
7
|
+
|
|
8
|
+
export { type ColorSupportLevel as C, SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
2
|
+
|
|
3
|
+
declare const SPACE_MONO = 0;
|
|
4
|
+
declare const SPACE_16_COLORS = 1;
|
|
5
|
+
declare const SPACE_256_COLORS = 2;
|
|
6
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
7
|
+
|
|
8
|
+
export { type ColorSupportLevel as C, SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
2
|
+
|
|
3
|
+
declare const SPACE_MONO = 0;
|
|
4
|
+
declare const SPACE_16_COLORS = 1;
|
|
5
|
+
declare const SPACE_256_COLORS = 2;
|
|
6
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
7
|
+
|
|
8
|
+
export { type ColorSupportLevel as C, SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/is-ansi-color-supported",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.12",
|
|
4
4
|
"description": "Detect whether a terminal or browser supports ansi colors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -77,57 +77,40 @@
|
|
|
77
77
|
"default": "./dist/is-color-supported.server.mjs"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
+
"./browser": {
|
|
81
|
+
"require": {
|
|
82
|
+
"types": "./dist/is-color-supported.browser.d.cts",
|
|
83
|
+
"default": "./dist/is-color-supported.browser.cjs"
|
|
84
|
+
},
|
|
85
|
+
"import": {
|
|
86
|
+
"types": "./dist/is-color-supported.browser.d.mts",
|
|
87
|
+
"default": "./dist/is-color-supported.browser.mjs"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"./edge-light": {
|
|
91
|
+
"require": {
|
|
92
|
+
"types": "./dist/is-color-supported.edge-light.d.cts",
|
|
93
|
+
"default": "./dist/is-color-supported.edge-light.cjs"
|
|
94
|
+
},
|
|
95
|
+
"import": {
|
|
96
|
+
"types": "./dist/is-color-supported.edge-light.d.mts",
|
|
97
|
+
"default": "./dist/is-color-supported.edge-light.mjs"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
80
100
|
"./package.json": "./package.json"
|
|
81
101
|
},
|
|
82
102
|
"main": "dist/is-color-supported.server.cjs",
|
|
83
103
|
"module": "dist/is-color-supported.server.mjs",
|
|
84
104
|
"browser": "./dist/is-color-supported.browser.mjs",
|
|
85
105
|
"types": "dist/is-color-supported.server.d.ts",
|
|
86
|
-
"typesVersions": {
|
|
87
|
-
">=5.0": {
|
|
88
|
-
".": [
|
|
89
|
-
"./dist/is-color-supported.server.d.ts"
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
106
|
"files": [
|
|
94
107
|
"dist/**",
|
|
95
108
|
"README.md",
|
|
96
109
|
"CHANGELOG.md",
|
|
97
110
|
"LICENSE.md"
|
|
98
111
|
],
|
|
99
|
-
"devDependencies": {
|
|
100
|
-
"@anolilab/eslint-config": "^15.0.3",
|
|
101
|
-
"@anolilab/prettier-config": "^5.0.14",
|
|
102
|
-
"@anolilab/semantic-release-pnpm": "^1.1.6",
|
|
103
|
-
"@anolilab/semantic-release-preset": "^9.0.3",
|
|
104
|
-
"@arethetypeswrong/cli": "^0.17.2",
|
|
105
|
-
"@babel/core": "^7.26.0",
|
|
106
|
-
"@rushstack/eslint-plugin-security": "^0.8.3",
|
|
107
|
-
"@secretlint/secretlint-rule-preset-recommend": "^9.0.0",
|
|
108
|
-
"@types/node": "18.19.15",
|
|
109
|
-
"@visulima/packem": "1.10.7",
|
|
110
|
-
"@vitest/coverage-v8": "^2.1.8",
|
|
111
|
-
"@vitest/ui": "^2.1.8",
|
|
112
|
-
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
113
|
-
"cross-env": "^7.0.3",
|
|
114
|
-
"esbuild": "0.24.2",
|
|
115
|
-
"eslint": "8.57.0",
|
|
116
|
-
"eslint-plugin-deprecation": "^3.0.0",
|
|
117
|
-
"eslint-plugin-etc": "^2.0.3",
|
|
118
|
-
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
|
|
119
|
-
"eslint-plugin-mdx": "^3.1.5",
|
|
120
|
-
"eslint-plugin-vitest": "^0.4.1",
|
|
121
|
-
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
122
|
-
"prettier": "^3.4.2",
|
|
123
|
-
"rimraf": "6.0.1",
|
|
124
|
-
"secretlint": "9.0.0",
|
|
125
|
-
"semantic-release": "24.2.1",
|
|
126
|
-
"typescript": "5.7.3",
|
|
127
|
-
"vitest": "^2.1.8"
|
|
128
|
-
},
|
|
129
112
|
"engines": {
|
|
130
|
-
"node": ">=18
|
|
113
|
+
"node": ">=18.0.0 <=23.x"
|
|
131
114
|
},
|
|
132
115
|
"os": [
|
|
133
116
|
"darwin",
|
|
@@ -138,33 +121,19 @@
|
|
|
138
121
|
"access": "public",
|
|
139
122
|
"provenance": true
|
|
140
123
|
},
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
124
|
+
"typesVersions": {
|
|
125
|
+
">=5.0": {
|
|
126
|
+
".": [
|
|
127
|
+
"./dist/is-color-supported.edge-light.d.ts",
|
|
128
|
+
"./dist/is-color-supported.browser.d.ts",
|
|
129
|
+
"./dist/is-color-supported.server.d.ts"
|
|
130
|
+
],
|
|
131
|
+
"edge-light": [
|
|
132
|
+
"./dist/is-color-supported.edge-light.d.ts"
|
|
133
|
+
],
|
|
134
|
+
"browser": [
|
|
135
|
+
"./dist/is-color-supported.browser.d.ts"
|
|
136
|
+
]
|
|
151
137
|
}
|
|
152
|
-
},
|
|
153
|
-
"scripts": {
|
|
154
|
-
"build": "cross-env NODE_ENV=development packem build",
|
|
155
|
-
"build:prod": "cross-env NODE_ENV=production packem build",
|
|
156
|
-
"clean": "rimraf node_modules dist .eslintcache",
|
|
157
|
-
"dev": "pnpm run build --watch",
|
|
158
|
-
"lint:attw": "attw --pack",
|
|
159
|
-
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
|
|
160
|
-
"lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix",
|
|
161
|
-
"lint:package-json": "publint --strict",
|
|
162
|
-
"lint:prettier": "prettier --config=.prettierrc.cjs --check .",
|
|
163
|
-
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
|
|
164
|
-
"lint:types": "tsc --noEmit",
|
|
165
|
-
"test": "vitest run",
|
|
166
|
-
"test:coverage": "vitest run --coverage",
|
|
167
|
-
"test:ui": "vitest --ui --coverage.enabled=true",
|
|
168
|
-
"test:watch": "vitest"
|
|
169
138
|
}
|
|
170
139
|
}
|