Skip to content

Commit 60a02b0

Browse files
authored
chore: build experimental packages on every commit (#1245)
1 parent 93260e5 commit 60a02b0

File tree

6 files changed

+116
-8
lines changed

6 files changed

+116
-8
lines changed

packages/keys/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solana/keys",
3-
"version": "0.0.0-development",
3+
"version": "2.0.0-development",
44
"description": "Helpers for generating and transforming key material",
55
"exports": {
66
"browser": {
@@ -36,6 +36,8 @@
3636
"compile:js": "tsup --config build-scripts/tsup.config.library.ts",
3737
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
39+
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
40+
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks && git checkout -- package.json",
3941
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4042
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4143
"test:treeshakability:browser": "agadoo dist/index.browser.js",
@@ -82,7 +84,8 @@
8284
"tsconfig": "workspace:*",
8385
"tsup": "6.7.0",
8486
"turbo": "^1.6.3",
85-
"typescript": "^4.9"
87+
"typescript": "^4.9",
88+
"version-from-git": "^1.1.1"
8689
},
8790
"bundlewatch": {
8891
"defaultCompression": "gzip",

packages/library/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solana/web3.js-experimental",
3-
"version": "0.0.0-development",
3+
"version": "2.0.0-development",
44
"description": "Solana Javascript API",
55
"exports": {
66
"browser": {
@@ -39,6 +39,8 @@
3939
"compile:js": "tsup --config build-scripts/tsup.config.library.ts",
4040
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
4141
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
42+
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short && sed -i 's/\"@solana\\/web3.js-experimental\"/\"@solana\\/web3.js\"/' package.json",
43+
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks && git checkout -- package.json",
4244
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4345
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4446
"test:treeshakability:browser": "agadoo dist/index.browser.js",
@@ -90,7 +92,8 @@
9092
"tsconfig": "workspace:*",
9193
"tsup": "6.7.0",
9294
"turbo": "^1.6.3",
93-
"typescript": "^4.9"
95+
"typescript": "^4.9",
96+
"version-from-git": "^1.1.1"
9497
},
9598
"bundlewatch": {
9699
"defaultCompression": "gzip",

packages/rpc-core/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solana/rpc-core",
3-
"version": "0.0.0-development",
3+
"version": "2.0.0-development",
44
"description": "A library for making calls to the Solana JSON RPC API",
55
"exports": {
66
"browser": {
@@ -36,6 +36,8 @@
3636
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
3737
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
39+
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
40+
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks && git checkout -- package.json",
3941
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4042
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4143
"test:treeshakability:browser": "agadoo dist/index.browser.js",
@@ -83,7 +85,8 @@
8385
"tsconfig": "workspace:*",
8486
"tsup": "6.7.0",
8587
"turbo": "^1.6.3",
86-
"typescript": "^4.9"
88+
"typescript": "^4.9",
89+
"version-from-git": "^1.1.1"
8790
},
8891
"bundlewatch": {
8992
"defaultCompression": "gzip",

packages/rpc-transport/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solana/rpc-transport",
3-
"version": "0.0.0-development",
3+
"version": "2.0.0-development",
44
"description": "Network transports for accessing the Solana JSON RPC API",
55
"exports": {
66
"browser": {
@@ -36,6 +36,8 @@
3636
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
3737
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
3838
"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",
39+
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
40+
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks && git checkout -- package.json",
3941
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4042
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4143
"test:treeshakability:browser": "agadoo dist/index.browser.js",
@@ -85,7 +87,8 @@
8587
"tsconfig": "workspace:*",
8688
"tsup": "6.7.0",
8789
"turbo": "^1.6.3",
88-
"typescript": "^4.9"
90+
"typescript": "^4.9",
91+
"version-from-git": "^1.1.1"
8992
},
9093
"bundlewatch": {
9194
"defaultCompression": "gzip",

pnpm-lock.yaml

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"outputs": ["declarations/**", "dist/**/*.d.ts", "lib/**/*.d.ts"]
3838
},
3939
"publish-packages": {
40+
"cache": false,
4041
"dependsOn": ["build"],
4142
"outputs": []
4243
},

0 commit comments

Comments
 (0)