Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
Expand Down Expand Up @@ -58,5 +58,5 @@
"@types/lodash": "^4.14.194",
"@types/ws": "^8.5.4"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@proto-kit/cli",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"type": "module",
"main": "./bin/protokit-cli.js",
"bin": {
Expand Down Expand Up @@ -38,11 +38,11 @@
"@proto-kit/indexer": "*",
"@proto-kit/library": "*",
"@proto-kit/module": "*",
"@proto-kit/persistance": "*",
"@proto-kit/protocol": "*",
"@proto-kit/sdk": "*",
"@proto-kit/sequencer": "*",
"@proto-kit/stack": "*",
"@proto-kit/persistance": "*",
"o1js": "2.14.0-dev.e1080",
"tsyringe": "^4.10.0"
},
Expand All @@ -51,5 +51,5 @@
"@types/node": "^20.19.24",
"@types/yargs": "17.0.32"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
Expand Down Expand Up @@ -33,5 +33,5 @@
"@jest/globals": "^29.5.0",
"@types/lodash": "^4.14.194"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/deployment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
Expand Down Expand Up @@ -40,5 +40,5 @@
"@jest/globals": "^29.5.0",
"cachedir": "^2.4.0"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"prebuild": "npm run prisma:generate",
"build": "tsc -p tsconfig.json",
Expand Down Expand Up @@ -64,5 +64,5 @@
"@types/react": "^18.2.34",
"@types/ws": "^8.5.4"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
Expand Down Expand Up @@ -35,5 +35,5 @@
"@jest/globals": "^29.5.0",
"@types/lodash": "^4.14.194"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@proto-kit/module",
"license": "MIT",
"private": false,
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
Expand Down Expand Up @@ -32,5 +32,5 @@
"o1js": "2.14.0-dev.e1080",
"tsyringe": "^4.10.0"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/persistance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"build": "npm run prisma:generate && tsc -p tsconfig.json",
"prisma:generate": "npx prisma generate",
Expand Down Expand Up @@ -39,5 +39,5 @@
"@jest/globals": "^29.5.0",
"@types/lodash": "^4.14.194"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
Expand Down Expand Up @@ -63,5 +63,5 @@
"@types/ink": "^2.0.3",
"@types/node": "^20.8.10"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
Expand Down Expand Up @@ -33,5 +33,5 @@
"@jest/globals": "^29.5.0",
"@types/lodash": "^4.14.194"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
Expand Down Expand Up @@ -37,5 +37,5 @@
"@jest/globals": "^29.5.0",
"@types/lodash": "^4.14.194"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
4 changes: 2 additions & 2 deletions packages/sequencer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@proto-kit/sequencer",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"license": "MIT",
"private": false,
"type": "module",
Expand Down Expand Up @@ -41,5 +41,5 @@
"ts-pattern": "^4.3.0",
"typescript-memoize": "^1.1.1"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
6 changes: 3 additions & 3 deletions packages/stack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@proto-kit/stack",
"version": "0.1.1-develop.2137+8a7eca31",
"version": "0.1.1-develop.2357+32f368c2",
"license": "MIT",
"private": false,
"type": "module",
Expand All @@ -21,6 +21,7 @@
"access": "public"
},
"peerDependencies": {
"@o1js/native": "2.10.0-dev.6d3a3",
"@proto-kit/api": "*",
"@proto-kit/common": "*",
"@proto-kit/deployment": "*",
Expand All @@ -33,7 +34,6 @@
"@proto-kit/sdk": "*",
"@proto-kit/sequencer": "*",
"o1js": "2.14.0-dev.e1080",
"@o1js/native": "2.10.0-dev.6d3a3",
"tsyringe": "^4.10.0"
},
"devDependencies": {
Expand All @@ -46,5 +46,5 @@
"reflect-metadata": "^0.1.13",
"type-graphql": "2.0.0-rc.2"
},
"gitHead": "8a7eca319272a15162dc4ad04bdc134b1017716d"
"gitHead": "32f368c2adf45ca3c5e22a7768ecfad469f6ceb8"
}
57 changes: 57 additions & 0 deletions publish-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash

# Define the base directory containing your packages
PACKAGES_DIR="./packages"

# Define the exact publish order of your packages here.
# List the folder names from foundational (no dependencies)
# to feature-level (depends on the foundational packages).
ORDERED_PACKAGES=(
"common"
"protocol"
"module"
"sequencer"
"library"
"api"
"sdk"
"persistance"
"deployment"
"processor"
"indexer"
"stack"
"cli"
)

echo "Starting monorepo publish process..."

# Iterate through the hardcoded list
for pkg in "${ORDERED_PACKAGES[@]}"; do

# Construct the full path to the package directory
dir="$PACKAGES_DIR/$pkg"

echo "====================================="

# Ensure the directory actually exists
if [ -d "$dir" ]; then
echo "Entering $dir..."

# Use a subshell to navigate into the directory and run npm publish
(cd "$dir" && npm publish)

# Capture the exit status of the npm command
if [ $? -eq 0 ]; then
echo "✅ Successfully published: $pkg"
else
echo "❌ Failed to publish: $pkg"
echo "Halting the script to prevent out-of-sync dependency publishing."
exit 1
fi

else
echo "⚠️ Warning: Directory $dir does not exist. Skipping."
fi
done

echo "====================================="
echo "🎉 All packages published successfully!"
Loading