diff --git a/apps/api/package.json b/apps/api/package.json index b0251f2ca..729bb2089 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -1,6 +1,6 @@ { "name": "@snailycad/api", - "version": "1.66.0", + "version": "1.67.0", "scripts": { "watch": "yarn prisma generate && yarn nodemon --watch \"./src/**/*.ts\" --ignore \"node_modules/**/*\" --exec node --loader ts-node/esm --inspect src/main.ts", "start": "yarn prisma migrate deploy && yarn prisma generate && node --loader ts-node/esm --inspect src/main.ts", diff --git a/apps/client/package.json b/apps/client/package.json index 0e024de1b..d00d35976 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -1,6 +1,6 @@ { "name": "@snailycad/client", - "version": "1.66.0", + "version": "1.67.0", "sideEffects": false, "scripts": { "dev": " yarn next dev", diff --git a/packages/audit-logger/package.json b/packages/audit-logger/package.json index ab339e2f8..314de8593 100644 --- a/packages/audit-logger/package.json +++ b/packages/audit-logger/package.json @@ -1,6 +1,6 @@ { "name": "@snailycad/audit-logger", - "version": "1.66.0", + "version": "1.67.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/packages/config/package.json b/packages/config/package.json index dcb7ec8cd..faea90f2a 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@snailycad/config", - "version": "1.66.0", + "version": "1.67.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/packages/permissions/package.json b/packages/permissions/package.json index 4c56f72d3..ec11f5911 100644 --- a/packages/permissions/package.json +++ b/packages/permissions/package.json @@ -1,6 +1,6 @@ { "name": "@snailycad/permissions", - "version": "1.66.0", + "version": "1.67.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/packages/schemas/package.json b/packages/schemas/package.json index 19e81d997..d361dd2af 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -1,6 +1,6 @@ { "name": "@snailycad/schemas", - "version": "1.66.0", + "version": "1.67.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/packages/types/package.json b/packages/types/package.json index 3e380799a..616549a57 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@snailycad/types", - "version": "1.66.0", + "version": "1.67.0", "exports": { ".": { "require": "./dist/index.js", diff --git a/packages/ui/package.json b/packages/ui/package.json index 201bedf2c..88fc63de9 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,7 +1,7 @@ { "name": "@snailycad/ui", "type": "module", - "version": "1.66.0", + "version": "1.67.0", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/packages/utils/package.json b/packages/utils/package.json index fc4e8b19c..8d64100e0 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@snailycad/utils", - "version": "1.66.0", + "version": "1.67.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/scripts/bump-version.mjs b/scripts/bump-version.mjs index 109162828..50ceb82cb 100644 --- a/scripts/bump-version.mjs +++ b/scripts/bump-version.mjs @@ -2,8 +2,7 @@ import { join } from "node:path"; import { readdirSync, readFileSync, writeFileSync } from "node:fs"; import readline from "node:readline"; import { bold, green, underline } from "colorette"; -import prettier from "prettier"; -const { format } = prettier; +import { format } from "prettier"; const PACKAGES_PATH = join(process.cwd(), "packages"); const APPS_PATH = join(process.cwd(), "apps"); @@ -34,7 +33,7 @@ for (const pkg of allPackages) { } } - writeFileSync(packageJsonPath, stringifyAndFormat(packageJsonContentJSON)); + writeFileSync(packageJsonPath, await stringifyAndFormat(packageJsonContentJSON)); console.log(`${green("INFO:")} Set version ${underline(version)} for ${underline(pkg)}\n`); } @@ -66,17 +65,17 @@ function getJson(path) { } } -function stringifyAndFormat(json) { +async function stringifyAndFormat(json) { return format(JSON.stringify(json, null, 2), { parser: "json" }); } -function updateMainPackage() { +async function updateMainPackage() { const packageJsonPath = join(process.cwd(), "package.json"); const packageJsonContentJSON = getJson(packageJsonPath); packageJsonContentJSON.version = version; - writeFileSync(packageJsonPath, stringifyAndFormat(packageJsonContentJSON)); + writeFileSync(packageJsonPath, await stringifyAndFormat(packageJsonContentJSON)); console.log( `${green("INFO:")} Set version ${underline(version)} for ${underline("snailycad")}\n`, );