|
8 | 8 | "main": "./dist/index.js", |
9 | 9 | "types": "./dist/index.d.ts", |
10 | 10 | "files": [ |
| 11 | + "src", |
11 | 12 | "dist" |
12 | 13 | ], |
13 | 14 | "scripts": { |
14 | 15 | "start": "cd example; npm start", |
15 | 16 | "dev": "cd example; npm run dev", |
16 | 17 | "android": "cd example; npm run android", |
17 | 18 | "ios": "cd example; npm run ios", |
18 | | - "build": "npm run build:source && npm run build:typings", |
| 19 | + "build": "npm run build:source -- --delete-dir-on-start && npm run build:typings", |
19 | 20 | "build:watch": "NODE_ENV=production babel --verbose --source-maps --extensions .js,.ts,.tsx --out-dir dist/ --ignore **/__tests__ src/ --watch", |
20 | | - "build:source": "NODE_ENV=production babel --verbose --source-maps --extensions .js,.ts,.tsx --out-dir dist/ --delete-dir-on-start --ignore **/__tests__ src/", |
| 21 | + "build:source": "NODE_ENV=production babel --verbose --source-maps --extensions .js,.ts,.tsx --out-dir dist/ --ignore **/__tests__ src/", |
21 | 22 | "build:typings": "NODE_ENV=production tsc --project tsconfig.build.json --declaration", |
22 | 23 | "prettify": "prettier --write src/ test/", |
23 | 24 | "lint": "eslint src/ test/", |
24 | 25 | "prettycheck": "prettier --check src/ test/", |
25 | 26 | "typecheck": "tsc --noEmit", |
26 | 27 | "spec": "jest", |
27 | 28 | "test": "npm run typecheck && npm run spec && npm run lint && npm run prettycheck", |
28 | | - "prepublishOnly": "npm run build" |
| 29 | + "prepublishOnly": "npm run build", |
| 30 | + "prepare": "npm run build:source" |
29 | 31 | }, |
30 | 32 | "peerDependencies": { |
31 | 33 | "react-native-gesture-handler": ">=2", |
|
0 commit comments