beanbagdb 0.5.41 → 0.5.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "beanbagdb",
3
- "version": "0.5.41",
3
+ "version": "0.5.43",
4
4
  "description": "A JS library to introduce a schema layer to a No-SQL local database",
5
- "main": "dist/beanbagdb.esm.js",
6
- "module": "dist/beanbagdb.esm.js",
5
+ "main": "dist/bundle.node.js",
6
+ "module": "dist/bundle.browser.js",
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "test": "mocha",
@@ -43,6 +43,9 @@
43
43
  "@rollup/plugin-terser": "^0.4.4",
44
44
  "chai": "^5.1.1",
45
45
  "mocha": "^10.7.3",
46
- "rollup": "^4.21.2"
47
- }
46
+ "rollup": "^4.21.2",
47
+ "rollup-plugin-commonjs": "^10.1.0",
48
+ "rollup-plugin-node-resolve": "^5.2.0"
49
+ },
50
+ "files": ["dist"]
48
51
  }
@@ -1,41 +0,0 @@
1
- name: Release npm Package
2
-
3
- # Trigger the workflow on push to the "main" branch
4
- on:
5
- push:
6
- branches:
7
- - main
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
- permissions:
13
- contents: read
14
- id-token: write
15
- steps:
16
- # Step 1: Check out the code from the repository
17
- - name: Checkout code
18
- uses: actions/checkout@v4
19
-
20
- # Step 2: Set up Node.js environment
21
- - name: Setup Node.js
22
- uses: actions/setup-node@v4
23
- with:
24
- node-version: '20.17.0'
25
- cache: 'npm'
26
- registry-url: 'https://registry.npmjs.org'
27
-
28
- # Step 3: Install dependencies
29
- - name: Install dependencies
30
- run: npm install
31
-
32
- # Step 4: Run tests
33
- - name: Run tests
34
- run: npm test
35
-
36
- # Step 5: Publish to npm if tests pass
37
- - name: Publish to npm
38
- run: npm publish --access public
39
- env:
40
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41
-