Skip to content

Commit 1b15b56

Browse files
authored
fix: make @babel/types and @babel/generator direct dependencies (#16)
1 parent 74a48ec commit 1b15b56

File tree

3 files changed

+21
-35
lines changed

3 files changed

+21
-35
lines changed

.github/workflows/test.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
matrix:
3434
include:
3535
- name: Component Integration
36-
command: cypress:component
36+
component: true
3737
- name: E2E Integration
38-
command: cypress:e2e
38+
component: false
3939
runs-on: ubuntu-latest
4040
steps:
4141
- name: Checkout
@@ -46,8 +46,10 @@ jobs:
4646
with:
4747
node-version-file: .nvmrc
4848

49-
- name: Install
50-
run: npm ci
51-
5249
- name: Integration Tests
53-
run: npm run ${{ matrix.command }}
50+
uses: cypress-io/github-action@v4
51+
with:
52+
install: true
53+
build: npm run build
54+
browser: chrome
55+
component: ${{ matrix.component }}

package-lock.json

Lines changed: 9 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"dependencies": {
7+
"@babel/generator": "7.18.2",
78
"@babel/parser": "7.18.5",
9+
"@babel/types": "7.18.4",
810
"glob": "8.0.3"
911
},
1012
"peerDependencies": {
@@ -38,8 +40,8 @@
3840
"scripts": {
3941
"build": "tsc --skipLibCheck && mkdir -p node_modules/cypress-codegen/dist && cp -r dist package.json node_modules/cypress-codegen",
4042
"cypress:open": "cypress open",
41-
"cypress:component": "npm run build && cypress run --component",
42-
"cypress:e2e": "npm run build && cypress run",
43+
"cypress:component": "cypress run --component",
44+
"cypress:e2e": "cypress run",
4345
"format": "prettier --write .",
4446
"format-check": "prettier .",
4547
"lint": "eslint --quiet --fix src/**/*",

0 commit comments

Comments
 (0)