|
3 | 3 | "version": "1.1.0", |
4 | 4 | "license": "MIT", |
5 | 5 | "scripts": { |
| 6 | + "set-env": "ts-node libs/ai-embedded/set-env.mjs", |
6 | 7 | "start": "node dist/apps/api/main.js", |
7 | 8 | "start:dev": "nx run-many --parallel --target=serve --projects=api,spa ", |
8 | 9 | "start:spa": "nx serve spa", |
9 | 10 | "start:api": "nx serve api", |
10 | | - "build": "npm run build:ai-embedded && npm run build:spa && npm run build:api", |
| 11 | + "build": "npm run set-env && npm run build:ai-embedded && npm run build:spa && npm run build:api", |
11 | 12 | "build:spa": "nx build --prod --skip-nx-cache spa", |
12 | 13 | "build:api": "nx build --prod api", |
13 | 14 | "build:openai-assistant": "nx build --prod openai-assistant", |
14 | | - "build:ai-embedded": "nx build --prod ai-embedded --no-cache && npm run cp:ai-embedded", |
| 15 | + "build:ai-embedded": "nx build ai-embedded --prod --skip-nx-cache && npm run cp:ai-embedded", |
15 | 16 | "publish": "npm run build:openai-assistant && npm run cp:readme && cd dist/libs/openai-assistant/ && npm publish --access=public && cd ../../..", |
16 | 17 | "cp:ai-embedded": "cp ./dist/libs/ai-embedded/main.js ./apps/spa/src/assets/js/ai-embedded.js", |
17 | 18 | "cp:readme": "cp ./README.md ./dist/libs/openai-assistant/README.md", |
|
95 | 96 | "@types/node": "20.12.11", |
96 | 97 | "@typescript-eslint/eslint-plugin": "7.8.0", |
97 | 98 | "@typescript-eslint/parser": "7.8.0", |
| 99 | + "dotenv": "^16.4.5", |
98 | 100 | "esbuild": "^0.19.12", |
99 | 101 | "eslint": "8.57.0", |
100 | 102 | "eslint-config-prettier": "^9.0.0", |
|
0 commit comments