chore: update semantic release

This commit is contained in:
Gleb Bahmutov 2019-04-30 10:51:27 -04:00
parent f5503c4756
commit 46cb474a5d
3 changed files with 5682 additions and 1522 deletions

7128
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -62,7 +62,7 @@
"unit": "mocha src/*-spec.js",
"unused-deps": "dependency-check --unused --no-dev . --entry src/add-initial-snapshot-file.js",
"postinstall": "node src/add-initial-snapshot-file.js",
"semantic-release": "semantic-release pre && npm publish --access public && semantic-release post",
"semantic-release": "semantic-release",
"cypress:open": "cypress open",
"cypress:run": "cypress run"
},
@ -83,7 +83,7 @@
"license-checker": "15.0.0",
"mocha": "4.1.0",
"pre-git": "3.17.1",
"semantic-release": "8.2.3"
"semantic-release": "^15.13.3"
},
"dependencies": {
"@wildpeaks/snapshot-dom": "1.2.1",

View file

@ -36,10 +36,10 @@ function registerCypressSnapshot () {
la(is.fn(global.after), 'missing global after function')
la(is.object(global.Cypress), 'missing Cypress object')
const useRelative = Cypress.config("useRelativeSnapshots")
const useRelative = Cypress.config('useRelativeSnapshots')
const config = {
useRelativeSnapshots: useRelative === undefined ? DEFAULT_CONFIG_OPTIONS.useRelativeSnapshots : useRelative,
snapshotFileName: Cypress.config("snapshotFileName") || DEFAULT_CONFIG_OPTIONS.snapshotFileName
snapshotFileName: Cypress.config('snapshotFileName') || DEFAULT_CONFIG_OPTIONS.snapshotFileName
}
console.log('registering @cypress/snapshot')