build: use @teidesu/deno-types for deno typings
This commit is contained in:
parent
ac398e657a
commit
3553abc534
5 changed files with 10 additions and 9056 deletions
|
@ -10,7 +10,7 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky install .config/husky",
|
"prepare": "husky install .config/husky",
|
||||||
"postinstall": "node scripts/validate-deps-versions.mjs && node scripts/install-deno-dts.mjs && node scripts/remove-jsr-sourcefiles.mjs",
|
"postinstall": "node scripts/validate-deps-versions.mjs && node scripts/remove-jsr-sourcefiles.mjs",
|
||||||
"test": "pnpm run -r test && vitest --config .config/vite.mts run",
|
"test": "pnpm run -r test && vitest --config .config/vite.mts run",
|
||||||
"test:dev": "vitest --config .config/vite.mts watch",
|
"test:dev": "vitest --config .config/vite.mts watch",
|
||||||
"test:ui": "vitest --config .config/vite.mts --ui",
|
"test:ui": "vitest --config .config/vite.mts --ui",
|
||||||
|
@ -37,6 +37,7 @@
|
||||||
"@commitlint/config-conventional": "17.6.5",
|
"@commitlint/config-conventional": "17.6.5",
|
||||||
"@teidesu/slow-types-compiler": "1.1.0",
|
"@teidesu/slow-types-compiler": "1.1.0",
|
||||||
"@types/node": "20.10.0",
|
"@types/node": "20.10.0",
|
||||||
|
"@types/deno": "npm:@teidesu/deno-types@1.42.4",
|
||||||
"@types/ws": "8.5.4",
|
"@types/ws": "8.5.4",
|
||||||
"@typescript-eslint/eslint-plugin": "6.4.0",
|
"@typescript-eslint/eslint-plugin": "6.4.0",
|
||||||
"@typescript-eslint/parser": "6.4.0",
|
"@typescript-eslint/parser": "6.4.0",
|
||||||
|
|
|
@ -21,6 +21,9 @@ importers:
|
||||||
'@teidesu/slow-types-compiler':
|
'@teidesu/slow-types-compiler':
|
||||||
specifier: 1.1.0
|
specifier: 1.1.0
|
||||||
version: 1.1.0(typescript@5.4.3)
|
version: 1.1.0(typescript@5.4.3)
|
||||||
|
'@types/deno':
|
||||||
|
specifier: npm:@teidesu/deno-types@1.42.4
|
||||||
|
version: /@teidesu/deno-types@1.42.4
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: 20.10.0
|
specifier: 20.10.0
|
||||||
version: 20.10.0
|
version: 20.10.0
|
||||||
|
@ -1467,6 +1470,10 @@ packages:
|
||||||
/@sinclair/typebox@0.27.8:
|
/@sinclair/typebox@0.27.8:
|
||||||
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
|
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
|
||||||
|
|
||||||
|
/@teidesu/deno-types@1.42.4:
|
||||||
|
resolution: {integrity: sha512-MMDkfWOsfedYWy+aPK4fAYyZfrBsY6+DeC7DGg6eESzh90zxuf1fSvXRsY8y09Hh4mm04tAf1632S2/JLaTXQg==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@teidesu/slow-types-compiler@1.1.0(typescript@5.4.3):
|
/@teidesu/slow-types-compiler@1.1.0(typescript@5.4.3):
|
||||||
resolution: {integrity: sha512-+WUHSKh56B32Jk5aJgXf07E2EOkMX1yilvgKLKBCJPFAJZ4xeo1U5aDu3wwHX3lrFl7AiVGXUP+FfuHy8X43BA==}
|
resolution: {integrity: sha512-+WUHSKh56B32Jk5aJgXf07E2EOkMX1yilvgKLKBCJPFAJZ4xeo1U5aDu3wwHX3lrFl7AiVGXUP+FfuHy8X43BA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
import * as fs from 'fs/promises'
|
|
||||||
import { dirname } from 'path'
|
|
||||||
import { fileURLToPath } from 'url'
|
|
||||||
|
|
||||||
const LIB_SOURCE = fileURLToPath(new URL('./lib.deno.d.ts', import.meta.url))
|
|
||||||
const LIB_TARGET = fileURLToPath(new URL('../node_modules/@types/deno/index.d.ts', import.meta.url))
|
|
||||||
|
|
||||||
await fs.mkdir(dirname(LIB_TARGET), { recursive: true })
|
|
||||||
|
|
||||||
if (await fs.stat(LIB_TARGET).catch(() => null)) {
|
|
||||||
await fs.unlink(LIB_TARGET)
|
|
||||||
}
|
|
||||||
|
|
||||||
await fs.symlink(LIB_SOURCE, LIB_TARGET)
|
|
||||||
|
|
||||||
console.log('lib.deno.d.ts linked')
|
|
9038
scripts/lib.deno.d.ts
vendored
9038
scripts/lib.deno.d.ts
vendored
File diff suppressed because it is too large
Load diff
|
@ -19,7 +19,7 @@
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"types": [
|
"types": [
|
||||||
"node",
|
"node",
|
||||||
"deno",
|
"deno/ns",
|
||||||
"vite/client"
|
"vite/client"
|
||||||
],
|
],
|
||||||
"lib": [
|
"lib": [
|
||||||
|
|
Loading…
Reference in a new issue