diff --git a/package.json b/package.json index c7ce737087f4..a1dff1b31ab5 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "compile": "turbo run compile:js compile:typedefs", "lint": "turbo run test:lint", "publish-packages": "turbo run publish-packages", + "style:fix": "turbo run style:fix", "test": "turbo run test:unit:browser test:unit:node", "test:live-with-test-validator": "turbo run test:live-with-test-validator", "test:live-with-test-validator:setup": "./scripts/setup-test-validator.sh" diff --git a/packages/addresses/package.json b/packages/addresses/package.json index f4c6acefe019..1e65a1ca6c33 100644 --- a/packages/addresses/package.json +++ b/packages/addresses/package.json @@ -38,6 +38,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/assertions/package.json b/packages/assertions/package.json index 5603261cbc1e..cb6cfc20e578 100644 --- a/packages/assertions/package.json +++ b/packages/assertions/package.json @@ -38,6 +38,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/fetch-impl/package.json b/packages/fetch-impl/package.json index 8e4869c989ca..e3971bb647a8 100644 --- a/packages/fetch-impl/package.json +++ b/packages/fetch-impl/package.json @@ -30,6 +30,7 @@ "compile:js": "tsup", "compile:typedefs": "tsc -p ./tsconfig.declarations.json", "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/instructions/package.json b/packages/instructions/package.json index 06906ff51e25..8d6c8019e791 100644 --- a/packages/instructions/package.json +++ b/packages/instructions/package.json @@ -38,6 +38,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/keys/package.json b/packages/keys/package.json index a59126591ea4..a15e84ca0caa 100644 --- a/packages/keys/package.json +++ b/packages/keys/package.json @@ -38,6 +38,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/library/package.json b/packages/library/package.json index 5ce56678008e..2fed66db8ad2 100644 --- a/packages/library/package.json +++ b/packages/library/package.json @@ -41,6 +41,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "sed -i 's/@solana\\/web3\\.js-experimental/@solana\\/web3\\.js/g' package.json && sed -i 's/@solana\\/web3\\.js/@solana\\/web3\\.js-bak/g' ../library-legacy/package.json && pnpm publish --tag experimental --access public --no-git-checks && git reset --hard", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 3b107c86d5c5..e424c0cd19b7 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -38,6 +38,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/rpc-transport/package.json b/packages/rpc-transport/package.json index 954b1c1c2aa8..4db9666c20a6 100644 --- a/packages/rpc-transport/package.json +++ b/packages/rpc-transport/package.json @@ -38,6 +38,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/transactions/package.json b/packages/transactions/package.json index 9f67263a0ec0..f69470373047 100644 --- a/packages/transactions/package.json +++ b/packages/transactions/package.json @@ -38,6 +38,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/packages/webcrypto-ed25519-polyfill/package.json b/packages/webcrypto-ed25519-polyfill/package.json index 93303c4bd366..b56865e7da03 100644 --- a/packages/webcrypto-ed25519-polyfill/package.json +++ b/packages/webcrypto-ed25519-polyfill/package.json @@ -38,6 +38,7 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", "prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short", "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:typecheck": "tsc --noEmit", diff --git a/packages/ws-impl/package.json b/packages/ws-impl/package.json index bbf9961a4393..da66e923b117 100644 --- a/packages/ws-impl/package.json +++ b/packages/ws-impl/package.json @@ -30,6 +30,7 @@ "compile:js": "tsup", "compile:typedefs": "tsc -p ./tsconfig.declarations.json", "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", + "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*", "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", "test:treeshakability:browser": "agadoo dist/index.browser.js", diff --git a/turbo.json b/turbo.json index 2e4beac6b42a..fe1ee0d34c9f 100644 --- a/turbo.json +++ b/turbo.json @@ -41,6 +41,10 @@ "dependsOn": ["build", "^publish-packages"], "outputs": [] }, + "style:fix": { + "inputs": ["src/**"], + "outputs": [] + }, "test:lint": { "inputs": ["src/**", "test/**"], "outputs": []