New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@playform/build

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@playform/build

🌀 Build —

0.1.3
Source
npm
Version published
Weekly downloads
1.9K
12.14%
Maintainers
0
Weekly downloads
 
Created
Source

🌀 Build —

Builds all your TypeScript files into JavaScript.

Installation

Add configuration and setup scripts:

npm install -D -E @playform/build

Usage

Through a command line run:

npx @playform/build 'Source/**/*.ts'

Help:

Usage: Build [options] <File...>

🌀 Build —

Arguments:
  File                      📝 File —

Options:
  -V, --version             output the version number
  -ES, --ESBuild <File>     📜 ESBuild —
  -TS, --TypeScript <File>  📜 TypeScript — (default: "tsconfig.json")
  -W --Watch                👁️ Watch —
  -h, --help                display help for command

Or in a package.json file:

{
	"scripts": {
		"Run": "Build 'Source/**/*.ts' --Watch",
		"prepublishOnly": "Build 'Source/**/*.ts'"
	}
}

📜 ESBuild Configuration

Or with a custom ESBuild config file:

package.json

{
	"scripts": {
		"prepublishOnly": "Build 'Source/**/*.ts' --ESBuild ESBuild.ts"
	}
}

See an example of a configuration file in ESBuild.ts

📜 TypeScript Configuration

tsconfig.json

{
	"compilerOptions": {
		"outDir": "Target"
	},
	"extends": "@playform/build/tsconfig",
	"include": ["Source"]
}

JSConfig Configuration (optional)

jsconfig.json

{
	"compilerOptions": {
		"outDir": "Target"
	},
	"extends": "@playform/build/jsconfig",
	"include": ["Source"]
}

Keywords

javascript

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts