Skip to content

Commit e74f0ba

Browse files
Yair Even OrYair Even Or
Yair Even Or
authored and
Yair Even Or
committed
Added a few packages to have it properly transpiled to be consumed as 3rd-party package
1 parent dc851d8 commit e74f0ba

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

package.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,25 @@
2323
"yarn": false,
2424
"yolo": true
2525
},
26+
"babel": {
27+
"presets": [
28+
"@babel/preset-env",
29+
[
30+
"@babel/preset-react",
31+
{
32+
"runtime": "automatic"
33+
}
34+
]
35+
]
36+
},
2637
"scripts": {
38+
"start": "npm run build && npm run header",
39+
"build": "babel src/react-bouncer.js --out-file react-bouncer.js --source-maps",
40+
"header": "headr react-bouncer.js -o=react-bouncer.js --version --homepage --author",
41+
"version": "npm run build && npm run header && git add .",
2742
"prepublishOnly": "pkg-ok"
2843
},
29-
"author": {
30-
"name": "Yair Even-Or",
31-
"email": "vsync.design@gmail.com"
32-
},
44+
"author": "Yair Even-Or <vsync.design@gmail.com>",
3345
"main": "react-bouncer.js",
3446
"repository": {
3547
"type": "git",
@@ -39,12 +51,18 @@
3951
"url": "https://github.com/yaireo/react-bouncer/issues"
4052
},
4153
"files": [
42-
"react-bouncer.js"
54+
"react-bouncer.js",
55+
"react-bouncer.js.map"
4356
],
4457
"peerDependencies": {
4558
"react": "^16.18.0"
4659
},
4760
"devDependencies": {
48-
"lodash.debounce": "^4.0.8"
61+
"lodash.debounce": "^4.0.8",
62+
"headr": "^0.0.4",
63+
"@babel/cli": "^7.18.10",
64+
"@babel/core": "^7.18.13",
65+
"@babel/preset-env": "^7.18.10",
66+
"@babel/preset-react": "^7.18.6"
4967
}
5068
}

0 commit comments

Comments
 (0)