Skip to content

Commit ff42de6

Browse files
committed
TSConfig Italian translation: outDir.md
1 parent 94e27da commit ff42de6

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

docs/tsconfig/it/options/outDir.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
display: "Out Dir"
3+
oneline: "Imposta una directory di output per tutti i file generati."
4+
---
5+
6+
Se viene specificato, i file `.js` (così come `.d.ts`, `.js.map`, etc.) verrano emessi in questa directory.
7+
E' preservata la struttura della directory dei file sorgente originali; controlla [rootDir](#rootDir) se
8+
la root elaborata non è quella che quella che intendevi.
9+
10+
Se non specificato, i file `.js` verranno emessi nella stessa directory dei file `.ts` da cui
11+
sono stati generati:
12+
13+
```sh
14+
$ tsc
15+
16+
esempio
17+
├── index.js
18+
└── index.ts
19+
```
20+
21+
Con un `tsconfig.json`così:
22+
23+
```json tsconfig
24+
{
25+
"opzioniCompilatore": {
26+
"outDir": "dist"
27+
}
28+
}
29+
```
30+
31+
Eseguendo `tsc` con queste opzioni si andrà a spostare i file nella cartella `dist` specificata:
32+
33+
```sh
34+
$ tsc
35+
36+
esempio
37+
├── dist
38+
│ └── index.js
39+
├── index.ts
40+
└── tsconfig.json
41+
```

0 commit comments

Comments
 (0)