chore: update to Node.JS v20

This commit is contained in:
Kim, Jimin 2024-02-29 00:07:36 +09:00
parent 12ed6cf0c2
commit 7079f92414
Signed by: pomp
GPG key ID: 77DAC7BB5CA8C7AA
11 changed files with 157 additions and 141 deletions

View file

@ -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"
}

View file

@ -1,7 +1,6 @@
{
"include": ["src"],
"compilerOptions": {
"outDir": "build",
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Node",

View 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"],
})