
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@fmtk/ts-build
Advanced tools
Build several typescript projects in a monorepo together using Typescript's build mode and project references.
USAGE
ts-build [ts-build-options] <folders...> [tsc-options...]
ARGUMENTS
ts-build-options
-d, --define name=value Define a constant that will be inserted into the
build when ts-build is run.
-e, --env name1,name2 Copy the given environment variables to the build
constants file.
folders
A list of folders containing typescript packages. Each folder must either
contain a package.json, or contain folders which contain package.json files.
tsc-options
Options to pass to tsc.
BUILD CONSTANTS
Build constants can be defined using the `-d` or `--define` options. The
argument for the option should be `key=value` format. The program will output
a file called `constants.build.json` in the root of each package, which can
be added to the gitignore.
The tool will collect all packages reachable in the first or second level of each folder specified and generate tsconfig.json files with appropriate references sections.
Given the following structure:
packages/
componentA/
package.json
tsconfig.json
componentB/
package.json
tsconfig.json
componentC/
package.json
tsconfig.json
apps/
api/
package.json
tsconfig.json
tool/
package.json
A useful command line could be:
$ ts-build package/ apps/api -w
This will create tsconfig.build.ts files in componentA, componentB, componentC and apps/api using project references discovered from the respective package.json files, and also in the root with references to all reached packages. It will then run tsc -b tsconfig.build.json and passing any options supplied.
FAQs
Builds typescript packages
We found that @fmtk/ts-build demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.