
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
broccoli-typescript-compiler
Advanced tools
A Broccoli plugin which compiles TypeScript files.
$ npm install broccoli-typescript-compiler --save-dev
var typescript = require("broccoli-typescript-compiler").default;
var cjsTree = typescript(inputTree, {
tsconfig: {
compilerOptions: {
module: "commonjs",
target: "es5",
moduleResolution: "node",
newLine: "LF",
rootDir: "src",
outDir: "dist",
sourceMap: true,
declaration: true,
},
files: ["src/index.ts", "src/tests/**"],
},
throwOnError: false,
annotation: "compile program",
});
tsconfig:
tsconfig
relative to where the BroccoliTypeScriptCompiler is invoked.annotation:
An optional string, which when provide should be a descriptive annotation. Useful for debugging, to tell multiple instances of the same plugin apart.
throwOnError
An optional boolean, defaulting to false
. If set to true
, will cause the build to break on errors.
note: if process.env.NODE_ENV === 'production'
is true, throwOnError
will default to true
.
This outputs only the emitted files from the compiled program.
const { TypescriptCompiler } = require("broccoli-typescript-compiler");
let compiled = new TypescriptCompiler(input, options);
This outputs only the emitted files from the compiled program.
const { default: typescript } = require("broccoli-typescript-compiler");
let compiled = typescript(src, options);
This selects only ts files from the input to compile and merges emitted files with the non ts files in the input.
const { filterTypescript } = require("broccoli-typescript-compiler");
let output = filterTypescript(input, options);
typescript
git submodule update --init
typescript
in package.json
yarn run generate-tsconfig-interface
vendor/typescript
. cd vendor/typescript && git fetch --tags && git checkout v[new-version-of-typescript]
yarn test
. There may be some changes needed to the tests to accomidate changes in TypeScript.FAQs
A Broccoli plugin which compiles TypeScript files.
The npm package broccoli-typescript-compiler receives a total of 7,099 weekly downloads. As such, broccoli-typescript-compiler popularity was classified as popular.
We found that broccoli-typescript-compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.