diff --git a/package.json b/package.json index 1c49c957f..e0021a6d5 100644 --- a/package.json +++ b/package.json @@ -9,34 +9,42 @@ ] }, "scripts": { - "account": "yarn workspace @se-2/hardhat account", + "account": "yarn hardhat:account", "account:import": "yarn workspace @se-2/hardhat account:import", "account:generate": "yarn workspace @se-2/hardhat account:generate", - "chain": "yarn workspace @se-2/hardhat chain", - "fork": "yarn workspace @se-2/hardhat fork", - "deploy": "yarn workspace @se-2/hardhat deploy", - "verify": "yarn workspace @se-2/hardhat verify", - "hardhat-verify": "yarn workspace @se-2/hardhat hardhat-verify", - "compile": "yarn workspace @se-2/hardhat compile", + "chain": "yarn hardhat:chain", + "compile": "yarn hardhat:compile", + "deploy": "yarn hardhat:deploy", + "fork": "yarn hardhat:fork", + "format": "yarn next:format && yarn hardhat:format", "generate": "yarn account:generate", - "flatten": "yarn workspace @se-2/hardhat flatten", + "hardhat:account": "yarn workspace @se-2/hardhat account", + "hardhat:chain": "yarn workspace @se-2/hardhat chain", + "hardhat:check-types": "yarn workspace @se-2/hardhat check-types", + "hardhat:compile": "yarn workspace @se-2/hardhat compile", + "hardhat:deploy": "yarn workspace @se-2/hardhat deploy", + "hardhat:flatten": "yarn workspace @se-2/hardhat flatten", + "hardhat:fork": "yarn workspace @se-2/hardhat fork", + "hardhat:format": "yarn workspace @se-2/hardhat format", + "hardhat:generate": "yarn workspace @se-2/hardhat generate", + "hardhat:hardhat-verify": "yarn workspace @se-2/hardhat hardhat-verify", "hardhat:lint": "yarn workspace @se-2/hardhat lint", "hardhat:lint-staged": "yarn workspace @se-2/hardhat lint-staged", - "hardhat:format": "yarn workspace @se-2/hardhat format", - "hardhat:check-types": "yarn workspace @se-2/hardhat check-types", "hardhat:test": "yarn workspace @se-2/hardhat test", - "test": "yarn hardhat:test", - "format": "yarn next:format && yarn hardhat:format", - "start": "yarn workspace @se-2/nextjs dev", - "next:lint": "yarn workspace @se-2/nextjs lint", - "next:format": "yarn workspace @se-2/nextjs format", - "next:check-types": "yarn workspace @se-2/nextjs check-types", + "hardhat:verify": "yarn workspace @se-2/hardhat verify", + "lint": "yarn nextjs:lint && yarn hardhat:lint", "next:build": "yarn workspace @se-2/nextjs build", + "next:check-types": "yarn workspace @se-2/nextjs check-types", + "next:format": "yarn workspace @se-2/nextjs format", + "next:lint": "yarn workspace @se-2/nextjs lint", "next:serve": "yarn workspace @se-2/nextjs serve", "postinstall": "husky", "precommit": "lint-staged", + "start": "yarn workspace @se-2/nextjs dev", + "test": "yarn hardhat:test", "vercel": "yarn workspace @se-2/nextjs vercel", - "vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo" + "vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo", + "verify": "yarn hardhat:verify" }, "packageManager": "yarn@3.2.3", "devDependencies": { diff --git a/packages/hardhat/package.json b/packages/hardhat/package.json index 22184d753..94e824092 100644 --- a/packages/hardhat/package.json +++ b/packages/hardhat/package.json @@ -3,21 +3,21 @@ "version": "0.0.1", "scripts": { "account": "hardhat run scripts/listAccount.ts", - "account:import": "hardhat run scripts/importAccount.ts", "account:generate": "hardhat run scripts/generateAccount.ts", + "account:import": "hardhat run scripts/importAccount.ts", "chain": "hardhat node --network hardhat --no-deploy", "check-types": "tsc --noEmit --incremental", "compile": "hardhat compile", "deploy": "ts-node scripts/runHardhatDeployWithPK.ts", + "flatten": "hardhat flatten", "fork": "MAINNET_FORKING_ENABLED=true hardhat node --network hardhat --no-deploy", + "format": "prettier --write './**/*.(ts|sol)'", "generate": "yarn account:generate", - "flatten": "hardhat flatten", + "hardhat-verify": "hardhat verify", "lint": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore ./*.ts ./deploy/**/*.ts ./scripts/**/*.ts ./test/**/*.ts", "lint-staged": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore", - "format": "prettier --write './**/*.(ts|sol)'", "test": "REPORT_GAS=true hardhat test --network hardhat", - "verify": "hardhat etherscan-verify", - "hardhat-verify": "hardhat verify" + "verify": "hardhat etherscan-verify" }, "devDependencies": { "@ethersproject/abi": "^5.7.0", diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 8bb2576e2..523431a93 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -3,13 +3,13 @@ "private": true, "version": "0.1.0", "scripts": { - "dev": "next dev", - "start": "next dev", "build": "next build", - "serve": "next start", - "lint": "next lint", - "format": "prettier --write . '!(node_modules|.next|contracts)/**/*'", "check-types": "tsc --noEmit --incremental", + "dev": "next dev", + "format": "prettier --write . '!(node_modules|.next|contracts)/**/*'", + "lint": "next lint", + "serve": "next start", + "start": "next dev", "vercel": "vercel --build-env YARN_ENABLE_IMMUTABLE_INSTALLS=false --build-env ENABLE_EXPERIMENTAL_COREPACK=1", "vercel:yolo": "vercel --build-env YARN_ENABLE_IMMUTABLE_INSTALLS=false --build-env ENABLE_EXPERIMENTAL_COREPACK=1 --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=true" },