@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 +1 -1
- package/dev-server-api/server.ts +1 -1
- package/dev-server-api/tests/fixtures/get-test-server.ts +2 -2
- package/dev-server-frontend/vite.config.ts +2 -2
- package/dist/cli.js +66 -62
- package/example-project/README.md +1 -1
- package/lib/cmd-fns/dev/index.ts +14 -15
- package/lib/cmd-fns/dev-server-fulfill-export-requests.ts +5 -5
- package/lib/cmd-fns/dev-server-upload.ts +5 -6
- package/lib/cmd-fns/init/get-generated-readme.ts +1 -1
- package/lib/param-handlers/interact-for-registry-url.ts +1 -2
- package/lib/util/create-context-and-run-program.ts +5 -0
- package/package.json +1 -1
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://
|
|
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
|

|
package/dev-server-api/server.ts
CHANGED
|
@@ -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://
|
|
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://
|
|
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://
|
|
13
|
+
"/api": "http://127.0.0.1:3021",
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
optimizeDeps: {
|