Ship a metadata in the esm folder which can help the webpack plugin

This commit is contained in:
Alex Dima 2021-12-09 23:55:04 +01:00
parent e77825074d
commit 0abbb2be7d
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
10 changed files with 302 additions and 818 deletions

View file

@ -19,6 +19,7 @@ const { REPO_ROOT, removeDir, readFiles, writeFiles } = require('../build/utils'
const ts = require('typescript');
/**@type { IMetadata } */
const metadata = require('../metadata.js');
const { generateMetadata } = require('./releaseMetadata');
removeDir(`release`);
@ -37,6 +38,9 @@ releaseDTS();
// ThirdPartyNotices.txt
releaseThirdPartyNotices();
// esm/metadata.d.ts, esm/metadata.js
generateMetadata();
// package.json
(() => {
const packageJSON = readFiles('package.json', { base: '' })[0];