Skip to content

Commit da86f64

Browse files
author
Shubham Goyal
committed
docs: clarify TypeScript deployment wording
Update project help and README text to state that TypeScript files are deployed to Salesforce, while local compile is used for validation. Made-with: Cursor
1 parent 055d291 commit da86f64

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,8 @@ FLAG DESCRIPTIONS
859859
860860
Sets the default language for Lightning Web Components in this project. When set to 'typescript', generates
861861
TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware
862-
ESLint config). TypeScript projects compile locally to a dist/ folder for validation, but deploy raw .ts files to
863-
Salesforce for server-side type stripping. Defaults to 'javascript'.
862+
ESLint config). TypeScript files are compiled locally for validation, and the TypeScript (.ts) files are deployed
863+
to Salesforce for server-side type stripping. Defaults to 'javascript'.
864864
```
865865

866866
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/project/index.ts)_

messages/project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ Language of the Lightning Web Components. Default is "javascript".
104104

105105
# flags.lwc-language.description
106106

107-
Sets the default language for Lightning Web Components in this project. When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). TypeScript files are compiled in-place to JavaScript, and the compiled JavaScript files are deployed to Salesforce. If not specified, the project uses JavaScript.
107+
Sets the default language for Lightning Web Components in this project. When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). TypeScript files are compiled locally for validation, and the TypeScript (`.ts`) files are deployed to Salesforce for server-side type stripping. If not specified, the project uses JavaScript.

0 commit comments

Comments
 (0)