Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use yarn #146

Merged
merged 5 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ for dir in "${DIRS[@]}"; do
fi

# Run the build command
if ! npm run build; then
echo "Error: Failed to run 'npm run build' in directory: packages/$dir"
if ! yarn build; then
echo "Error: Failed to run 'yarn build' in directory: packages/$dir"
exit 1
fi

Expand All @@ -22,4 +22,4 @@ for dir in "${DIRS[@]}"; do
echo "Error: Unable to change back to original directory"
exit 1
fi
done
done
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@
"workspaces": [
"packages/*"
],
"engines": {
"node": ">=18"
},
"packageManager": "[email protected]"
}
1 change: 1 addition & 0 deletions packages/drops/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"engines": {
"node": ">=18"
},
"packageManager": "[email protected]",
"dependencies": {
"@poap-xyz/providers": "0.7.3",
"@poap-xyz/utils": "0.7.3"
Expand Down
1 change: 1 addition & 0 deletions packages/frames/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"engines": {
"node": ">=18"
},
"packageManager": "[email protected]",
"dependencies": {
"next-seo": "^6.4.0"
}
Expand Down
7 changes: 4 additions & 3 deletions packages/moments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
"scripts": {
"build": "rollup -c --bundleConfigAsCjs"
},
"engines": {
"node": ">=18"
},
"packageManager": "[email protected]",
"dependencies": {
"@poap-xyz/providers": "0.7.3",
"@poap-xyz/utils": "0.7.3",
"uuid": "^9.0.0"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"@types/uuid": "^9.0.2"
}
Expand Down
7 changes: 4 additions & 3 deletions packages/poaps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
"scripts": {
"build": "rollup -c --bundleConfigAsCjs"
},
"engines": {
"node": ">=18"
},
"packageManager": "[email protected]",
"dependencies": {
"@poap-xyz/providers": "0.7.3",
"@poap-xyz/utils": "0.7.3"
},
"engines": {
"node": ">=18"
}
}
7 changes: 4 additions & 3 deletions packages/providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"scripts": {
"build": "rollup -c --bundleConfigAsCjs"
},
"engines": {
"node": ">=18"
},
"packageManager": "[email protected]",
"dependencies": {
"@poap-xyz/utils": "0.7.3",
"axios": "^1.6.8",
Expand All @@ -33,8 +37,5 @@
"devDependencies": {
"axios-mock-adapter": "^1.21.4",
"jest-fetch-mock": "^3.0.3"
},
"engines": {
"node": ">=18"
}
}
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
},
"engines": {
"node": ">=18"
}
},
"packageManager": "[email protected]"
}
4 changes: 2 additions & 2 deletions publish-beta-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ for pkg in "${DIRS[@]}"; do
fi

# Build the package
if ! npm run build; then
if ! yarn build; then
echo "Error: Failed to build $pkg_name"
exit 1
fi

# Publish the package with a "beta" tag
if ! npm publish --tag beta; then
if ! yarn npm publish --tag beta; then
echo "Error: Failed to publish $pkg_name"
exit 1
fi
Expand Down
8 changes: 4 additions & 4 deletions publish-update-packages.sh
jm42 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ for pkg in "${DIRS[@]}"; do
fi

# Run the build command
if ! npm run build; then
echo "Error: Failed to run 'npm run build' in directory: packages/$pkg"
if ! yarn build; then
echo "Error: Failed to run 'yarn build' in directory: packages/$pkg"
exit 1
fi

Expand All @@ -28,8 +28,8 @@ for pkg in "${DIRS[@]}"; do
fi

# Run the publish command
if ! npm publish --access public; then
echo "Error: Failed to run 'npm publish --access public' in directory: packages/$pkg"
if ! yarn npm publish --access public; then
echo "Error: Failed to run 'yarn npm publish --access public' in directory: packages/$pkg"
exit 1
fi

Expand Down