Skip to content

Commit

Permalink
beta.35
Browse files Browse the repository at this point in the history
  • Loading branch information
sjc5 committed Oct 21, 2023
1 parent 02806b4 commit 68e6e47
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 16 deletions.
12 changes: 5 additions & 7 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"tag": "beta",
"initialVersions": {
"docs": "0.0.0",
"@hwy-js/build": "0.4.0-beta.33",
"hwy": "0.4.0-beta.33",
"create-hwy": "0.4.0-beta.33",
"@hwy-js/dev": "0.4.0-beta.33",
"@hwy-js/build": "0.4.0-beta.34",
"hwy": "0.4.0-beta.34",
"create-hwy": "0.4.0-beta.34",
"@hwy-js/dev": "0.4.0-beta.34",
"cf-pages-tester": "0.0.0",
"tester": "0.0.0"
},
"changesets": [
"rotten-boxes-watch"
]
"changesets": ["rotten-boxes-watch", "three-cooks-fold"]
}
6 changes: 6 additions & 0 deletions .changeset/three-cooks-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"create-hwy": patch
"@hwy-js/build": patch
---

tweak build step, auto read latest version in create-hwy
3 changes: 3 additions & 0 deletions CHANGESETS-DIRECTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ https://github.com/changesets/changesets/blob/main/docs/prereleases.md
```sh
pnpm changeset pre enter beta
pnpm changeset version
pnpm build
pnpm changeset publish
git add .
git commit -am "whatever"
git push --follow-tags
pnpm changeset pre exit
```
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"@hono/node-server": "^1.2.0",
"highlight.js": "^11.8.0",
"hono": "^3.7.5",
"hwy": "0.4.0-beta.34"
"hwy": "0.4.0-beta.35"
},
"devDependencies": {
"@hwy-js/build": "0.4.0-beta.34",
"@hwy-js/dev": "0.4.0-beta.34",
"@hwy-js/build": "0.4.0-beta.35",
"@hwy-js/dev": "0.4.0-beta.35",
"@types/node": "^20.8.3",
"@types/nprogress": "^0.2.1",
"htmx.org": "^1.9.6",
Expand Down
6 changes: 6 additions & 0 deletions packages/build/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @hwy-js/build

## 0.4.0-beta.35

### Patch Changes

- tweak build step, auto read latest version in create-hwy

## 0.4.0-beta.34

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hwy-js/build",
"version": "0.4.0-beta.34",
"version": "0.4.0-beta.35",
"author": {
"name": "Samuel J. Cook"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/build/src/run-build-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ async function runBuildTasks({ log, isDev }: { isDev: boolean; log?: string }) {
if (is_first_run) {
is_first_run = false;

if (fs.existsSync(dist_path)) {
// look for a hwy-specific file that indicates a previous build
if (fs.existsSync(path.join(dist_path, "public-reverse-map.js"))) {
hwyLog("Removing old dist folder...");
fs.rmSync(dist_path, { recursive: true, force: true });
}
Expand Down
2 changes: 2 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# hwy

## 0.4.0-beta.35

## 0.4.0-beta.34

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hwy",
"version": "0.4.0-beta.34",
"version": "0.4.0-beta.35",
"author": {
"name": "Samuel J. Cook"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/create-hwy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-hwy

## 0.4.0-beta.35

### Patch Changes

- tweak build step, auto read latest version in create-hwy

## 0.4.0-beta.34

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-hwy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-hwy",
"version": "0.4.0-beta.34",
"version": "0.4.0-beta.35",
"author": {
"name": "Samuel J. Cook"
},
Expand Down
7 changes: 6 additions & 1 deletion packages/create-hwy/src/get-package-json.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { DEFAULT_PORT } from "../../common/index.mjs";
import type { Options } from "../index.js";
import { get_is_target_deno } from "./utils.js";
import fs from "node:fs";

const latest_hwy_version = JSON.parse(
fs.readFileSync(new URL("../package.json", import.meta.url), "utf-8"),
).version;

const VERSIONS = {
HWY: "^0.4.0-beta.33",
HWY: `^${latest_hwy_version}`,
HONO_NODE_SERVER: "^1.2.0",
HONO: "^3.7.5",
HTMX: "^1.9.6",
Expand Down
2 changes: 2 additions & 0 deletions packages/dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @hwy-js/dev

## 0.4.0-beta.35

## 0.4.0-beta.34

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hwy-js/dev",
"version": "0.4.0-beta.34",
"version": "0.4.0-beta.35",
"author": {
"name": "Samuel J. Cook"
},
Expand Down

0 comments on commit 68e6e47

Please sign in to comment.