mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-25 07:08:58 +08:00
14 lines
305 B
JavaScript
14 lines
305 B
JavaScript
const { switchVersion } = require('./utils');
|
|
|
|
const version = process.argv[2];
|
|
|
|
if (version == '2') {
|
|
switchVersion(2);
|
|
} else if (version == '3') {
|
|
switchVersion(3);
|
|
} else {
|
|
console.warn(
|
|
`[vue-office] expecting version "2" or "3" but got "${version}"`
|
|
);
|
|
process.exit(1);
|
|
} |