Skip to content

geoblocks/recast-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
  }
}

Releases

No releases published

Packages

No packages published