![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@sprucelabs/path-resolver
Advanced tools
Enables support for paths in the compiler options of your tsconfig file.
Add runtime support for the compilerOptions.paths
of your tsconfig.json
.
yarn install @sprucelabs/path-resolver
or
npm install @sprucelabs/path-resolver
And include this line at the top of your app:
import "@sprucelabs/path-resolver/register";
That's all!
cwd:string
- Where to start looking for your tsconfig.json. Will look up one directory at a time until it finds one or throws an Error. NOTE: Make sure your tsconfig.json is being bundled with your project when building/deploying.extensions:string[]
- Extensions you want to load, defaults to Module.extensions, must have dot in them .js
, .ts
.{
"compilerOptions": {
"baseUrl": "",
"outDir": "build",
"paths": {
"#alias": ["new/path/relative/to/baseUrl"],
"#aliasWithWildcard/*": ["new/path/one/*", "new/path/two/*"]
}
}
}
import path from "path";
import "@sprucelabs/path-resolver/register";
import MyThing from "#alias";
import { somethingElse } from "#aliasWithWildcard/path/passed/through";
This module works almost exactly the same, but when resolving modules it checks the outDir
first, then falls back to checking the local directory. It also checks for all file extensions.
In other words, path-resolver
works with ts-node
and without and with built projects and without, all with one line of code.
FAQs
Enables support for paths in the compiler options of your tsconfig file.
The npm package @sprucelabs/path-resolver receives a total of 3 weekly downloads. As such, @sprucelabs/path-resolver popularity was classified as not popular.
We found that @sprucelabs/path-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.