Skip to content

Commit 0870ebe

Browse files
committed
Fix missing ESM build in npm package
1 parent 4638b78 commit 0870ebe

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/guide/getting-started.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ You can download the latest version of `chartjs-plugin-datalabels` from the [Git
3535

3636
- `chartjs-plugin-datalabels.js` (recommended for development)
3737
- `chartjs-plugin-datalabels.min.js` (recommended for production)
38-
- `chartjs-plugin-datalabels.zip` (contains `.js` and `.min.js` versions)
38+
- `chartjs-plugin-datalabels.esm.js`
39+
- `chartjs-plugin-datalabels.tgz` (contains all builds)
40+
- `chartjs-plugin-datalabels.zip` (contains all builds)
3941

4042
## Integration
4143

scripts/attach-gh-assets.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const TAG = `v${pkg.version}`;
1010
const ASSETS = [
1111
`dist/${pkg.name}.js`,
1212
`dist/${pkg.name}.min.js`,
13+
`dist/${pkg.name}.esm.js`,
1314
`dist/${pkg.name}.tgz`,
1415
`dist/${pkg.name}.zip`,
1516
];

scripts/create-release-tag.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const TAG = `v${pkg.version}`;
77
const TAG_FILES = [
88
`dist/${pkg.name}.js`,
99
`dist/${pkg.name}.min.js`,
10+
`dist/${pkg.name}.esm.js`,
1011
'bower.json',
1112
];
1213

0 commit comments

Comments
 (0)