Skip to content

Commit

Permalink
Revert "✨ fix nodejs v22 issue"
Browse files Browse the repository at this point in the history
This reverts commit 8ea7fbf.
  • Loading branch information
depapp committed Aug 30, 2024
1 parent 8ea7fbf commit 498fa1e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bin/create-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node

import { cli } from '../src/cli.js';
cli(process.argv);
require = require('esm')(module /*, options*/);
require('../src/cli.js').cli(process.argv);
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"version": "2.4.1",
"description": "pusakatest is an automation testing tool based on pactum using bdd (cucumber) style",
"main": "index.js",
"type": "module",
"bin": {
"create-project": "bin/create-project.mjs"
},
"bin": "bin/create-project",
"publishConfig": {
"access": "public"
},
Expand All @@ -24,6 +21,7 @@
"arg": "^4.1.0",
"chalk": "^2.4.2",
"clear": "^0.1.0",
"esm": "^3.2.25",
"execa": "^1.0.0",
"figlet": "^1.5.2",
"inquirer": "^6.2.2",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import arg from 'arg';
import inquirer from 'inquirer';
import { createProject } from './main.js';
import { createProject } from './main';

function parseArgumentsIntoOptions(rawArgs) {
const args = arg(
Expand Down

0 comments on commit 498fa1e

Please sign in to comment.