![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@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.
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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.