1.9.3 • Published 7 days ago
publish-flat v1.9.3
publish-flat
Publish your project flattened. No more dist
in require('project/dist/Options')
.
Prerequisites
Installation
ℹ️ This is a hybrid CommonJS / ESM module.
Run yarn add publish-flat
or npm i publish-flat
.
Description
Here is what it does:
- Copies your dist files together with the other release files into a temporary directory
- Aligns your
package.json
to work with the flattened structure - Publishes your project from the temporary directory (optional)
Example
Before
Directory structure of the published project:
.
├── dist
│ ├── index.d.ts
│ ├── index.js
│ ├── index.js.map
│ ├── Options.d.ts
│ ├── Options.js
│ └── Options.js.map
└── package.json
In other people's code:
import {Options} from 'project/dist/Options';
After
Directory structure of the published project:
.
├── index.d.ts
├── index.js
├── index.js.map
├── Options.d.ts
├── Options.js
├── Options.js.map
└── package.json
In other people's code:
import {Options} from 'project/Options';
Installation
yarn add publish-flat
CLI Usage
Usage: publish-flat [options] [dir]
Publish your project without the dist directory
Options:
-V, --version output the version number
-y, --yarn Use yarn for publishing (default: false)
-f, --flatten <dir> Which directory to flatten (default: "dist")
-o, --output <dir> Set the output directory (default: temp directory)
-p, --publish Publish (default: false)
-h, --help output usage information
API Usage
See cli.ts
.
1.9.3
7 days ago
1.9.2
4 months ago
1.9.1
4 months ago
1.9.0
4 months ago
1.8.9
4 months ago
1.8.10
4 months ago
1.8.8
4 months ago
1.8.7
4 months ago
1.8.2
6 months ago
1.8.1
6 months ago
1.8.0
6 months ago
1.8.6
5 months ago
1.8.5
5 months ago
1.8.4
5 months ago
1.8.3
6 months ago
1.7.1
1 year ago
1.7.0
1 year ago
1.6.1
1 year ago
1.4.5
1 year ago
1.4.4
1 year ago
1.4.3
1 year ago
1.6.0
1 year ago
1.4.2
1 year ago
1.5.0
1 year ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.4
5 years ago
1.3.3
5 years ago
1.3.2
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.4
5 years ago
1.2.3
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.1
5 years ago
0.0.1
5 years ago