Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@ava/typescript
Advanced tools
Adds rudimentary TypeScript support to AVA.
This is designed to work for projects that precompile TypeScript. It allows AVA to load the compiled JavaScript, while configuring AVA to treat the TypeScript files as test files.
In other words, say you have a test file at src/test.ts
. You've configured TypeScript to output to build/
. Using @ava/typescript
you can run the test using npx ava src/test.ts
.
Add this package to your project:
npm install --save-dev @ava/typescript
Then, enable TypeScript support either in package.json
or ava.config.*
:
package.json
:
{
"ava": {
"typescript": {
"rewritePaths": {
"src/": "build/"
}
}
}
}
Both keys and values of the rewritePaths
object must end with a /
. Paths are relative to your project directory.
Output files are expected to have the .js
extension.
You can configure AVA to recognize additional file extensions. To add (partial†) JSX support:
package.json
:
{
"ava": {
"typescript": {
"extensions": [
"ts",
"tsx"
],
"rewritePaths": {
"src/": "build/"
}
}
}
}
See also AVA's extensions
option.
† Note that the preserve mode for JSX is not (yet) supported.
FAQs
TypeScript provider for AVA
We found that @ava/typescript demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.