port cli/ to ts
This commit is contained in:
parent
f05bb265ac
commit
f76eae2c52
6 changed files with 201 additions and 149 deletions
|
|
@ -107,10 +107,10 @@ module.exports = [
|
|||
mode: 'none',
|
||||
name: 'hyper-cli',
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx', '.json']
|
||||
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json']
|
||||
},
|
||||
devtool: isProd ? 'none' : 'cheap-module-source-map',
|
||||
entry: './cli/index.js',
|
||||
entry: './cli/index.ts',
|
||||
output: {
|
||||
path: path.join(__dirname, 'bin'),
|
||||
filename: 'cli.js'
|
||||
|
|
@ -118,7 +118,7 @@ module.exports = [
|
|||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(js|jsx)$/,
|
||||
test: /\.(js|jsx|ts|tsx)$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'babel-loader'
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue