Skip to content

Commit 083b75c

Browse files
committed
style: removed deprecation script in publish-all.sh
1 parent 69c534c commit 083b75c

5 files changed

Lines changed: 25 additions & 31 deletions

File tree

packages/compat-pyrajs-adapter-react/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs-adapter-react",
3-
"version": "0.21.24",
3+
"version": "0.25.2",
44
"description": "Deprecated: renamed to @pyra-js/adapter-react. This package will be removed in a future major version.",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -13,7 +13,11 @@
1313
"dependencies": {
1414
"@pyra-js/adapter-react": "workspace:^"
1515
},
16-
"files": ["dist", "bin", "README.md"],
16+
"files": [
17+
"dist",
18+
"bin",
19+
"README.md"
20+
],
1721
"devDependencies": {
1822
"tsup": "^8.0.0"
1923
}

packages/compat-pyrajs-cli/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs-cli",
3-
"version": "0.21.24",
3+
"version": "0.25.2",
44
"description": "Deprecated: renamed to @pyra-js/cli. This package will be removed in a future major version.",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -16,7 +16,11 @@
1616
"dependencies": {
1717
"@pyra-js/cli": "workspace:^"
1818
},
19-
"files": ["dist", "bin", "README.md"],
19+
"files": [
20+
"dist",
21+
"bin",
22+
"README.md"
23+
],
2024
"devDependencies": {
2125
"tsup": "^8.0.0"
2226
}

packages/compat-pyrajs-core/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs-core",
3-
"version": "0.21.24",
3+
"version": "0.25.2",
44
"description": "Deprecated: renamed to @pyra-js/core. This package will be removed in a future major version.",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -13,7 +13,11 @@
1313
"dependencies": {
1414
"@pyra-js/core": "workspace:^"
1515
},
16-
"files": ["dist", "bin", "README.md"],
16+
"files": [
17+
"dist",
18+
"bin",
19+
"README.md"
20+
],
1721
"devDependencies": {
1822
"tsup": "^8.0.0"
1923
}

packages/compat-pyrajs-shared/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs-shared",
3-
"version": "0.21.24",
3+
"version": "0.25.2",
44
"description": "Deprecated: renamed to @pyra-js/shared. This package will be removed in a future major version.",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -13,7 +13,11 @@
1313
"dependencies": {
1414
"@pyra-js/shared": "workspace:^"
1515
},
16-
"files": ["dist", "bin", "README.md"],
16+
"files": [
17+
"dist",
18+
"bin",
19+
"README.md"
20+
],
1721
"devDependencies": {
1822
"tsup": "^8.0.0"
1923
}

scripts/publish-all.sh

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,13 @@ publish() {
3232
echo ""
3333
}
3434

35-
deprecate() {
36-
local pkg="$1"
37-
local msg="$2"
38-
echo "⚠️ Deprecating $pkg..."
39-
if [ "$DRY_RUN" = true ]; then
40-
echo " [dry-run] npm deprecate \"$pkg\" \"$msg\""
41-
else
42-
npm deprecate "$pkg" "$msg"
43-
fi
44-
echo "$pkg deprecated"
45-
echo ""
46-
}
47-
4835
# Sync compat versions to match real packages
4936
# Compat shims must always publish at the same version as the real packages so users upgrading pyrajs-cli always get a shim that points at the matching @pyra-js/cli version.
5037
sync_compat_versions() {
5138
local version="$1"
5239
for f in "$ROOT"/packages/compat-pyrajs-*/package.json; do
5340
local winpath
54-
winpath=$(cygpath -w "$f")
41+
winpath=$(cygpath -m "$f")
5542
node -e "
5643
const fs = require('fs');
5744
const pkg = JSON.parse(fs.readFileSync('${winpath}', 'utf8'));
@@ -117,15 +104,6 @@ publish "packages/compat-pyrajs-core" "pyrajs-core"
117104
publish "packages/compat-pyrajs-adapter-react" "pyrajs-adapter-react"
118105
publish "packages/compat-pyrajs-cli" "pyrajs-cli"
119106

120-
# Step 4: Deprecate old package names
121-
echo "── Deprecating old names ─────────────────────────────────────────────────"
122-
echo ""
123-
124-
deprecate "pyrajs-cli" "Renamed to @pyra-js/cli. Update your devDependencies and imports."
125-
deprecate "pyrajs-shared" "Renamed to @pyra-js/shared. User-facing types are re-exported from @pyra-js/cli."
126-
deprecate "pyrajs-core" "Renamed to @pyra-js/core."
127-
deprecate "pyrajs-adapter-react" "Renamed to @pyra-js/adapter-react."
128-
129107
# Done
130108
echo "╔════════════════════════════════════════╗"
131109
echo "║ 🎉 All packages published - v$VERSION"

0 commit comments

Comments
 (0)