chore: update to Node.JS v20
This commit is contained in:
parent
12ed6cf0c2
commit
7079f92414
11 changed files with 157 additions and 141 deletions
|
@ -3,13 +3,13 @@
|
|||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "rm -rf build && tsc && node --es-module-specifier-resolution=node build/index.js",
|
||||
"build": "rm -rf dist build && tsup && node build/index.js",
|
||||
"lint": "eslint .",
|
||||
"clean": "rm -rf .turbo build dist node_modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"@developomp-site/eslint-config": "workspace:^",
|
||||
"@developomp-site/prettier-config": "workspace:^",
|
||||
"@developomp-site/eslint-config": "workspace:*",
|
||||
"@developomp-site/prettier-config": "workspace:*",
|
||||
"@microflash/remark-callout-directives": "^2.0.0",
|
||||
"@types/dompurify": "^3.0.5",
|
||||
"@types/elasticlunr": "^0.9.9",
|
||||
|
@ -43,6 +43,7 @@
|
|||
"remark-supersub": "^1.0.0",
|
||||
"simple-icons": "^10.3.0",
|
||||
"tinycolor2": "^1.6.0",
|
||||
"tsup": "^8.0.2",
|
||||
"typescript": "^5.3.3",
|
||||
"unified": "^11.0.4"
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"outDir": "build",
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Node",
|
||||
|
|
9
packages/content/tsup.config.ts
Normal file
9
packages/content/tsup.config.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { defineConfig } from "tsup"
|
||||
|
||||
export default defineConfig({
|
||||
// clean: true, // this only removes file, not folders. Using rm -rf instead
|
||||
target: "node20",
|
||||
outDir: "build",
|
||||
format: ["esm"],
|
||||
entry: ["src/index.ts"],
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue