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 args = Array.from(process.argv);
const command = args.pop(); const command = args.pop();
switch (command) { switch (command) {
case "--version": case "--version":
console.log( console.log(`
"⛅️ wrangler 1.1.1 (update available 1.2.3)\n" + wrangler 1.1.1 (update available 1.2.3)
"-------------------------------------------------------", ------------------------------------------`
); );
process.exit(0); process.exit(0);
case "action-test": case "action-test":

View file

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

View file

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