mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-15 07:00:00 +08:00
14 lines
299 B
JavaScript
14 lines
299 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)
|
|
} |