mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-24 01:01:06 +01:00
build: add start script
This commit is contained in:
parent
7c63c373c1
commit
e522324196
2 changed files with 25 additions and 23 deletions
|
@ -6,7 +6,8 @@
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node scripts/build.mjs",
|
"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": {
|
"devDependencies": {
|
||||||
"esbuild": "^0.15.11",
|
"esbuild": "^0.15.11",
|
||||||
|
|
45
turbo.json
45
turbo.json
|
@ -1,24 +1,25 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://turbo.build/schema.json",
|
"$schema": "https://turbo.build/schema.json",
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"build": {
|
"build": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": ["dist"]
|
"outputs": ["dist"]
|
||||||
},
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"outputs": ["dist"]
|
"outputs": ["dist"]
|
||||||
},
|
},
|
||||||
"dev:tunnel": {
|
"dev:tunnel": {
|
||||||
"outputs": ["dist"]
|
"outputs": ["dist"]
|
||||||
},
|
},
|
||||||
"preview": {
|
"preview": {
|
||||||
"outputs": ["dist"]
|
"outputs": ["dist"]
|
||||||
},
|
},
|
||||||
"deploy": {
|
"deploy": {
|
||||||
"dependsOn": ["build", "test", "lint"]
|
"dependsOn": ["build", "test", "lint"]
|
||||||
},
|
},
|
||||||
"test": {
|
"start": {},
|
||||||
"dependsOn": ["^build"]
|
"test": {
|
||||||
}
|
"dependsOn": ["^build"]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue