suite-ops
v1.1.0
Published
Compile SuiteScript files and upload to NetSuite
Maintainers
Readme
Suite-Ops
A command-line tool for compiling TypeScript files for NetSuite SuiteScript and uploading them to NetSuite.
This is a work in progress, contributions and feedback are welcome.
Installation
npm install -g suite-opsUsage
Command Line
suite-ops path/to/your/file.tsThis will:
- Run Biome formatting on your TypeScript file
- Compile the TypeScript file using your project's tsconfig.json
- Upload the compiled JavaScript file to NetSuite
Programmatic Usage
import { compile } from 'suite-ops';
// Compile and upload a file
compile('path/to/your/file.ts')
.then(() => {
console.log('Compilation and upload successful');
})
.catch((error) => {
console.error('Error:', error);
});Requirements
- Node.js 14 or higher
- A valid NetSuite account and SuiteCloud CLI setup
- TypeScript project with a valid tsconfig.json
License
ISC
Author
Ben Bahrman
