Skip to content

Commit

Permalink
Merge bbb30c1 into edb15cb
Browse files Browse the repository at this point in the history
  • Loading branch information
abramenal authored Mar 28, 2021
2 parents edb15cb + bbb30c1 commit 724d6cf
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: build
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
pull_request: {}

jobs:
build:
Expand Down Expand Up @@ -40,6 +39,7 @@ jobs:
- uses: actions/checkout@v2
- uses: gerred/actions/current-time@master
- run: npm ci
- run: npm run build
- name: Install dependencies and verify Cypress
uses: cypress-io/github-action@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions lib/file/getFileMimeType.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { extname } from 'path';

// eslint-disable-next-line import/no-extraneous-dependencies
import { getType } from 'mime';

export default function getFileMimeType(filePath) {
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">=8.2.1"
},
"scripts": {
"build": "microbundle build -i src/index.js -f cjs --no-generate-types",
"build": "microbundle build -i src/index.js -f cjs --target node --strict --no-compress --no-generate-types",
"lint": "eslint . --ext=js",
"test": "echo \"Error: no test specified\" && exit 0"
},
Expand Down Expand Up @@ -43,12 +43,11 @@
"husky": "^4.3.8",
"lint-staged": "^10.5.3",
"microbundle": "^0.13.0",
"mime": "^2.5.0",
"prettier": "^2.2.1"
},
"peerDependencies": {
"cypress": ">3.0.0"
},
"dependencies": {
"mime": "^2.5.0"
}
"dependencies": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// -- This is will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })

import '../../../../src/index';
import '../../../../dist/bundle';

// In your app, use:
// import 'cypress-file-upload';
2 changes: 1 addition & 1 deletion recipes/react-dropzone/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// -- This is will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })

import '../../../../src/index';
import '../../../../dist/bundle';

// In your app, use:
// import 'cypress-file-upload';
2 changes: 1 addition & 1 deletion recipes/react-html5-input/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// -- This is will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })

import '../../../../src/index';
import '../../../../dist/bundle';

// In your app, use:
// import 'cypress-file-upload';
2 changes: 1 addition & 1 deletion recipes/shadow-dom-native/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import 'cypress-shadow-dom';

import '../../../../src/index';
import '../../../../dist/bundle';

// In your app, use:
// import 'cypress-file-upload';

0 comments on commit 724d6cf

Please sign in to comment.