Skip to content

Commit

Permalink
[hotfix] Esm module revert back for preventing using cli diretcly
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemkosk committed Dec 10, 2023
1 parent 15c744b commit 8f663c0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 1 addition & 2 deletions bin/index.ts
@@ -1,9 +1,8 @@
#!/usr/bin/node --no-warnings --experimental-specifier-resolution=node
import { Command as CommanderCommand } from 'commander'
import inquirer from 'inquirer'
import inquirerPrompt from 'inquirer-autocomplete-prompt'
import chalk from 'chalk'
import packages from '../package.json' assert { type: 'json' }
import packages from '../package.json'

import CommandFactory from '../lib/command/commandFactory'

Expand Down
3 changes: 3 additions & 0 deletions index.ts
@@ -0,0 +1,3 @@
#!/usr/bin/env node

import('./bin/index')
9 changes: 4 additions & 5 deletions package.json
@@ -1,13 +1,12 @@
{
"name": "envolve",
"version": "1.1.6",
"version": "1.1.7",
"description": "Envolve CLI is a powerful tool for managing environment variables in your projects. It allows you to easily create, update, compare, and sync environment files across different services.",
"main": "bin/index.ts",
"type": "module",
"main": "index.ts",
"scripts": {
"build": "tsc",
"lint": "tsc --noEmit && eslint \"**/*.{js,ts}\" --quiet --fix",
"serve": "node --no-warnings --experimental-specifier-resolution=node dist/bin/index.js",
"serve": "node dist/index.js",
"start": "tsc && npm run serve",
"test": "jest --forceExit --verbose --detectOpenHandles --coverage --coverageReporters=text-summary"
},
Expand Down Expand Up @@ -52,6 +51,6 @@
"typescript": "^5.2.2"
},
"bin": {
"envolve": "./dist/bin/index.js"
"envolve": "./dist/index.js"
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"module": "ESNext",
"module": "commonjs",
"strictNullChecks": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"target": "ES6",
"target": "es6",
"noImplicitAny": true,
"moduleResolution": "node",
"sourceMap": true,
Expand Down

0 comments on commit 8f663c0

Please sign in to comment.