Skip to content

Commit

Permalink
Bump (#159)
Browse files Browse the repository at this point in the history
* bump deps

* bump version
  • Loading branch information
xlc authored Aug 31, 2023
1 parent 45693e2 commit a1060ad
Show file tree
Hide file tree
Showing 3 changed files with 421 additions and 616 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-web3/parachain-launch",
"version": "1.4.0",
"version": "1.4.1",
"author": "Laminar Developers <[email protected]>",
"license": "Apache-2.0",
"main": "lib/index.js",
Expand All @@ -27,30 +27,30 @@
},
"dependencies": {
"@polkadot/api": "^10.9.1",
"@polkadot/keyring": "^12.3.2",
"@polkadot/util": "^12.3.2",
"@polkadot/util-crypto": "^12.3.2",
"@polkadot/keyring": "^12.4.2",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"lodash": "^4.17.21",
"readline-sync": "^1.4.10",
"shelljs": "^0.8.5",
"yaml": "^2.3.1",
"yaml": "^2.3.2",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/lodash": "^4.14.196",
"@types/lodash": "^4.14.197",
"@types/readline-sync": "^1.4.4",
"@types/shelljs": "^0.8.12",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.9.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.28.0",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"prettier": "^2.8.8",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"typescript": "~5.1.6"
"typescript": "~5.2.2"
},
"bin": "./bin/parachain-launch",
"packageManager": "[email protected]",
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const getChainspec = (image: string, chain: string) => {
const outputChainSpec = `${shell.tempdir()}/${chain}-${new Date().toISOString().slice(0, 10)}.json`;
if (chain.endsWith('.json')) {
exec(
`docker run -v $(pwd)/${chain}:/${chain} --rm ${image} build-spec --chain=/${chain} --disable-default-bootnode > ${outputChainSpec}`
`docker run -v $(pwd)/${chain}:/${chain} --rm ${image} build-spec --chain=/${chain} --disable-default-bootnode > ${outputChainSpec}`,
);
} else {
exec(`docker run --rm ${image} build-spec --chain=${chain} --disable-default-bootnode > ${outputChainSpec}`);
Expand Down Expand Up @@ -130,7 +130,7 @@ const jsonStringify = (spec: any) =>
// JSON.stringify will serialize big number to scientific notation such as 1e+21, which is not supported by Substrate
JSON.stringify(spec, (_, v) => (typeof v === 'number' ? `@${BigInt(v).toString()}@` : v), 2).replace(
/"@(.*?)@"/g,
'$1'
'$1',
);

/**
Expand Down Expand Up @@ -224,7 +224,7 @@ const generateRelaychainGenesisFile = (config: Config, path: string, output: str
fs.writeFileSync(tmpfile, jsonStringify(spec));

exec(
`docker run --rm -v "${tmpfile}":/${config.relaychain.chain}.json ${config.relaychain.image} build-spec --raw --chain=/${config.relaychain.chain}.json --disable-default-bootnode > ${path}`
`docker run --rm -v "${tmpfile}":/${config.relaychain.chain}.json ${config.relaychain.image} build-spec --raw --chain=/${config.relaychain.chain}.json --disable-default-bootnode > ${path}`,
);

shell.rm(tmpfile);
Expand Down Expand Up @@ -312,7 +312,7 @@ const generateParachainGenesisFile = (
image: string,
chain: Chain | string,
output: string,
yes: boolean
yes: boolean,
) => {
if (typeof chain === 'string') {
chain = { base: chain };
Expand Down Expand Up @@ -603,7 +603,7 @@ void yargs(hideBin(process.argv))
}
generate(config, argv).catch(fatal);
}
}
},
)
.help('h')
.alias('h', 'help').argv;
Loading

0 comments on commit a1060ad

Please sign in to comment.