Skip to content

Commit

Permalink
ci: add in cjs test for http router
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Mar 25, 2023
1 parent 9458f38 commit 8bff8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Expand Up @@ -48,4 +48,5 @@ jobs:
- name: Test cjs can be required
run: |
node -e 'const middy = require("./packages/core/index.cjs"); middy()'
node -e 'const httpRouterHandler = require("./packages/http-router/index.cjs"); httpRouterHandler([])'
node -e 'const {transpileSchema, transpileLocale} = require("./packages/validator/transpile.cjs"); transpileSchema({}); transpileLocale("")'
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -24,6 +24,7 @@
"test:packages:typings": "lerna exec --bail --concurrency 5 tsd",
"release:tag": "git tag $npm_package_version && git push --tags",
"lerna:rm": "npm run lerna:rm:node_modules && npm run lerna:rm:lock",
"lerna:rm:cjs": "lerna exec -- rm -rf index.cjs && lerna exec -- rm -rf index.cjs.bak",
"lerna:rm:lock": "lerna exec -- rm -rf package-lock.json",
"lerna:rm:node_modules": "lerna exec -- rm -rf node_modules",
"lerna:update": "lerna exec --bail --concurrency 5 npm update && npm install",
Expand Down

0 comments on commit 8bff8f0

Please sign in to comment.