|
3 | 3 | "type": "module",
|
4 | 4 | "scripts": {
|
5 | 5 | "lint": "eslint --ext .js,.ts .",
|
6 |
| - "build": "esbuild src/index.ts --bundle --platform=node --outfile=lib/index.js --format=esm --external:./node_modules/* --packages=external", |
7 |
| - "dev:tsc": "tsc --watch --preserveWatchOutput", |
8 |
| - "dev:node": "firebase emulators:start --only functions", |
9 |
| - "dev:esbuild": "npm run build --watch", |
10 |
| - "dev": "run-p dev:*", |
| 6 | + "build": "run-s build:tsc build:esbuild", |
| 7 | + "build:esbuild": "esbuild src/index.ts --bundle --platform=node --outfile=lib/index.js --format=esm --external:./node_modules/* --packages=external", |
| 8 | + "build:tsc": "tsc", |
| 9 | + "build:watch": "run-p 'build:tsc -- --watch --preserveWatchOutput' 'build:esbuild -- --watch'", |
| 10 | + "dev": "run-p build:watch dev:*", |
| 11 | + "dev:emulators": "firebase emulators:start --only functions,storage,database", |
11 | 12 | "serve": "npm run build && firebase emulators:start --only functions,storage,database",
|
12 | 13 | "shell": "npm run build && firebase functions:shell",
|
13 | 14 | "start": "npm run shell",
|
14 | 15 | "deploy": "firebase deploy --only functions",
|
15 |
| - "test": "firebase emulators:exec --only storage,database 'npx jest'", |
16 |
| - "test:watch": "firebase emulators:exec --only storage,database 'npx jest --watch'", |
| 16 | + "test": "run-s build test:jest", |
| 17 | + "test:jest": "firebase emulators:exec --only functions,storage,database 'npx jest'", |
| 18 | + "test:jest:watch": "firebase emulators:exec --ui --only functions,storage,database 'npx jest --watch'", |
| 19 | + "test:watch": "run-p build:watch test:jest:watch", |
17 | 20 | "logs": "firebase functions:log"
|
18 | 21 | },
|
19 | 22 | "main": "lib/index.js",
|
|
33 | 36 | "youtubei.js": "^9.4.0"
|
34 | 37 | },
|
35 | 38 | "devDependencies": {
|
| 39 | + "@types/express": "^4.17.21", |
| 40 | + "@types/jest": "^29.5.12", |
36 | 41 | "@typescript-eslint/eslint-plugin": "^5.12.0",
|
37 | 42 | "@typescript-eslint/parser": "^5.12.0",
|
38 | 43 | "esbuild": "^0.21.5",
|
|
0 commit comments