
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
@goldstack/utils-typescript-references
Advanced tools
Utility for keeping TypeScript references in sync in a Yarn monorepo
This library ensures that project references in TypeScript tsconfig.js
files are automatically kept up to date in a project using Yarn 2 workspaces.
Running this script will:
tsconfig.json
for the "references"
attribute:{
"references": [
{
"path": "workspaces/apps"
},
{
"path": "workspaces/docs"
},
{
"path": "workspaces/templates"
},
{
"path": "workspaces/templates-lib"
}
]
}
"references"
in the tsconfig.json
for all packages in the workspace so that it includes all the packages that it declares as a dependency in package.json
.Install as development dependency using
npm i @goldstack/utils-typescript-references --save-dev
-- or
yarn add -D @goldstack/utils-typescript-references
Add a script to your package.json
{
"scripts": {
"fix-typescript-references": "utils-typescript-references"
}
}
Run the script using
npm run fix-typescript-references
-- or
yarn fix-typescript-references
The following parameters can be passed when invoking the script:
utils-typescript-references --skipPackages
Will skip updating the references
in tsconfig.json
files for all packages in the project.
utils-typescript-references --skipRoot
Will skip updating the references
in the tsconfig.json
file for the project root.
utils-typescript-references --tsConfigName tsconfig.build.json
Will update and reference tsconfig.build.json
files only; tsconfig.json
files are ignored, and packages
with only tsconfig.json
and not tsconfig.build.json
will not have references inserted. This is intended
for monorepos where the tsconfig.build.json
builds the modules that are exported from the package, and thus
should be run when you are building using tsc -b
. In this case the tsconfig.json
can be set up to type
check only (no emit) and have a manually inserted reference to tsconfig.build.json
for running tsc -b
.
utils-typescript-references --tsConfigName tsconfig.build.json --tsConfigName tsconfig.json
This is similar to the above but allows a fallback to referencing / updating tsconfig.json
for some packages
where tsconfig.build.json
is not present (maybe it's not needed as there are no tests to compile separately).
utils-typescript-references --tsConfigName src/tsconfig.json --tsConfigName tsconfig.json
Prefer to reference and update tsconfig.json
inside a src
subfolder rather than at the top
of the package / project.
tsconfig.json
file needs to be a vanilla JSON document (so no comments)If these limitations or anything else are an issues, please raise a ticket in GitHub for the Goldstack Monorepo.
FAQs
Utility for keeping TypeScript references in sync in a Yarn monorepo
The npm package @goldstack/utils-typescript-references receives a total of 1,930 weekly downloads. As such, @goldstack/utils-typescript-references popularity was classified as popular.
We found that @goldstack/utils-typescript-references demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.