Skip to content

Commit

Permalink
Update deps (#146)
Browse files Browse the repository at this point in the history
* bump yarn

* update deps

* update deps

* bump version
  • Loading branch information
xlc authored Jun 13, 2023
1 parent c52e3f4 commit 01fbf1c
Show file tree
Hide file tree
Showing 9 changed files with 3,026 additions and 10,667 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.eslintrc.js
node_modules/
63 changes: 30 additions & 33 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
const base = require('@open-web3/dev-config/config/eslint.cjs');

module.exports = {
...base,
ignorePatterns: [
'.eslintrc.js',
'.github/**',
'.vscode/**',
'.yarn/**',
'**/lib/*',
'**/bin/**',
'**/build/*',
'**/coverage/*',
'**/node_modules/*'
root: true,
parser: '@typescript-eslint/parser',
parserOptions: { project: 'tsconfig.json' },
plugins: ['@typescript-eslint', 'import', 'sort-imports-es6-autofix'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:import/recommended',
'plugin:import/typescript',
],
parserOptions: {
...base.parserOptions,
project: ['./tsconfig.json'],
},
rules: {
...base.rules,
'@typescript-eslint/indent': 'off',
'space-before-function-paren': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-useless-constructor': 'off',
'no-unused-expressions': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'comma-dangle': 'off',
'dot-notation': 'off',
'no-useless-call': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/ban-types': 'warn',
'sort-imports-es6-autofix/sort-imports-es6': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-floating-promises': ['error'],
},
settings: {
'import/resolver': {
typescript: {
project: 'tsconfig.json',
},
},
},
};
};
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.yarn
*.yml
*.md
873 changes: 0 additions & 873 deletions .yarn/releases/yarn-3.4.1.cjs

This file was deleted.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.4.1.cjs
yarnPath: .yarn/releases/yarn-3.6.0.cjs
31 changes: 22 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-web3/parachain-launch",
"version": "1.3.0",
"version": "1.4.0",
"author": "Laminar Developers <[email protected]>",
"license": "Apache-2.0",
"main": "lib/index.js",
Expand All @@ -21,29 +21,42 @@
},
"scripts": {
"build": "tsc --build tsconfig.json",
"lint": "polkadot-dev-run-lint",
"lint": "tsc --noEmit && eslint . --ext .js,.ts && prettier --check .",
"fix": "eslint . --ext .js,.ts --fix && prettier -w .",
"start": "ts-node src/index.ts"
},
"dependencies": {
"@polkadot/api": "^10.5.1",
"@polkadot/keyring": "^12.1.1",
"@polkadot/util": "^12.1.1",
"@polkadot/util-crypto": "^12.1.1",
"@polkadot/api": "^10.9.1",
"@polkadot/keyring": "^12.3.2",
"@polkadot/util": "^12.3.2",
"@polkadot/util-crypto": "^12.3.2",
"lodash": "^4.17.21",
"readline-sync": "^1.4.10",
"shelljs": "^0.8.5",
"yaml": "^2.3.1",
"yargs": "^17.7.2"
},
"devDependencies": {
"@open-web3/dev-config": "^0.2.9",
"@types/lodash": "^4.14.195",
"@types/readline-sync": "^1.4.4",
"@types/shelljs": "^0.8.12",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"prettier": "^2.8.8",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
"typescript": "~5.0.0"
},
"bin": "./bin/parachain-launch",
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"prettier": {
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
}
22 changes: 12 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import * as readline from 'readline-sync';
import * as shell from 'shelljs';
import { Keyring } from '@polkadot/api';
import { cryptoWaitReady, decodeAddress, encodeAddress } from '@polkadot/util-crypto';
import { hideBin } from 'yargs/helpers';
import { waitReady } from '@polkadot/wasm-crypto';
import YAML from 'yaml';
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import readline from 'readline-sync';
import shell from 'shelljs';
import { Keyring } from '@polkadot/api';
import { cryptoWaitReady, encodeAddress, decodeAddress } from '@polkadot/util-crypto';
import { waitReady } from '@polkadot/wasm-crypto';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import _ from 'lodash';

import { Config, Parachain, Chain, DockerConfig, DockerNode } from './types';
import { Chain, Config, DockerConfig, DockerNode, Parachain } from './types';

/**
* Check can override file
Expand Down Expand Up @@ -240,7 +240,9 @@ const getAddress = (val: string) => {
try {
const addr = decodeAddress(val);
return encodeAddress(addr);
} catch {}
} catch {
// ignore
}

const keyring = new Keyring();
const pair = keyring.createFromUri(`//${_.startCase(val)}`, undefined, 'sr25519');
Expand Down Expand Up @@ -557,7 +559,7 @@ const generate = async (config: Config, { output, yes }: { output: string; yes:
console.log('docker-compose.yml generated at', dockerComposePath);
};

yargs(hideBin(process.argv))
void yargs(hideBin(process.argv))
.strict()
.options({
output: {
Expand Down
Loading

0 comments on commit 01fbf1c

Please sign in to comment.