fixing deploy scripts

This commit is contained in:
konnorrogers
2025-12-02 18:12:00 -05:00
parent c0ced13f06
commit 4a4d3c5289
4 changed files with 38 additions and 4 deletions

18
package-lock.json generated
View File

@@ -14053,7 +14053,8 @@
"devDependencies": {
"@wc-toolkit/jsx-types": "^1.3.0",
"eleventy-plugin-git-commit-date": "^0.1.3",
"esbuild": "^0.25.11"
"esbuild": "^0.25.11",
"npm-check-updates": "^19.1.2"
},
"engines": {
"node": ">=14.17.0"
@@ -14526,6 +14527,21 @@
"node": "^18 || >=20"
}
},
"packages/webawesome-pro/node_modules/npm-check-updates": {
"version": "19.1.2",
"resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-19.1.2.tgz",
"integrity": "sha512-FNeFCVgPOj0fz89hOpGtxP2rnnRHR7hD2E8qNU8SMWfkyDZXA/xpgjsL3UMLSo3F/K13QvJDnbxPngulNDDo/g==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"ncu": "build/cli.js",
"npm-check-updates": "build/cli.js"
},
"engines": {
"node": ">=20.0.0",
"npm": ">=8.12.1"
}
},
"packages/webawesome/node_modules/@esbuild/aix-ppc64": {
"version": "0.25.11",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.11.tgz",

View File

@@ -2,7 +2,7 @@
"name": "@webawesome/monorepo",
"private": true,
"description": "A forward-thinking library of web components.",
"version": "3.0.0-alpha.13",
"version": "3.0.0",
"homepage": "https://webawesome.com/",
"author": "Web Awesome",
"license": "MIT",
@@ -85,4 +85,4 @@
"prettier --write"
]
}
}
}

View File

@@ -67,7 +67,7 @@
"check-updates": "npm-check-updates --cooldown 7 --interactive --format group",
"print-version": "echo $npm_package_version",
"tag-version": "git tag -a \"v$(npm run print-version | tail -n1)\" -m \"tag v$(npm run print-version | tail -n1)\"",
"postversion": "npm run tag-version"
"postversion": "npm run tag-version && node ./scripts/update-root-version.js"
},
"engines": {
"node": ">=14.17.0"

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env node
import * as fs from "node:fs"
import * as path from "node:path"
import * as url from 'url';
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const rootPackageJSONFile = path.join(path.resolve(__dirname, "..", "..", ".."), "package.json")
const webawesomePackageJSONFile = path.join(path.resolve(__dirname, ".."), "package.json")
const rootPackageJSON = JSON.parse(fs.readFileSync(rootPackageJSONFile))
const webawesomePackageJSON = JSON.parse(fs.readFileSync(webawesomePackageJSONFile))
rootPackageJSON.version = webawesomePackageJSON.version
fs.writeFileSync(rootPackageJSONFile, JSON.stringify(rootPackageJSON, null, 2))