Skip to content

Commit

Permalink
Update package versions & setVersion script
Browse files Browse the repository at this point in the history
  • Loading branch information
fayeed committed Feb 20, 2024
1 parent 71079b9 commit 9598c95
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 25 deletions.
42 changes: 21 additions & 21 deletions ad4m-hooks/helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "@coasys/hooks-helpers",
"version": "0.8.2-prerelease",
"description": "",
"main": "./src/index.ts",
"module": "./src/index.ts",
"private": false,
"type": "module",
"files": [
"dist",
"src"
],
"scripts": {},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@coasys/ad4m": "*",
"@coasys/ad4m-connect": "*",
"uuid": "*"
}
}
"name": "@coasys/hooks-helpers",
"version": "0.9.0-prerelease",
"description": "",
"main": "./src/index.ts",
"module": "./src/index.ts",
"private": false,
"type": "module",
"files": [
"dist",
"src"
],
"scripts": {},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@coasys/ad4m": "*",
"@coasys/ad4m-connect": "*",
"uuid": "*"
}
}
4 changes: 2 additions & 2 deletions ad4m-hooks/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coasys/ad4m-react-hooks",
"version": "0.8.2-prerelease.1",
"version": "0.9.0-prerelease",
"description": "",
"main": "./src/index.ts",
"module": "./src/index.ts",
Expand All @@ -25,4 +25,4 @@
"preact": "*",
"react": "*"
}
}
}
4 changes: 2 additions & 2 deletions ad4m-hooks/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coasys/ad4m-vue-hooks",
"version": "0.8.2-prerelease",
"version": "0.9.0-prerelease",
"description": "",
"main": "./src/index.ts",
"module": "./src/index.ts",
Expand All @@ -20,4 +20,4 @@
"peerDependencies": {
"vue": "^3.2.47"
}
}
}
15 changes: 15 additions & 0 deletions setVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ console.log("Core version: " + core.version + " -> " + VERSION)
core.version = VERSION
fs.writeFileSync('core/package.json', JSON.stringify(core, null, 2) + '\n')

const hookHelpers = JSON.parse(fs.readFileSync('ad4m-hooks/helpers/package.json', 'utf8'))
console.log("Hook Helpers version: " + core.version + " -> " + VERSION)
hookHelpers.version = VERSION
fs.writeFileSync('ad4m-hooks/helpers/package.json', JSON.stringify(hookHelpers, null, 2) + '\n')

const reactHooks = JSON.parse(fs.readFileSync('ad4m-hooks/react/package.json', 'utf8'))
console.log("Ad4m React hook version: " + reactHooks.version + " -> " + VERSION)
reactHooks.version = VERSION
fs.writeFileSync('ad4m-hooks/react/package.json', JSON.stringify(reactHooks, null, 2) + '\n')

const vueHooks = JSON.parse(fs.readFileSync('ad4m-hooks/vue/package.json', 'utf8'))
console.log("Ad4m Vue hook version: " + vueHooks.version + " -> " + VERSION)
vueHooks.version = VERSION
fs.writeFileSync('ad4m-hooks/vue/package.json', JSON.stringify(vueHooks, null, 2) + '\n')

const executor = JSON.parse(fs.readFileSync('executor/package.json', 'utf8'))
console.log("Executor version: " + executor.version + " -> " + VERSION)
executor.version = VERSION
Expand Down

0 comments on commit 9598c95

Please sign in to comment.