Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmark committed Nov 13, 2023
1 parent a9b9da2 commit f4c1f2f
Show file tree
Hide file tree
Showing 15 changed files with 8,079 additions and 4,875 deletions.
30 changes: 0 additions & 30 deletions .flowconfig

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish Package to npmjs
on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

./node_modules/.bin/nano-staged
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
all: build

node_modules: yarn.lock
yarn
node_modules:
npm install

.PHONY: build
build: node_modules
yarn build
yarn flow-copy-source src lib
npm run build

.PHONY: test
test: node_modules
yarn flow check
yarn test
npm run typecheck
npm run test
15 changes: 0 additions & 15 deletions babel.config.json

This file was deleted.

23 changes: 23 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
collectCoverage: true,
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
"transform": {
"\\.ts$": [
"ts-jest",
{
"useESM": true
}
]
},
preset: 'ts-jest/presets/default-esm',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.ts$': '$1',
},
};
12 changes: 0 additions & 12 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit f4c1f2f

Please sign in to comment.