Skip to content

Commit fe30957

Browse files
committed
chore(build): provide alt build config bis
1 parent 148319d commit fe30957

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# build output
22
dist/
3+
dist-alt/
34

45
# generated types
56
.astro/

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: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,28 @@
88
"main": "./dist/index.js",
99
"types": "./dist/index.d.ts",
1010
"files": [
11-
"dist"
11+
"dist",
12+
"dist-alt"
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",
1819
"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",
2022
"build:watch": "babel --verbose --source-maps --extensions .js,.ts,.tsx --out-dir dist/ --ignore **/__tests__ src/ --watch",
2123
"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/",
2225
"build:typings": "tsc --project tsconfig.build.json --declaration",
2326
"prettify": "prettier --write src/ test/",
2427
"lint": "eslint src/ test/",
2528
"prettycheck": "prettier --check src/ test/",
2629
"typecheck": "tsc --noEmit",
2730
"spec": "jest",
2831
"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"
3033
},
3134
"peerDependencies": {
3235
"react-native-gesture-handler": ">=2",

0 commit comments

Comments
 (0)