jexpt
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

Jexpt - JS Export Tool

Through this tool, You can export your project like:

// index.js
require('jexpt')(exports, require).merge(
  'lib/ooo',
  'xxx',
).pack(
  { bar: 'lib/bar' },
  'foo',
);
// index.d.ts
export * from './lib/ooo'
export * from './xxx'
export * as bar from './lib/bar'
export * as foo from './foo'

Besides, there is another way to export, which packaging tools understand:

// index.js
require('jexpt')(
  exports,
  require('./lib/ooo'),
  require('./xxx'),
  {
    bar: require('./lib/bar'),
    foo: require('./foo'),
  }
);

Readme

Keywords

Package Sidebar

Install

npm i jexpt

Weekly Downloads

4

Version

1.2.4

License

MIT

Unpacked Size

3.79 kB

Total Files

5

Last publish

Collaborators

  • e0selmy4v