Skip to content
Snippets Groups Projects
Unverified Commit 420f2dde authored by Thuc Pham's avatar Thuc Pham Committed by GitHub
Browse files

Fix: npm script does not run in window machine (#283)

parent afc05168
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ jobs: ...@@ -16,7 +16,7 @@ jobs:
fail-fast: true fail-fast: true
matrix: matrix:
node-version: [18, 20] node-version: [18, 20]
os: [macos-latest] # add windows-latest after timeout issue is fixed (see https://github.com/run-llama/LlamaIndexTS/issues/263) os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
......
...@@ -247,7 +247,7 @@ const installTSTemplate = async ({ ...@@ -247,7 +247,7 @@ const installTSTemplate = async ({
// modify the dev script to use the custom api path // modify the dev script to use the custom api path
packageJson.scripts = { packageJson.scripts = {
...packageJson.scripts, ...packageJson.scripts,
dev: `NEXT_PUBLIC_CHAT_API=${customApiPath} next dev`, dev: `cross-env NEXT_PUBLIC_CHAT_API=${customApiPath} next dev`,
}; };
} }
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
"postcss": "^8.4.32", "postcss": "^8.4.32",
"tailwindcss": "^3.3.6", "tailwindcss": "^3.3.6",
"typescript": "^5.3.2", "typescript": "^5.3.2",
"@types/react-syntax-highlighter": "^15.5.11" "@types/react-syntax-highlighter": "^15.5.11",
"cross-env": "^7.0.3"
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment