Skip to content

Commit

Permalink
Merge pull request #19628 from apache/release
Browse files Browse the repository at this point in the history
chore: merge release into master
  • Loading branch information
plainheart authored Feb 21, 2024
2 parents 706b74b + 0f4967b commit b9f7809
Show file tree
Hide file tree
Showing 84 changed files with 119,083 additions and 62,922 deletions.
58 changes: 58 additions & 0 deletions KEYS
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,61 @@ ZwAACgkQcVVZuSF9Tlrc4QD/ZDd7OjcT9ShdARjcGoQ0jt6rEqL6n10V6caG+77a
89wA/R+29UlbOXNAxcQHxph8WXUZhACDhKyNETgRsgHysZQJ
=/6bg
-----END PGP PUBLIC KEY BLOCK-----
pub rsa4096 2024-01-31 [SC]
88AF48720040B150083A7D10932517D290673A7B
uid [ 绝对 ] Zhang Wenli <[email protected]>
sig 3 932517D290673A7B 2024-01-31 [自签名]
sub rsa4096 2024-01-31 [E]
sig 932517D290673A7B 2024-01-31 [自签名]

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGW5/b0BEADXtrbzMa25cgPBGA0Zta/gdAO2eW8KThwEr9rbxRMZnlh7PUN5
zxfUn0fbGpQ+GHY5PaMcK350L82Pvz1uTMJDR5frxW/BlTvf83c3YwtjkV+YPk3j
BN0XTe61EDB3ePc9OpXapoSCncobSeyiKVlpSwM+l9omzAWJZ1cKpGHOaVNLV+0c
xz3u4cSKG9t/dGFcsExmI9amVYYMv/Hudrj97aAv1lKBWscxo/x9mxNlbGfaIjhR
3S5BiwKyhSM0CC6pOEGp6HLm3F7dZO/3xF9dCVJEtHtlOchf8umMQMbPH6SSF1lA
MEDmejlE1MIeL+wVyQ3BbvdANwQ0SYBx1o3e3TUuXOIUz2rZahf4YCNmuB62UHXY
IbZ83vC3uRpypIzVsGLe4lSHPsG+fGisJHp8JNeDxAnLv8Sdn89XCp7rgX8KLg8K
Qk4KW0VmwjvxCbQIMssQzP6R5Pq6vOZHCm3Ghsuxx66uSxEG6tBunjjdPMr6oAaa
DwnJE7BmhC76A0fW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iYaUss4IU8rNavrj+mueCFg81YaekxgMOsRRVFxCKPKba0lr55iaPygh
61FtYQxTasEM/4Sm/rF3rmZpktdCv0bRkVOvZ/8+VpHDdhjg6pmzQVNwp9K2xBg0
TI6kmvnT5NfjOm6xOlg0dYbDr+PiLITlSigZ3BF2qJcmJGpJejuX0PRzWPiAWkoI
NW6bo6qDdThmCNuS/FUk/1qyXWebuqTVvxbROomoopak37U5IwZZQ6HMtpHZGz+d
NcCJmTlyNY+xezQj414blwdPgUq4IASLZrCjD9yuO0tUhsNjgHX+R9x7O2Q86ZeN
WOQhgLPyfZrMnGjpjo/2v62Cp7yFZSNo+xtvErtMeaDL/ufAIFbaVkyxwvkW6g==
=YTwy
-----END PGP PUBLIC KEY BLOCK-----
33 changes: 26 additions & 7 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,32 @@ async function run() {
}
else {
const types = buildType.split(',').map(a => a.trim());
const cfgs = types.map(type =>
config.createECharts({
...opt,
type
})
);
await build(cfgs);


// Since 5.5.0, echarts/package.json added `{"type": "module"}`, and added
// echarts/dist/package.json with `{"type": "commonjs"}`, both of which makes
// echarts/dist/echarts.esm.js can not be recognized as esm any more (at least
// in webpack5 and nodejs) any more. So we provides echarts/dist/echarts.esm.mjs.
// But for backward compat, we still provide provides echarts/dist/echarts.esm.js.
const isBuildingDistESM = (opt.format || '').toLowerCase() === 'esm';
if (isBuildingDistESM) {
await makeConfigAndBuild(opt, '.js');
await makeConfigAndBuild(opt, '.mjs');
}
else {
await makeConfigAndBuild(opt);
}

async function makeConfigAndBuild(opt, fileExtension) {
const cfgs = types.map(type =>
config.createECharts({
...opt,
type,
fileExtension
})
);
await build(cfgs);
}
}
}

Expand Down
7 changes: 4 additions & 3 deletions build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function createAddLicensePlugin(sourcemap) {
}
}

function createOutputs(basename, { min }, commonOutputOpts) {
function createOutputs(basename, { min, fileExtension }, commonOutputOpts) {
commonOutputOpts = {
format: 'umd',
...commonOutputOpts
Expand All @@ -59,7 +59,7 @@ function createOutputs(basename, { min }, commonOutputOpts) {
createReplacePlugin('development'),
createAddLicensePlugin(true)
],
file: basename + '.js'
file: basename + (fileExtension || '.js')
}];

if (min) {
Expand All @@ -73,7 +73,7 @@ function createOutputs(basename, { min }, commonOutputOpts) {
terser(),
createAddLicensePlugin(false)
],
file: basename + '.min.js'
file: basename + '.min' + (fileExtension || '.js')
})
}
return output;
Expand All @@ -86,6 +86,7 @@ function createOutputs(basename, { min }, commonOutputOpts) {
* @param {string} [opt.format='umd'] If set, `opt.input` is required too, and `opt.type` is ignored.
* @param {string} [opt.min=false] If build minified output
* @param {boolean} [opt.addBundleVersion=false] Only for debug in watch, prompt that the two build is different.
* @param {string} [opt.fileExtension=undefined] output file extension, default is '.js'. Should start with '.'.
*/
exports.createECharts = function (opt = {}) {
const srcType = opt.type !== 'all' ? '.' + opt.type : '';
Expand Down
2 changes: 1 addition & 1 deletion build/pre-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const transformDEVUtil = require('./transform-dev');
const preamble = require('./preamble');
const dts = require('@lang/rollup-plugin-dts').default;
const rollup = require('rollup');
const { transformImport } = require('zrender/build/transformImport');
const { transformImport } = require('zrender/build/transformImport.js');

const ecDir = nodePath.resolve(__dirname, '..');
const tmpDir = nodePath.resolve(ecDir, 'pre-publish-tmp');
Expand Down
Loading

0 comments on commit b9f7809

Please sign in to comment.