diff --git a/resources/build-npm.js b/resources/build-npm.js index 03e16a39..a3a9217e 100644 --- a/resources/build-npm.js +++ b/resources/build-npm.js @@ -61,7 +61,10 @@ function buildPackageJSON() { if (preReleaseTag != null) { const [tag] = preReleaseTag.split('.'); - assert(['alpha', 'beta', 'rc'].includes(tag), `"${tag}" tag is supported.`); + assert( + tag.startsWith('experimental-') || ['alpha', 'beta', 'rc'].includes(tag), + `"${tag}" tag is supported.`, + ); assert(!packageJSON.publishConfig, 'Can not override "publishConfig".'); packageJSON.publishConfig = { tag: tag || 'latest' };