Skip to content

Commit

Permalink
fixup install helper to create dist dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tantaman committed Mar 2, 2023
1 parent 606060d commit b7e0b21
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 5 deletions.
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"changesets": [
"fuzzy-bananas-rescue",
"six-buttons-sniff",
"smooth-ways-applaud"
]
}
5 changes: 5 additions & 0 deletions .changeset/six-buttons-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vlcn.io/crsqlite": patch
---

create dist dir on install
6 changes: 6 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @vlcn.io/crsqlite

## 0.8.0-next.2

### Patch Changes

- create dist dir on install

## 0.8.0-next.1

### Patch Changes
Expand Down
4 changes: 4 additions & 0 deletions core/nodejs-install-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ const binaryUrl = `https://github.com/vlcn-io/cr-sqlite/releases/download/${vers
console.log(`Look for prebuilt binary from ${binaryUrl}`);
const distPath = join("dist", `crsqlite.${ext}`);

if (!fs.existsSync(join(".", "dist"))) {
fs.mkdirSync(join(".", "dist"));
}

// download the file at the url, if it exists
let redirectCount = 0;
function get(url, cb) {
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vlcn.io/crsqlite",
"version": "0.8.0-next.1",
"version": "0.8.0-next.2",
"description": "CR-SQLite loadable extension",
"homepage": "https://vlcn.io",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions js/node-allinone/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @vlcn.io/crsqlite-allinone

## 0.7.0-next.2

### Patch Changes

- Updated dependencies
- @vlcn.io/crsqlite@0.8.0-next.2

## 0.7.0-next.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion js/node-allinone/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vlcn.io/crsqlite-allinone",
"version": "0.7.0-next.1",
"version": "0.7.0-next.2",
"description": "CR-SQLite loadable extension",
"homepage": "https://vlcn.io",
"type": "module",
Expand Down
7 changes: 7 additions & 0 deletions js/sync-reference/server-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @vlcn.io/server-core

## 0.7.0-next.2

### Patch Changes

- Updated dependencies
- @vlcn.io/crsqlite@0.8.0-next.2

## 0.7.0-next.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion js/sync-reference/server-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vlcn.io/server-core",
"type": "module",
"version": "0.7.0-next.1",
"version": "0.7.0-next.2",
"files": [
"dist",
"src"
Expand Down
8 changes: 8 additions & 0 deletions js/sync-reference/server-websocket/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @vlcn.io/sync-server

## 0.7.0-next.2

### Patch Changes

- Updated dependencies
- @vlcn.io/crsqlite@0.8.0-next.2
- @vlcn.io/server-core@0.7.0-next.2

## 0.7.0-next.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion js/sync-reference/server-websocket/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vlcn.io/server-websocket",
"type": "module",
"version": "0.7.0-next.1",
"version": "0.7.0-next.2",
"files": [
"dist",
"src"
Expand Down
6 changes: 6 additions & 0 deletions js/tests/nodeno-tests/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @vlcn.io/nodeno-tests

## 0.7.0-next.2

### Patch Changes

- @vlcn.io/crsqlite-allinone@0.7.0-next.2

## 0.7.0-next.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion js/tests/nodeno-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vlcn.io/nodeno-tests",
"type": "module",
"version": "0.7.0-next.1",
"version": "0.7.0-next.2",
"files": [
"dist"
],
Expand Down

0 comments on commit b7e0b21

Please sign in to comment.