Skip to content

Commit 8922776

Browse files
committed
chore: some type changes
1 parent 6550a6b commit 8922776

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"name": "Node.js Website Team and Contributors"
1414
},
1515
"scripts": {
16+
"compile": "turbo compile",
1617
"build": "turbo build",
1718
"cloudflare:deploy": "turbo cloudflare:deploy",
1819
"cloudflare:preview": "turbo cloudflare:preview",

packages/rehype-shiki/package.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
"types": "./dist/index.d.mts",
99
"default": "./src/index.mjs"
1010
},
11-
"./index.css": "./src/index.css",
12-
"./*": "./src/*.mjs"
11+
"./*": {
12+
"types": "./dist/*.d.mts",
13+
"default": "./src/*.mjs"
14+
},
15+
"./index.css": "./src/index.css"
1316
},
1417
"repository": {
1518
"type": "git",
1619
"url": "https://github.com/nodejs/nodejs.org",
1720
"directory": "packages/rehype-shiki"
1821
},
19-
"imports": {
20-
"#rs/*": "./src/*"
21-
},
2222
"scripts": {
2323
"compile:ts": "tsc",
2424
"compile": "node --run compile:ts",
@@ -44,5 +44,14 @@
4444
"devDependencies": {
4545
"cross-env": "catalog:",
4646
"typescript": "catalog:"
47+
},
48+
"imports": {
49+
"#rs/*": [
50+
"./src/*",
51+
"./src/*.mjs"
52+
]
53+
},
54+
"engines": {
55+
"node": ">=20"
4756
}
4857
}

packages/rehype-shiki/turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"lint:fix": {
99
"cache": false
1010
},
11+
"lint:types": {
12+
"cache": false
13+
},
1114
"test:unit": {
1215
"inputs": ["src/**/*.mjs"]
1316
}

turbo.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
"//#prettier:fix": {
99
"outputs": [".prettiercache"]
1010
},
11-
"build": {
11+
"compile": {
1212
"dependsOn": ["^topo"]
1313
},
14+
"build": {
15+
"dependsOn": ["compile", "^topo"]
16+
},
1417
"lint": {
1518
"dependsOn": ["^topo"]
1619
},

0 commit comments

Comments
 (0)