You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,7 +27,19 @@ deno run --allow-read --allow-write src/typesharp-ts/main.ts \
25
27
Or use a config file:
26
28
27
29
```bash
28
-
deno run --allow-read --allow-write src/typesharp-ts/main.ts --config "./typesharp.json"
30
+
deno run -A src/main.ts --config "./typesharp.json"
31
+
```
32
+
33
+
With node (tsx):
34
+
35
+
```bash
36
+
npx tsx src/main.ts
37
+
```
38
+
39
+
With node (build the project then run with node)
40
+
41
+
```bash
42
+
npm run build && node ./dist/main.js
29
43
```
30
44
31
45
When `--config` is not provided, TypeSharp reads `typesharp.json` from the current folder if it exists. Command-line options override config file values.
@@ -84,22 +98,11 @@ Create `typesharp.json`:
84
98
}
85
99
```
86
100
87
-
Run with the default config path:
88
-
89
-
```bash
90
-
deno run --allow-read --allow-write src/typesharp-ts/main.ts
91
-
```
92
-
93
-
Run with a custom config path:
94
-
95
-
```bash
96
-
deno run --allow-read --allow-write src/typesharp-ts/main.ts --config "./config/tssharp.json"
97
-
```
98
101
99
102
Override config values from the command line:
100
103
101
104
```bash
102
-
deno run --allow-read --allow-write src/typesharp-ts/main.ts \
105
+
deno run -A src/main.ts \
103
106
--config "./config/tssharp.json" \
104
107
--dictionary-style record \
105
108
--readonly-properties \
@@ -184,20 +187,8 @@ export * from "./Person";
184
187
185
188
## Development
186
189
187
-
Format:
188
-
189
-
```bash
190
-
deno fmt src/typesharp-ts
191
-
```
192
-
193
-
Lint:
194
-
195
-
```bash
196
-
deno lint src/typesharp-ts
197
-
```
198
-
199
190
Test:
200
191
201
192
```bash
202
-
deno test --allow-read --allow-write src/typesharp-ts
0 commit comments