Skip to content

Commit 12607a7

Browse files
committed
feat: migrate to ESM
1 parent 2a915c3 commit 12607a7

21 files changed

+5005
-7249
lines changed

.eslintrc

+8-9
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@
77
"jest": true
88
},
99
"parser": "@typescript-eslint/parser",
10-
"extends": [
11-
"eslint:recommended",
12-
"plugin:@typescript-eslint/recommended",
13-
"plugin:prettier/recommended",
14-
"prettier"
15-
],
16-
"plugins": [
17-
"import"
18-
],
1910
"parserOptions": {
2011
"project": "tsconfig.json",
2112
"sourceType": "module"
2213
},
14+
"plugins": [
15+
"import"
16+
],
17+
"extends": [
18+
"eslint:recommended",
19+
"plugin:@typescript-eslint/recommended",
20+
"plugin:prettier/recommended"
21+
],
2322
"rules": {
2423
"linebreak-style": ["error", "unix"],
2524
"no-empty": 1,

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ npm install
2121
# build the dist
2222
npm run build
2323
# run the repl (this allows you to import from ./src)
24-
npm run ts-node
24+
npm run tsx
2525
# run the tests
2626
npm run test
2727
# lint the source code

docs/assets/highlight.css

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
:root {
2-
--light-hl-0: #000000;
3-
--dark-hl-0: #D4D4D4;
4-
--light-hl-1: #008000;
5-
--dark-hl-1: #6A9955;
6-
--light-hl-2: #795E26;
7-
--dark-hl-2: #DCDCAA;
2+
--light-hl-0: #795E26;
3+
--dark-hl-0: #DCDCAA;
4+
--light-hl-1: #000000;
5+
--dark-hl-1: #D4D4D4;
6+
--light-hl-2: #A31515;
7+
--dark-hl-2: #CE9178;
8+
--light-hl-3: #0000FF;
9+
--dark-hl-3: #569CD6;
10+
--light-hl-4: #008000;
11+
--dark-hl-4: #6A9955;
812
--light-code-background: #FFFFFF;
913
--dark-code-background: #1E1E1E;
1014
}
@@ -13,31 +17,41 @@
1317
--hl-0: var(--light-hl-0);
1418
--hl-1: var(--light-hl-1);
1519
--hl-2: var(--light-hl-2);
20+
--hl-3: var(--light-hl-3);
21+
--hl-4: var(--light-hl-4);
1622
--code-background: var(--light-code-background);
1723
} }
1824

1925
@media (prefers-color-scheme: dark) { :root {
2026
--hl-0: var(--dark-hl-0);
2127
--hl-1: var(--dark-hl-1);
2228
--hl-2: var(--dark-hl-2);
29+
--hl-3: var(--dark-hl-3);
30+
--hl-4: var(--dark-hl-4);
2331
--code-background: var(--dark-code-background);
2432
} }
2533

2634
:root[data-theme='light'] {
2735
--hl-0: var(--light-hl-0);
2836
--hl-1: var(--light-hl-1);
2937
--hl-2: var(--light-hl-2);
38+
--hl-3: var(--light-hl-3);
39+
--hl-4: var(--light-hl-4);
3040
--code-background: var(--light-code-background);
3141
}
3242

3343
:root[data-theme='dark'] {
3444
--hl-0: var(--dark-hl-0);
3545
--hl-1: var(--dark-hl-1);
3646
--hl-2: var(--dark-hl-2);
47+
--hl-3: var(--dark-hl-3);
48+
--hl-4: var(--dark-hl-4);
3749
--code-background: var(--dark-code-background);
3850
}
3951

4052
.hl-0 { color: var(--hl-0); }
4153
.hl-1 { color: var(--hl-1); }
4254
.hl-2 { color: var(--hl-2); }
55+
.hl-3 { color: var(--hl-3); }
56+
.hl-4 { color: var(--hl-4); }
4357
pre, code { background: var(--code-background); }

docs/assets/main.js

+57-53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/search.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)