build: add start script

This commit is contained in:
xHyroM 2023-04-09 15:53:10 +02:00
parent 7c63c373c1
commit e522324196
No known key found for this signature in database
GPG key ID: BE0423F386C436AA
2 changed files with 25 additions and 23 deletions

View file

@ -6,7 +6,8 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "node scripts/build.mjs",
"dev": "node scripts/build.mjs --dev && node dist/index.mjs"
"dev": "node scripts/build.mjs --dev && node dist/index.mjs",
"start": "node dist/index.mjs"
},
"devDependencies": {
"esbuild": "^0.15.11",

View file

@ -1,24 +1,25 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist"]
},
"dev": {
"outputs": ["dist"]
},
"dev:tunnel": {
"outputs": ["dist"]
},
"preview": {
"outputs": ["dist"]
},
"deploy": {
"dependsOn": ["build", "test", "lint"]
},
"test": {
"dependsOn": ["^build"]
}
}
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist"]
},
"dev": {
"outputs": ["dist"]
},
"dev:tunnel": {
"outputs": ["dist"]
},
"preview": {
"outputs": ["dist"]
},
"deploy": {
"dependsOn": ["build", "test", "lint"]
},
"start": {},
"test": {
"dependsOn": ["^build"]
}
}
}