Support a script tag only for the full build

This commit is contained in:
Tim Schaub
2022-08-29 12:17:10 -06:00
parent 1614a27ee1
commit 8a9bf4ac7a
3 changed files with 3 additions and 40 deletions

View File

@@ -5,8 +5,8 @@ import {fileURLToPath} from 'url';
const baseDir = dirname(fileURLToPath(import.meta.url));
const buildDir = path.resolve(baseDir, '../build/ol');
const fullBuildSource = path.resolve(baseDir, '../build/full/ol.cjs');
const fullBuildDest = path.join(buildDir, 'dist/index.cjs');
const fullBuildSource = path.resolve(baseDir, '../build/full/ol.js');
const fullBuildDest = path.join(buildDir, 'dist/index.js');
async function main() {
const pkg = await fse.readJSON(path.resolve(baseDir, '../package.json'));