🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@geoblocks/recast-utils

Package Overview
Dependencies
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geoblocks/recast-utils

Recast utilities

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
0
-100%
Maintainers
6
Weekly downloads
 
Created
Source

Recast utilities

Fix typescript paths

The Typescript convention is to write js imports without their extension: '.js'. This script rewrites the imports/exports paths so that they resolve to actual files. This is useful to ensure the files are usable without a bundler (direct node imports, import maps, ...).

node @geoblocks/recast-utils/fix_paths transpiled_dir

This can be used in your package.json prepare script:

{
  "scripts": {
    "prepare": "tsc --pretty && node node_modules/@geoblocks/recast-utils/fix_paths lib"
  }
}

Keywords

recast

FAQs

Package last updated on 31 Jan 2024

Did you know?

Socket

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.

Install

Related posts