@latticexyz/abi-ts
Advanced tools
Comparing version 2.0.0-main-7987c94d to 2.0.0-main-7ce82b6f
#!/usr/bin/env node | ||
import{a as r}from"./chunk-7FDMKCOK.js";import o from"yargs";import{hideBin as i}from"yargs/helpers";import e from"chalk";r.command="$0";o(i(process.argv)).scriptName("abi-ts").command(r).strict().fail((a,s)=>{console.error(e.red(a)),a.includes("Missing required argument")&&console.log(e.yellow(`Run 'pnpm abi-ts ${process.argv[2]} --help' for a list of available and required arguments.`)),process.exit(1)}).alias({h:"help"}).argv; | ||
import{a as r}from"./chunk-V5CSSX4G.js";import o from"yargs";import{hideBin as i}from"yargs/helpers";import e from"chalk";r.command="$0";o(i(process.argv)).scriptName("abi-ts").command(r).strict().fail((a,s)=>{console.error(e.red(a)),a.includes("Missing required argument")&&console.log(e.yellow(`Run 'pnpm abi-ts ${process.argv[2]} --help' for a list of available and required arguments.`)),process.exit(1)}).alias({h:"help"}).argv; | ||
//# sourceMappingURL=abi-ts.js.map |
@@ -1,2 +0,2 @@ | ||
import{a}from"./chunk-7FDMKCOK.js";export{a as default}; | ||
import{a}from"./chunk-V5CSSX4G.js";export{a as default}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@latticexyz/abi-ts", | ||
"version": "2.0.0-main-7987c94d", | ||
"version": "2.0.0-main-7ce82b6f", | ||
"description": "Create TypeScript type declaration files (`.d.ts`) for your ABI JSON files.", | ||
@@ -27,2 +27,3 @@ "repository": { | ||
"chalk": "^5.3.0", | ||
"debug": "^4.3.4", | ||
"execa": "^7.0.0", | ||
@@ -33,2 +34,3 @@ "glob": "^8.0.3", | ||
"devDependencies": { | ||
"@types/debug": "^4.1.7", | ||
"@types/glob": "^7.2.0", | ||
@@ -35,0 +37,0 @@ "@types/node": "^18.15.11", |
import type { CommandModule } from "yargs"; | ||
import { readFileSync, writeFileSync } from "fs"; | ||
import glob from "glob"; | ||
import path from "path"; | ||
import { debug } from "./debug"; | ||
@@ -37,3 +37,3 @@ type Options = { | ||
if (json === "[]") { | ||
console.log("Skipping empty ABI file", jsonFilename); | ||
debug("Skipping empty ABI file", jsonFilename); | ||
continue; | ||
@@ -45,3 +45,3 @@ } | ||
console.log("Writing", tsFilename); | ||
debug("Writing", tsFilename); | ||
writeFileSync(tsFilename, ts); | ||
@@ -48,0 +48,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10339
12
78
5
6
+ Addeddebug@^4.3.4
+ Addeddebug@4.3.7(transitive)
+ Addedms@2.1.3(transitive)