Skip to content

Commit 2e56aa8

Browse files
committed
🐛 upgrade package
1 parent 3df61ef commit 2e56aa8

File tree

10 files changed

+673
-4
lines changed

10 files changed

+673
-4
lines changed

.github/workflows/ci.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
tags:
8+
- '!*' # Do not execute on tags
9+
env:
10+
NAME: ${{vars.NAME}}
11+
EMAIL: ${{vars.EMAIL}}
12+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
13+
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
14+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
15+
FORCE_COLOR: 1
16+
17+
18+
jobs:
19+
test:
20+
strategy:
21+
matrix:
22+
platform: [ubuntu-latest, windows-latest, macOS-latest]
23+
node: [20.x, 22.x]
24+
name: Test with Node ${{matrix.node}} on ${{matrix.platform}}
25+
runs-on: ${{matrix.platform}}
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{matrix.node}}
31+
- run: npm ci
32+
- run: npm test
33+
34+
35+
coverage:
36+
name: Publish coverage
37+
needs: [test]
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-node@v3
42+
with:
43+
node-version: 22.x
44+
- run: npm ci
45+
- run: npm test
46+
- uses: paambaati/[email protected]
47+
- uses: coverallsapp/github-action@master
48+
with:
49+
github-token: ${{secrets.GITHUB_TOKEN}}
50+
51+
52+
docs:
53+
name: Publish docs
54+
needs: [test]
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: actions/setup-node@v3
59+
with:
60+
node-version: 22.x
61+
- uses: nodef/[email protected]
62+
- run: npm i -g typescript typedoc
63+
- run: npm ci
64+
- run: npm run publish-docs
65+
66+
67+
packages:
68+
name: Publish packages
69+
needs: [test]
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v4
73+
- uses: actions/setup-node@v3
74+
with:
75+
node-version: 22.x
76+
- uses: nodef/[email protected]
77+
with:
78+
entries: access = public
79+
- run: npm i -g typescript rollup typedoc browserify terser
80+
- run: npm ci
81+
- run: npm run publish-packages

.github/workflows/pr.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PR
2+
on: [pull_request]
3+
env:
4+
FORCE_COLOR: 1
5+
6+
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
platform: [ubuntu-latest, windows-latest, macOS-latest]
12+
node: [20.x, 22.x]
13+
name: Test with Node ${{ matrix.node }} on ${{ matrix.platform }}
14+
runs-on: ${{ matrix.platform }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- run: npm ci
21+
- run: npm test

.npmignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Source only
2+
.gitmodules
3+
.github/
4+
.docs/
5+
src/
6+
data/
7+
wiki/
8+
tests/
9+
unused/
10+
test.js
11+
CITATION.cff
12+
TODO
13+
14+
# Build
15+
.build/
16+
coverage/
17+
.travis.yml
18+
.coveralls.yml
19+
tsconfig.json
20+
jest.config.js
21+
rollup.config.js
22+
build.js

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-20 Subhajit Sahu
3+
Copyright (c) 2018-25 Subhajit Sahu
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
collectCoverage: true,
3+
coverageDirectory: "coverage",
4+
coverageProvider: "v8",
5+
transform: {
6+
"^.+\\.(t|j)sx?$": "ts-jest"
7+
},
8+
};

package-lock.json

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "extra-sql",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "SQL is designed for managing or stream processing data in an RDBMS.",
55
"main": "index.js",
66
"scripts": {

rollup.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
const resolve = require('@rollup/plugin-node-resolve').default;
2+
const commonjs = require('@rollup/plugin-commonjs').default;
3+
const cleanup = require('rollup-plugin-cleanup');
4+
const dts = require('rollup-plugin-dts').default;
5+
6+
7+
module.exports = [{
8+
input: '.build/index.d.ts',
9+
output: {
10+
file: 'index.d.ts',
11+
format: 'es',
12+
exports: 'auto'
13+
},
14+
plugins: [dts()],
15+
}, {
16+
input: '.build/index.js',
17+
output: {
18+
file: 'index.js',
19+
format: 'cjs',
20+
exports: 'auto'
21+
},
22+
plugins: [resolve(), commonjs(), cleanup({comments: 'none'})],
23+
}, {
24+
input: '.build/index.js',
25+
output: {
26+
file: 'index.mjs',
27+
format: 'es',
28+
exports: 'auto'
29+
},
30+
plugins: [resolve(), commonjs(), cleanup({comments: 'none'})],
31+
}];

0 commit comments

Comments
 (0)