Hi all, Does anyone use `TypeScript` for non-main...
# suitescript
p
Hi all, Does anyone use
TypeScript
for non-maintained projects? E.g. maintainer is 3rd party like Support. Would you recommend this approach? Did you provide TS source code somewhere in File Cabinet or other location? Any ideas are highly appreciated.
m
I don't save compiled files to git, I save only Ts Files
p
I'm afraid Git is out of question for publicly shared source code. Imagine n 3rd parties requiring access to client's Git...
m
I don't store ts files in a FileCabinet but you can organize it, you just need to provide the build as well so that there are no problems with the build
Copy code
.root
/FileCabinet
  /OutputJS
     /Suitelet
     /Restlet
     ...
/SourceTS
  /Suitelet
  /Restlet
  /...
package.json (for build process) 
tsconfig.json
Copy code
{
    "compilerOptions": {
        "outDir": "./FileCabinet/OutputJS",
        "rootDir": "./Source",
        "allowJs": false,
        "target": "ES2019",
        "module": "amd",
        "moduleResolution": "node",
        "newLine": "LF",
        "experimentalDecorators": true,
        "noImplicitUseStrict": true,
        "lib": ["es7", "es2015.promise", "dom"],
        "paths": {
            "N": ["./node_modules/@hitc/netsuite-types/N"],
            "N/*": ["./node_modules/@hitc/netsuite-types/N/*"],
        },
    },
    "include": ["./Source"],
    "exclude": ["./node_modules"]
}