Skip to content

Commit b8976b4

Browse files
committed
Add parcel build
1 parent 67a0a0d commit b8976b4

File tree

2 files changed

+105
-1
lines changed

2 files changed

+105
-1
lines changed

package-lock.json

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
"name": "react-log-hook",
33
"version": "0.1.0",
44
"description": "React hook for logging per component lifecycle",
5-
"main": "dist/index.js",
5+
"main": "dist/main.js",
6+
"module": "dist/module.js",
7+
"types": "dist/types.d.ts",
8+
"engines": {
9+
"node": ">= 12"
10+
},
611
"scripts": {
712
"start:demo": "parcel demo/index.html --dist-dir ./build",
13+
"start": "parcel src/index.tsx --dist-dir ./dist",
14+
"build": "parcel build src/index.tsx --dist-dir ./dist --no-source-maps",
815
"test": "jest",
916
"lint": "npx eslint \"./**/*.ts\" --cache --cache-strategy content",
1017
"storybook": "start-storybook -p 6006",
@@ -33,6 +40,8 @@
3340
"devDependencies": {
3441
"@babel/core": "^7.20.2",
3542
"@jest/globals": "^29.3.1",
43+
"@parcel/packager-ts": "^2.8.0",
44+
"@parcel/transformer-typescript-types": "^2.8.0",
3645
"@storybook/addon-actions": "^6.5.13",
3746
"@storybook/addon-console": "^1.2.3",
3847
"@storybook/addon-essentials": "^6.5.13",

0 commit comments

Comments
 (0)