Skip to content

Commit 77126fb

Browse files
committed
Meta tweaks
1 parent 795273f commit 77126fb

File tree

6 files changed

+29
-51
lines changed

6 files changed

+29
-51
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- 16
1515
- 14
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
1919
with:
2020
node-version: ${{ matrix.node-version }}
2121
- run: npm install

examples/rainbow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function rainbow(string, offset) {
1010
return string;
1111
}
1212

13-
const hueStep = 360 / string.replace(ignoreChars, '').length;
13+
const hueStep = 360 / string.replaceAll(ignoreChars, '').length;
1414

1515
let hue = offset % 360;
1616
const characters = [];

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
}
1717
},
1818
"types": "./source/index.d.ts",
19+
"sideEffects": false,
1920
"engines": {
2021
"node": "^12.17.0 || ^14.13 || >=16.0.0"
2122
},
@@ -58,10 +59,9 @@
5859
"log-update": "^5.0.0",
5960
"matcha": "^0.7.0",
6061
"tsd": "^0.19.0",
61-
"xo": "^0.53.0",
62+
"xo": "^0.57.0",
6263
"yoctodelay": "^2.0.0"
6364
},
64-
"sideEffects": false,
6565
"xo": {
6666
"rules": {
6767
"unicorn/prefer-string-slice": "off",

readme.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,48 +15,6 @@
1515

1616
![](media/screenshot.png)
1717

18-
<br>
19-
20-
---
21-
22-
<div align="center">
23-
<p>
24-
<p>
25-
<sup>
26-
Sindre Sorhus' open source work is supported by the community on <a href="https://github.com/sponsors/sindresorhus">GitHub Sponsors</a>
27-
</sup>
28-
</p>
29-
<sup>Special thanks to:</sup>
30-
<br>
31-
<br>
32-
<a href="https://standardresume.co/tech">
33-
<img src="https://sindresorhus.com/assets/thanks/standard-resume-logo.svg" width="160">
34-
</a>
35-
<br>
36-
<br>
37-
<a href="https://retool.com/?utm_campaign=sindresorhus">
38-
<img src="https://sindresorhus.com/assets/thanks/retool-logo.svg" width="230">
39-
</a>
40-
<br>
41-
<br>
42-
<a href="https://strapi.io/?ref=sindresorhus">
43-
<div>
44-
<img src="https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png" width="220" alt="Strapi">
45-
</div>
46-
<b>Strapi is the leading open-source headless CMS.</b>
47-
<div>
48-
<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>
49-
</div>
50-
</a>
51-
<br>
52-
<br>
53-
</p>
54-
</div>
55-
56-
---
57-
58-
<br>
59-
6018
## Highlights
6119

6220
- Expressive API

source/index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
// TODO: Make it this when TS suports that.
22
// import {ModifierName, ForegroundColor, BackgroundColor, ColorName} from '#ansi-styles';
33
// import {ColorInfo, ColorSupportLevel} from '#supports-color';
4-
import {ModifierName, ForegroundColorName, BackgroundColorName, ColorName} from './vendor/ansi-styles/index.js';
4+
import {
5+
ModifierName,
6+
ForegroundColorName,
7+
BackgroundColorName,
8+
ColorName,
9+
} from './vendor/ansi-styles/index.js';
510
import {ColorInfo, ColorSupportLevel} from './vendor/supports-color/index.js';
611

712
export interface Options {

source/index.test-d.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1-
import {expectType, expectAssignable, expectError, expectDeprecated} from 'tsd';
1+
import {
2+
expectType,
3+
expectAssignable,
4+
expectError,
5+
expectDeprecated,
6+
} from 'tsd';
27
import chalk, {
3-
Chalk, ChalkInstance, ColorInfo, ColorSupport, ColorSupportLevel, chalkStderr, supportsColor, supportsColorStderr,
4-
ModifierName, ForegroundColorName, BackgroundColorName, ColorName,
8+
Chalk,
9+
ChalkInstance,
10+
ColorInfo,
11+
ColorSupport,
12+
ColorSupportLevel,
13+
chalkStderr,
14+
supportsColor,
15+
supportsColorStderr,
16+
ModifierName,
17+
ForegroundColorName,
18+
BackgroundColorName,
19+
ColorName,
520
Modifiers,
621
} from './index.js';
722

0 commit comments

Comments
 (0)