Skip to content

Commit 313b395

Browse files
committed
🎉 Fixed && Published! #22
1 parent 5164d4e commit 313b395

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/create-ts-api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "create-ts-api",
3-
"version": "1.6.5",
3+
"version": "1.7.0",
44
"description": "A utility command to setup nodejs TS api",
55
"main": "index.js",
6+
"type": "module",
67
"repository": {
78
"type": "git",
89
"url": "git+https://github.com/bineetNaidu/create-ts-api.git"

packages/create-ts-api/src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env node
22

3-
const chalk = require('chalk');
4-
const execSync = require('child_process').execSync;
5-
const fs = require('fs-extra');
6-
const path = require('path');
7-
const inquirer = require('inquirer');
8-
const simpleGit = require('simple-git');
3+
import chalk from 'chalk';
4+
import { execSync } from 'child_process';
5+
import fs from 'fs-extra';
6+
import path from 'path';
7+
import inquirer from 'inquirer';
8+
import simpleGit from 'simple-git';
99

1010
inquirer
1111
.prompt([

0 commit comments

Comments
 (0)