|
2 | 2 | "name": "netlify", |
3 | 3 | "description": "Netlify Node.js API client", |
4 | 4 | "version": "4.0.3", |
5 | | - "ava": { |
6 | | - "files": [ |
7 | | - "src/**/*.test.js" |
8 | | - ], |
9 | | - "compileEnhancements": false, |
10 | | - "babel": false |
11 | | - }, |
12 | 5 | "files": [ |
13 | 6 | "src", |
14 | 7 | "dist", |
15 | 8 | "!*.test.js*", |
16 | 9 | "!*~" |
17 | 10 | ], |
18 | | - "main": "src/index.js", |
| 11 | + "main": "./src/index.js", |
19 | 12 | "unpkg": "./dist/main.js", |
20 | 13 | "umd:main": "./dist/main.js", |
21 | 14 | "browser": { |
22 | 15 | "./src/deploy/index.js": "./src/deploy/index.browser.js" |
23 | 16 | }, |
24 | 17 | "scripts": { |
25 | | - "prepublishOnly": "run-s build && git push && git push --tags && gh-release", |
26 | | - "ci": "run-s test build", |
27 | | - "test": "run-s test:* test:dev:*", |
28 | | - "test-ci": "run-s test:* test:ci:*", |
29 | | - "test:lint": "eslint --ignore-path .gitignore --fix --cache --format=codeframe --max-warnings=0 \"src/**/*.js\" \"*.js\"", |
30 | | - "test:prettier": "prettier --ignore-path .gitignore --write --loglevel warn \"src/**/*.js\" \"*.{js,md,yml,json}\"", |
31 | | - "test:dev:ava": "ava", |
32 | | - "test:ci:ava": "nyc -r lcovonly -r text -r json ava", |
33 | | - "build": "run-s build:*", |
34 | | - "build:webpack": "webpack", |
35 | | - "clean": "rimraf dist coverage", |
36 | | - "version": "auto-changelog -p --template keepachangelog --breaking-pattern breaking && npm run test:prettier && git add CHANGELOG.md" |
| 18 | + "prepublishOnly": "npm run build && git push && git push --tags && gh-release", |
| 19 | + "test": "npm run format && npm run test:dev", |
| 20 | + "format": "run-s format:*", |
| 21 | + "format:lint": "eslint --ignore-path .gitignore --fix --cache --format=codeframe --max-warnings=0 \"src/**/*.js\"", |
| 22 | + "format:prettier": "prettier --ignore-path .gitignore --write --loglevel warn \"src/**/*.js\" \"*.{js,md,yml,json}\"", |
| 23 | + "test:dev": "ava", |
| 24 | + "test:ci": "nyc -r lcovonly -r text -r json ava", |
| 25 | + "update-snapshots": "ava -u", |
| 26 | + "build": "webpack", |
| 27 | + "version": "auto-changelog -p --template keepachangelog --breaking-pattern breaking && npm run format:prettier && git add CHANGELOG.md" |
| 28 | + }, |
| 29 | + "husky": { |
| 30 | + "hooks": { |
| 31 | + "pre-push": "npm run format" |
| 32 | + } |
37 | 33 | }, |
38 | 34 | "license": "MIT", |
39 | 35 | "author": "Netlify Inc.", |
|
0 commit comments