File tree Expand file tree Collapse file tree 7 files changed +16
-12
lines changed Expand file tree Collapse file tree 7 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1414 "postinstall" : " yarn symlink"
1515 },
1616 "devDependencies" : {
17- "@types/jest-in-case" : " ^1.0.2" ,
1817 "@types/jest" : " ^29.5.11" ,
18+ "@types/jest-in-case" : " ^1.0.2" ,
1919 "@types/mkdirp" : " 1.0.2" ,
2020 "@types/node" : " ^20.12.7" ,
2121 "@typescript-eslint/eslint-plugin" : " ^7.10.0" ,
2222 "@typescript-eslint/parser" : " ^7.10.0" ,
2323 "copyfiles" : " ^2.4.1" ,
24+ "eslint" : " ^8.56.0" ,
2425 "eslint-config-prettier" : " ^9.1.0" ,
2526 "eslint-plugin-simple-import-sort" : " ^12.1.0" ,
2627 "eslint-plugin-unused-imports" : " ^4.0.0" ,
27- "eslint" : " ^8.56.0" ,
2828 "glob" : " 8.0.3" ,
29- "jest-in-case" : " ^1.0.2" ,
3029 "jest" : " ^29.6.2" ,
30+ "jest-in-case" : " ^1.0.2" ,
3131 "lerna" : " ^6" ,
3232 "mkdirp" : " 1.0.2" ,
3333 "prettier" : " ^3.0.2" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import dargs from 'dargs';
33import * as shell from 'shelljs' ;
44
55import { prompt } from '../utils/prompt' ;
6+
67const glob = require ( 'glob' ) . sync ;
78const fs = require ( 'fs' ) ;
89const path = require ( 'path' ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { readFileSync } from 'fs';
33
44import { cli } from './cli' ;
55import { prompt } from './utils/prompt' ;
6+
67const argv = require ( 'minimist' ) ( process . argv . slice ( 2 ) ) ;
78
89const question = [
Original file line number Diff line number Diff line change 44 RenderContext ,
55 RenderContextBase ,
66 RenderOptions ,
7- UtilMapping } from '@cosmwasm/ts-codegen-ast' ;
7+ UtilMapping
8+ } from '@cosmwasm/ts-codegen-ast' ;
89import { pascal } from 'case' ;
910
1011import { BuilderFileType } from '../builder' ;
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22import { cli } from './cli' ;
3+
34let argv = require ( 'minimist' ) ( process . argv . slice ( 2 ) ) ;
45
56( async ( ) => {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { filter } from 'fuzzy';
33import { prompt as inquirerer } from 'inquirerer' ;
44
55export const getFuzzySearch = ( list ) => {
6- return ( answers , input ) => {
6+ return ( _answers , input ) => {
77 input = input || '' ;
88 return new Promise ( function ( resolve ) {
99 setTimeout ( function ( ) {
@@ -19,16 +19,16 @@ export const getFuzzySearch = (list) => {
1919} ;
2020
2121export const getFuzzySearchNames = ( nameValueItemList ) => {
22- const list = nameValueItemList . map ( ( { name, value } ) => name ) ;
23- return ( answers , input ) => {
22+ const list = nameValueItemList . map ( ( { name, value : _value } ) => name ) ;
23+ return ( _answers , input ) => {
2424 input = input || '' ;
2525 return new Promise ( function ( resolve ) {
2626 setTimeout ( function ( ) {
2727 const fuzzyResult = filter ( input , list ) ;
2828 resolve (
2929 fuzzyResult . map ( function ( el ) {
3030 return nameValueItemList . find (
31- ( { name, value } ) => el . original == name
31+ ( { name, value : _value } ) => el . original == name
3232 ) ;
3333 } )
3434 ) ;
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { sync as glob } from 'glob';
77import { cleanse } from './cleanse' ;
88import { parser } from './parse' ;
99interface ReadSchemaOpts {
10- schemaDir : string ;
11- clean ?: boolean ;
10+ schemaDir : string ;
11+ clean ?: boolean ;
1212} ;
1313
1414export const readSchemas = async ( {
@@ -39,8 +39,8 @@ export const readSchemas = async ({
3939
4040 const idlObject : Partial < IDLObject > = schemas [ 0 ] as Partial < IDLObject > ;
4141 const {
42- contract_name,
43- contract_version,
42+ // contract_name,
43+ // contract_version,
4444 idl_version,
4545 responses,
4646 instantiate,
You can’t perform that action at this time.
0 commit comments