unisolution-create-app 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const { program } = require('commander')
4
- const figlet = require('figlet')
5
- const inquirer = require('inquirer')
3
+ import { program } from 'commander';
4
+ import figlet from 'figlet';
5
+ import inquirer from 'inquirer';
6
+ import fs from 'fs-extra';
7
+ import path from 'path';
8
+ import gitClone from 'git-clone';
9
+ import ora from 'ora';
6
10
 
7
- const fs = require('fs-extra')
8
- const path = require('path')
9
- const gitClone = require('git-clone');
10
- const ora = require('ora');
11
11
  // 首航提示
12
12
  program.name('runcli').usage('<command> [options]')
13
13
 
14
14
  // 版本
15
- program.version(`${require('../package.json')['version']}`)
15
+ program.version(`${import('../package.json')['version']}`)
16
16
 
17
17
  // 命令
18
18
  program