fix(test): Fix execution for fake wrangler installation

This commit is contained in:
Adishwar Rishi 2024-05-06 18:00:10 +10:00
parent 992c58e932
commit afaec62104
No known key found for this signature in database
4 changed files with 8 additions and 9 deletions

View file

@ -1,4 +0,0 @@
#!/usr/bin/env node
"use strict";
require("../index");

View file

@ -1,10 +1,13 @@
#!/usr/bin/env node
"use strict";
const args = Array.from(process.argv);
const command = args.pop();
switch (command) {
case "--version":
console.log(
"⛅️ wrangler 1.1.1 (update available 1.2.3)\n" +
"-------------------------------------------------------",
console.log(`
wrangler 1.1.1 (update available 1.2.3)
------------------------------------------`
);
process.exit(0);
case "action-test":

View file

@ -3,5 +3,5 @@
"name": "wrangler",
"version": "1.1.1",
"main": "index.js",
"bin": "bin/wrangler"
"bin": "index.js"
}

View file

@ -14,7 +14,7 @@
"version": "1.1.1",
"dev": true,
"bin": {
"wrangler": "bin/wrangler"
"wrangler": "index.js"
}
},
"node_modules/wrangler": {