
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@astropub/config-to-alias
Advanced tools
Add aliasing support to Astro, JavaScript, TypeScript, and CSS files from tsconfig.json or jsconfig.json
Config to Alias adds aliasing support to Astro, JavaScript, TypeScript, and CSS files.
Install Config to Alias.
npm install @astropub/config-to-alias
Add Config to Alias to your astro.config.js
.
import { defineConfig } from 'astro/config'
import configToAlias from '@astropub/config-to-alias/astro'
export default defineConfig({
integrations: [
configToAlias()
]
})
That’s it!
Now, any aliases added to tsconfig.json
or jsconfig.json
...
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"src:*": ["src/*"]
}
}
}
... can be used in JavaScript, TypeScript, and Astro files ...
import * as utils from 'src:scripts/utils.astro'
... and CSS files, too!
@import 'src:styles/shared.css'
Add Config to Alias to your vite.config.js
.
import { defineConfig } from 'vite'
import configToAlias from '@astropub/config-to-alias/vite'
export default defineConfig({
plugins: [
configToAlias()
]
})
This integration exists as a standalone version of the vite-plugin-config-alias
plugin built into Astro with additional support for CSS. At the time of writing, Astro has not added this functionality to core because my contributions are currently banned from being used in the project. As they do not yet have any process to appeal a ban, this plugin serves as a crutch.
FAQs
Add aliasing support to Astro, JavaScript, TypeScript, and CSS files from tsconfig.json or jsconfig.json
The npm package @astropub/config-to-alias receives a total of 8 weekly downloads. As such, @astropub/config-to-alias popularity was classified as not popular.
We found that @astropub/config-to-alias 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.