Skip to content

Commit

Permalink
feat: ESM (#7)
Browse files Browse the repository at this point in the history
* upgrade deps and "lint"

* cjs + esm build

* remove test stuff from package

* clean up anys

* remove need for disabling casting / no any

* simplify isAction

* switch to vitest
  • Loading branch information
mikew authored Dec 12, 2023
1 parent c90845c commit 5cda9f0
Show file tree
Hide file tree
Showing 21 changed files with 16,807 additions and 15,618 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
// If the project uses prettier:
'@promoboxx/eslint-config/prettier',
// If the project uses jest:
'@promoboxx/eslint-config/jest',
// '@promoboxx/eslint-config/jest',
// If the project uses react:
// '@promoboxx/eslint-config/react',
// If the project uses graphql:
Expand Down
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ endif

build: prepare-when-local
rm -rf lib/
npx eslint --max-warnings 0 --ext js,jsx,ts,tsx src/
npx tsc
./node_modules/.bin/concurrently './node_modules/.bin/eslint --max-warnings 0 --ext js,jsx,ts,tsx src/' './node_modules/.bin/tsc --noEmit' './node_modules/.bin/tsup'
rm -rf lib/esm/test/ lib/cjs/test/
find ./lib -type f -name '*.test.*' -delete

test: prepare-when-local
ifeq ($(CI),true)
npx jest --ci
else
npx --node-arg --inspect=9241 jest --watch
endif
./node_modules/.bin/vitest

deploy:
ifeq ($(GITHUB_REF),refs/heads/main)
Expand Down
196 changes: 0 additions & 196 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 5cda9f0

Please sign in to comment.