Skip to content

Commit

Permalink
fix: generate typings directly in lib instead of lib/src (#1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Mar 18, 2021
1 parent 1db5f41 commit c3cd564
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/node.js.yml
Expand Up @@ -28,23 +28,27 @@ jobs:
- uses: actions/setup-node@v1

- run: npm ci
- run: |
# Compile JS
npm run compile
# Build all examples
- run: npm run compile

- name: Build all examples
run: |
npm run build:basic
npm run build:customised
npm run build:sections
# Check that examples really works: no JS errors on load
- name: Check that examples really works - no JS errors on load
run: |
npm run test:browser:pre
npm run test:browser:basic
npm run test:browser:customised
npm run test:browser:sections
# Run integration tests with Cypress
- name: Run Cypress tests
run: |
npm run test:cypress:pre
npm run test:cypress:startServer &
npm run test:cypress:startServer:post
npm run test:cypress:run
npm run test:cypress:run
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -194,7 +194,7 @@
"test:browser:customised": "node test/browser.js examples/customised/styleguide/index.html",
"test:browser:sections": "node test/browser.js examples/sections/styleguide/index.html",
"format": "prettier --loglevel warn --write \"**/*.{js,md}\"",
"test:cypress:pre": "npm i --no-save cypress@3.0.2 wait-on",
"test:cypress:pre": "npm i --no-save cypress@6.5.0 wait-on",
"test:cypress:open": "cypress open",
"test:cypress:run": "cypress run",
"test:cypress:startServer": "node test/run.server.js",
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.types.json
Expand Up @@ -4,6 +4,8 @@
// only generate typings when using this tsconfig
"declaration": true
},
// ignore the dangerfile in calculation of the root folder
"files": [],
// avoid generating typings for tests and mocks
"exclude": [
"dangerfile.ts",
Expand Down

0 comments on commit c3cd564

Please sign in to comment.