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 498fa1e commit 057ac55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "pusakatest",
"version": "2.4.1",
"description": "pusakatest is an automation testing tool based on pactum using bdd (cucumber) style",
"type": "module",
"main": "index.js",
"bin": "bin/create-project",
"publishConfig": {
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 057ac55

Please sign in to comment.