Skip to content

Commit

Permalink
beta.37
Browse files Browse the repository at this point in the history
  • Loading branch information
sjc5 committed Oct 21, 2023
1 parent 371a2b0 commit 37b6738
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 24 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-sloths-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hwy-js/build": patch
---

rmv rmSync instance, not really necessary
9 changes: 5 additions & 4 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
"tag": "beta",
"initialVersions": {
"docs": "0.0.0",
"@hwy-js/build": "0.4.0-beta.35",
"hwy": "0.4.0-beta.35",
"create-hwy": "0.4.0-beta.35",
"@hwy-js/dev": "0.4.0-beta.35",
"@hwy-js/build": "0.4.0-beta.36",
"hwy": "0.4.0-beta.36",
"create-hwy": "0.4.0-beta.36",
"@hwy-js/dev": "0.4.0-beta.36",
"cf-pages-tester": "0.0.0",
"tester": "0.0.0"
},
"changesets": [
"curvy-goats-hear",
"hip-sloths-guess",
"rotten-boxes-watch",
"three-cooks-fold"
]
Expand Down
10 changes: 9 additions & 1 deletion CHANGESETS-DIRECTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ pnpm build
https://github.com/changesets/changesets/blob/main/docs/prereleases.md

```sh
pnpm build
pnpm changeset pre exit
pnpm changeset pre enter beta
pnpm changeset version
pnpm build
pnpm changeset publish
git add .
git commit -am "whatever"
Expand All @@ -34,6 +34,14 @@ pnpm changeset

## Whenever you want to release

1. Run a build!

```sh
pnpm build
```

2. Bump versions

```sh
pnpm changeset version
```
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.36"
"hwy": "0.4.0-beta.37"
},
"devDependencies": {
"@hwy-js/build": "0.4.0-beta.36",
"@hwy-js/dev": "0.4.0-beta.36",
"@hwy-js/build": "0.4.0-beta.37",
"@hwy-js/dev": "0.4.0-beta.37",
"@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.37

### Patch Changes

- rmv rmSync instance, not really necessary

## 0.4.0-beta.36

## 0.4.0-beta.35
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.36",
"version": "0.4.0-beta.37",
"author": {
"name": "Samuel J. Cook"
},
Expand Down
12 changes: 0 additions & 12 deletions packages/build/src/run-build-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ async function handle_prebuild({ is_dev }: { is_dev: boolean }) {
}
}

let is_first_run = true;

async function runBuildTasks({ log, isDev }: { isDev: boolean; log?: string }) {
hwyLog(`New build initiated${log ? ` (${log})` : ""}`);

Expand All @@ -72,16 +70,6 @@ async function runBuildTasks({ log, isDev }: { isDev: boolean; log?: string }) {

const dist_path = path.join(process.cwd(), "dist");

if (is_first_run) {
is_first_run = false;

// 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 });
}
}

await fs.promises.mkdir(dist_path, { recursive: true });

// needs to happen once first pre-css bundling
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.37

## 0.4.0-beta.36

### 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.36",
"version": "0.4.0-beta.37",
"author": {
"name": "Samuel J. Cook"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/create-hwy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# create-hwy

## 0.4.0-beta.37

## 0.4.0-beta.36

## 0.4.0-beta.35
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.36",
"version": "0.4.0-beta.37",
"author": {
"name": "Samuel J. Cook"
},
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.37

## 0.4.0-beta.36

## 0.4.0-beta.35
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.36",
"version": "0.4.0-beta.37",
"author": {
"name": "Samuel J. Cook"
},
Expand Down

0 comments on commit 37b6738

Please sign in to comment.