|
8 | 8 | "main": "./dist/index.js", |
9 | 9 | "types": "./dist/index.d.ts", |
10 | 10 | "files": [ |
11 | | - "dist" |
| 11 | + "dist", |
| 12 | + "dist-alt" |
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 | 19 | "build": "npm run build:source -- --delete-dir-on-start && npm run build:typings", |
19 | | - "build2": "tsup src/index.ts --format cjs --sourcemap --dts --clean", |
| 20 | + "build:alt": "rm -rf alt/; cp -rf dist/ dist-alt/; npm run build:source:alt", |
| 21 | + "build:bundle": "tsup src/index.ts --format cjs --sourcemap --dts --clean", |
20 | 22 | "build:watch": "babel --verbose --source-maps --extensions .js,.ts,.tsx --out-dir dist/ --ignore **/__tests__ src/ --watch", |
21 | 23 | "build:source": "babel --verbose --source-maps --extensions .js,.ts,.tsx --out-dir dist/ --ignore **/__tests__ src/", |
| 24 | + "build:source:alt": "babel --verbose --source-maps --extensions .js,.ts,.tsx --out-dir dist-alt/ --ignore **/__tests__ --config-file ./babel.config.alt.js src/", |
22 | 25 | "build:typings": "tsc --project tsconfig.build.json --declaration", |
23 | 26 | "prettify": "prettier --write src/ test/", |
24 | 27 | "lint": "eslint src/ test/", |
25 | 28 | "prettycheck": "prettier --check src/ test/", |
26 | 29 | "typecheck": "tsc --noEmit", |
27 | 30 | "spec": "jest", |
28 | 31 | "test": "npm run typecheck && npm run spec && npm run lint && npm run prettycheck", |
29 | | - "prepublishOnly": "npm run build" |
| 32 | + "prepublishOnly": "npm run build && npm run build:alt" |
30 | 33 | }, |
31 | 34 | "peerDependencies": { |
32 | 35 | "react-native-gesture-handler": ">=2", |
|
0 commit comments