ci: add .presetterrc.json

This commit is contained in:
Derrick Hammer 2023-10-09 13:08:40 -04:00
parent bac7a90f18
commit e51a0a3483
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 32 additions and 0 deletions

32
.presetterrc.json Normal file
View File

@ -0,0 +1,32 @@
{
"preset": [
"@lumeweb/node-library-preset"
],
"config": {
"tsconfig": {
"compilerOptions": {
"moduleResolution": "bundler",
"typeRoots": [
"src/vite-env.d.ts"
],
"jsx": "react-jsx"
}
},
"tsconfig.build": {
"include": ["{buildSource}"],
"compilerOptions": {
"outDir": "{source}"
}
}
},
"variable": {
"source": "build",
"output": "lib",
"buildSource": "src"
},
"scripts": {
"build:vite": "vite build",
"build": "cross-env NODE_ENV=production run-s clean build:typescript:* build:vite",
"clean:buildOutput": "shx rm -rf {source}"
}
}