deno-module-extension-resolver

1.0.0 • Public • Published

deno-module-extension-resolver

Ubuntu Release Engine License

Resolves module extensions in import / export from.

This is a NPM package for Deno.

Install

npm i deno-module-extension-resolver

Usage

deno-module-extension-resolver SRC_DIR DST_DIR
  • resolves module extensions in .ts / .js files
  • directory structure is keeped
  • destination directories will be created if not exist

Example

// will be resolved
import "/absolute/path/to/module";
import foo from "./relative/path";
import * as bar from "/named/export";
export * from "/export/aggregation";
export {baz, qux} from "/export/aggregation";

// will NOT be resolved
import "/already/resolved.ts";
import "/files/to/resolve/not/exists";
import "neither/absolute/nor/relative";
import "https://example.com/not/file/path";
require("/deno/does/not/support/require");

Changelog

See CHANGELOG.md.

Readme

Keywords

none

Package Sidebar

Install

npm i deno-module-extension-resolver

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

12.6 kB

Total Files

6

Last publish

Collaborators

  • shimataro