Skip to content

Commit eb3f158

Browse files
committed
fix: embed sqlite3
1 parent 4e5af6e commit eb3f158

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

.github/workflows/lactame.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
1-
name: Deploy build on lactame.com
1+
name: Deploy on lactame.com
22

33
on:
4+
workflow_dispatch:
45
release:
56
types: [published]
67

7-
env:
8-
NODE_VERSION: 24.x
9-
108
jobs:
119
deploy:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v5
15-
- name: Get package name
16-
run: echo "PACKAGE_NAME=$(jq .name package.json | tr -d '"')" >> $GITHUB_ENV
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: ${{ env.NODE_VERSION }}
20-
- name: Install dependencies
21-
run: npm install
22-
- name: Build project
23-
run: npm run build
24-
- name: Deploy to lactame.com
25-
uses: zakodium/lactame-action@v1
26-
with:
27-
token: ${{ secrets.LACTAME_TOKEN }}
28-
name: ${{ env.PACKAGE_NAME }}
29-
folder: dist
10+
# Documentation: https://github.com/zakodium/workflows#lactame-deploy
11+
uses: zakodium/workflows/.github/workflows/lactame-deploy.yml@lactame-deploy-v1
12+
secrets:
13+
lactame-token: ${{ secrets.LACTAME_TOKEN }}

demo/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ <h1>DLS Analysis Demo</h1>
4343
const file = event.target.files[0];
4444
if (!file) return;
4545
const arrayBuffer = await file.arrayBuffer();
46-
const measurements = await ZmesParser.fromZmes(
47-
new Uint8Array(arrayBuffer),
48-
);
46+
const measurements = await ZmesParser.fromZmes(arrayBuffer);
4947
console.log(measurements);
5048
const container = document.getElementById('results');
5149
container.innerHTML = '';

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"src"
2121
],
2222
"scripts": {
23-
"build": "npm run tsc && cheminfo-build --entry lib/index.js --root ZmesParser && cp node_modules/@sqlite.org/sqlite-wasm/dist/sqlite3.wasm dist/",
23+
"build": "npm run tsc && cheminfo-build --entry lib/index.js --root ZmesParser",
2424
"check-types": "tsc --noEmit",
2525
"clean": "rimraf coverage lib",
2626
"eslint": "eslint .",
@@ -39,7 +39,6 @@
3939
"zmes-parser": "^1.0.0"
4040
},
4141
"devDependencies": {
42-
"@sqlite.org/sqlite-wasm": "^3.51.2-build6",
4342
"@types/node": "^25.3.0",
4443
"@vitest/coverage-v8": "^4.0.18",
4544
"@zakodium/tsconfig": "^1.0.2",

0 commit comments

Comments
 (0)