
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
TsPackage is a Typescript minifier and modular bundle optimizing compiler.
TsPackage is the replacement for TsProject. This is currently a work in progress. Please continue to use TsProject for now.
TsPackage 1.0.0 supports Typescript 2.x.
TsPackage is the only Typescript 2.0 transpiler that provides minified, single file typescript bundles and javascript bundles for packaging of Typescript, javascript and Typescript definition files. TsPackage bundles file dependencies of external Typescript modules at compilation time rather than relying on build tools (AMD Optimizer, r.js for example ) further down in the build pipeline.
Additional details can be found on the TsProject wiki.
TsPackage supports a "bundles" property within the tsconfig.json project file. The "bundles" property may contain a list of named bundles. Each bundle must provide an array of source files and may optionally specify bundle configuration settings. The Typescript source file and its dependencies are packaged as a single Typescript file and output with the bundle name. The Typescript bundle is compiled to a single js javascript file and a single d.ts declaration file.
The following is a sample tsconfig.json showing the "bundles" property:
{
"compilerOptions": {
"module": "amd",
"target": "es5",
"noResolve": false,
"declaration": true,
"diagnostics": true
},
"files": [
"index.ts",
"page.ts",
"common.ts",
"plugin.ts"
],
"bundles": {
"app": {
"files": [ "index.ts" ]
},
"components": {
"files": [
"page.ts",
"plugin.ts"
],
"config": {
"declaration": true,
"outDir": "./bundles",
"minify": true
}
}
}
}
npm install tspackage
tspackage.build( projectConfigPath: string, settings: any, ( result: BuildResult ) => {
if ( !result.Succeeded() ){
// Handle build errors...
}
else {
// Build succeeded...
}
});
Where:
projectConfigPath is a relative directory path to the default Typescript project file named "tsconfig.json". Or, projectConfigPath is a relative path to a named Typescript project file.
TsPackage depends on NPM as a package manager and Gulp as a build tool. If you haven't already, you'll need to install both these tools in order to build TsPackage.
Once Gulp is installed, you can build it with the following commands:
npm install
gulp build
FAQs
Typescript package minifier and modular typescript bundle optimizer.
The npm package tspackage receives a total of 0 weekly downloads. As such, tspackage popularity was classified as not popular.
We found that tspackage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.