Skip to content

Commit

Permalink
✨ fix nodejs v22 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
depapp committed Aug 30, 2024
1 parent 8f9e28f commit 8ea7fbf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 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

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

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": "2.4.1",
"description": "pusakatest is an automation testing tool based on pactum using bdd (cucumber) style",
"main": "index.js",
"bin": "bin/create-project",
"type": "module",
"bin": {
"create-project": "bin/create-project.mjs"
},
"publishConfig": {
"access": "public"
},
Expand All @@ -21,7 +24,6 @@
"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';
import { createProject } from './main.js';

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

0 comments on commit 8ea7fbf

Please sign in to comment.