Skip to content

Commit

Permalink
🚀 Release 1.67.0
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Aug 16, 2023
1 parent 9a8d959 commit 02e6121
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion apps/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snailycad/client",
"version": "1.66.0",
"version": "1.67.0",
"sideEffects": false,
"scripts": {
"dev": " yarn next dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/audit-logger/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/permissions/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snailycad/types",
"version": "1.66.0",
"version": "1.67.0",
"exports": {
".": {
"require": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
11 changes: 5 additions & 6 deletions scripts/bump-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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`);
}

Expand Down Expand Up @@ -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`,
);
Expand Down

0 comments on commit 02e6121

Please sign in to comment.