@tscircuit/cli 0.0.135 → 0.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,7 +45,7 @@ Run `bun bootstrap` to install dependencies and `bun cli.ts` to run test the cli
45
45
 
46
46
  To run tests, run `bun test`
47
47
 
48
- If you want to test developing, run `bun dev` and visit http://localhost:5173. The project being
48
+ If you want to test developing, run `bun dev` and visit http://127.0.0.1:5173. The project being
49
49
  loaded is inside `example-project`
50
50
 
51
51
  ![image](https://github.com/tscircuit/cli/assets/1910070/cabb180d-a64f-4fe5-a6af-26f990af39b3)
@@ -6,7 +6,7 @@ const serverFetch = await createFetchHandlerFromDir(
6
6
  join(import.meta.dir, "./routes")
7
7
  )
8
8
 
9
- console.log("starting dev-server-api on http://localhost:3021")
9
+ console.log("starting dev-server-api on http://127.0.0.1:3021")
10
10
  Bun.serve({
11
11
  fetch: (bunReq) => {
12
12
  const req = new EdgeRuntimeRequest(bunReq.url, {
@@ -1,7 +1,7 @@
1
1
  import { afterEach } from "bun:test"
2
+ import { tmpdir } from "node:os"
2
3
  import defaultAxios from "redaxios"
3
4
  import { startServer } from "./start-server"
4
- import { tmpdir } from "node:os"
5
5
 
6
6
  interface TestFixture {
7
7
  url: string
@@ -13,7 +13,7 @@ export const getTestFixture = async (): Promise<TestFixture> => {
13
13
  process.env.TSCI_DEV_SERVER_DB = tmpdir() + `/${Math.random()}` + "/devdb"
14
14
  const port = 3001 + Math.floor(Math.random() * 999)
15
15
  const server = startServer({ port })
16
- const url = `http://localhost:${port}`
16
+ const url = `http://127.0.0.1:${port}`
17
17
  const axios = defaultAxios.create({
18
18
  baseURL: url,
19
19
  })
@@ -1,6 +1,6 @@
1
- import { defineConfig } from "vite"
2
1
  import react from "@vitejs/plugin-react"
3
2
  import path from "path"
3
+ import { defineConfig } from "vite"
4
4
 
5
5
  // https://vitejs.dev/config/
6
6
  export default defineConfig({
@@ -10,7 +10,7 @@ export default defineConfig({
10
10
  },
11
11
  server: {
12
12
  proxy: {
13
- "/api": "http://localhost:3021",
13
+ "/api": "http://127.0.0.1:3021",
14
14
  },
15
15
  },
16
16
  optimizeDeps: {