Skip to content

Commit

Permalink
feat: ipc messaging, better types, graceful sync, remote fs align to …
Browse files Browse the repository at this point in the history
…sdk, performance, misc, cleanup
  • Loading branch information
Dwynr committed Jun 28, 2024
1 parent d6c5874 commit 1e163ba
Show file tree
Hide file tree
Showing 13 changed files with 1,019 additions and 307 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/npmPublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish to npm

on:
release:
types: [published]

# Allow one concurrent deployment
concurrency:
group: "npm"
cancel-in-progress: true

env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: --max-old-space-size=6144

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
- name: Install dependencies
run: npm install --package-lock-only && npm ci
- name: Build
run: npm run build
- name: Configure npm for publishing
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Cleanup
run: rm -rf ~/.npmrc
169 changes: 34 additions & 135 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@filen/sync",
"version": "0.1.1",
"version": "0.1.2",
"description": "Filen Sync",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -49,10 +49,9 @@
"wait-on": "^7.2.0"
},
"dependencies": {
"@filen/sdk": "^0.1.92",
"@filen/sdk": "^0.1.128",
"@parcel/watcher": "^2.4.1",
"fs-extra": "^11.2.0",
"msgpackr": "^1.10.1",
"uuid": "^9.0.1"
"uuid": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SyncPair } from "./types"
import { type SyncPair } from "./types"
import Sync from "./lib/sync"
import { type FilenSDKConfig } from "@filen/sdk"

Expand Down
Loading

0 comments on commit 1e163ba

Please sign in to comment.