0.1.2 • Published 3 years ago
@zaboco/espm v0.1.2
@zaboco/espm
A package manager for ES modules
| ⚠️ | Experimental | This package is an experiment. It is very limited for now, and have known issues. |
|---|
Installation
It is recommended to install this tool globally
npm i -g @zaboco/espmIt can also be installed locally, of course:
npm i -D @zaboco/espmNote: If you do so, you will have to use
npxto run the commands. E.g.npx espm install react.
Usage
| ⚠️ | WIP | Only adding TS types is available for now |
|---|
Adding TS types
You can add .d.ts files for packages, without installing them with npm. It fetches the files from a CDN. Also fetches imported types, recursively.
espm add <package>[@version]Known issues
- Type reference paths are ignored
/// <reference path="./foo.d.ts" />. In this case./foo.d.tsis not downloaded from the CDN - TS
namespacesyntax is not supported. For example,espm add preactwould fail. - Scoped packages do not work well. E.g.
espm add uvu/assertwill not work as intended.