Skip to content

Commit c3cd564

Browse files
authored
fix: generate typings directly in lib instead of lib/src (styleguidist#1756)
1 parent 1db5f41 commit c3cd564

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/node.js.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,27 @@ jobs:
2828
- uses: actions/setup-node@v1
2929

3030
- run: npm ci
31-
- run: |
32-
# Compile JS
33-
npm run compile
34-
# Build all examples
31+
- run: npm run compile
32+
33+
- name: Build all examples
34+
run: |
3535
npm run build:basic
3636
npm run build:customised
3737
npm run build:sections
38-
# Check that examples really works: no JS errors on load
38+
39+
- name: Check that examples really works - no JS errors on load
40+
run: |
3941
npm run test:browser:pre
4042
npm run test:browser:basic
4143
npm run test:browser:customised
4244
npm run test:browser:sections
43-
# Run integration tests with Cypress
45+
46+
- name: Run Cypress tests
47+
run: |
4448
npm run test:cypress:pre
4549
npm run test:cypress:startServer &
4650
npm run test:cypress:startServer:post
47-
npm run test:cypress:run
51+
npm run test:cypress:run
4852
4953
build:
5054
runs-on: ubuntu-latest

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
"test:browser:customised": "node test/browser.js examples/customised/styleguide/index.html",
195195
"test:browser:sections": "node test/browser.js examples/sections/styleguide/index.html",
196196
"format": "prettier --loglevel warn --write \"**/*.{js,md}\"",
197-
"test:cypress:pre": "npm i --no-save cypress@3.0.2 wait-on",
197+
"test:cypress:pre": "npm i --no-save cypress@6.5.0 wait-on",
198198
"test:cypress:open": "cypress open",
199199
"test:cypress:run": "cypress run",
200200
"test:cypress:startServer": "node test/run.server.js",

tsconfig.types.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// only generate typings when using this tsconfig
55
"declaration": true
66
},
7+
// ignore the dangerfile in calculation of the root folder
8+
"files": [],
79
// avoid generating typings for tests and mocks
810
"exclude": [
911
"dangerfile.ts",

0 commit comments

Comments
 (0)