mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
12 lines
336 B
JavaScript
12 lines
336 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const srcFile = path.join(__dirname, 'src', 'index.js');
|
|
const distDir = path.join(__dirname, 'dist');
|
|
|
|
if (!fs.existsSync(distDir)) {
|
|
fs.mkdirSync(distDir);
|
|
}
|
|
fs.copyFileSync(srcFile, path.join(distDir, 'index.js'));
|
|
fs.copyFileSync(srcFile, path.join(distDir, 'index.mjs'));
|