@insurgent/export-map-test

1.0.1 • Public • Published

@insurgent/export-map-test

Package that exposes various entry points via package.json's exports field for testing purposes.

Each file contains specific content to be able to test the loaded module value.

npm i --save-dev @insurgent/export-map-test

Conditions:

  • @insurgent/export-map-test: should import ./main.js
  • @insurgent/export-map-test/simple: should import ./simple.js
  • @insurgent/export-map-test/conditional: should import one file in ./conditional, depending on your criteria
  • @insurgent/export-map-test/wildcard/css.css: should succeed (as should js.js and svg.svg)
  • @insurgent/export-map-test/wildcard-js/one: should only be able to import any .js file without the extension (one, two, three)
  • @insurgent/export-map-test/wildcard-js/css: should fail (as should svg)
  • @insurgent/export-map-test/package.json: should succeed
  • @insurgent/export-map-test/README.md: should fail

Readme

Keywords

none

Package Sidebar

Install

npm i @insurgent/export-map-test

Weekly Downloads

49

Version

1.0.1

License

MIT

Unpacked Size

4.02 kB

Total Files

19

Last publish

Collaborators

  • sheerlox