Skip to content

Commit ac7fabd

Browse files
committed
chore(babel): disable plugin and build source on prepare stage
1 parent a228e86 commit ac7fabd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ module.exports = {
1010
},
1111
},
1212
],
13-
"react-native-reanimated/plugin",
13+
// "react-native-reanimated/plugin",
1414
],
1515
};

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,26 @@
88
"main": "./dist/index.js",
99
"types": "./dist/index.d.ts",
1010
"files": [
11+
"src",
1112
"dist"
1213
],
1314
"scripts": {
1415
"start": "cd example; npm start",
1516
"dev": "cd example; npm run dev",
1617
"android": "cd example; npm run android",
1718
"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",
1920
"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/",
2122
"build:typings": "NODE_ENV=production tsc --project tsconfig.build.json --declaration",
2223
"prettify": "prettier --write src/ test/",
2324
"lint": "eslint src/ test/",
2425
"prettycheck": "prettier --check src/ test/",
2526
"typecheck": "tsc --noEmit",
2627
"spec": "jest",
2728
"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"
2931
},
3032
"peerDependencies": {
3133
"react-native-gesture-handler": ">=2",

0 commit comments

Comments
 (0)