Skip to content

Commit e45bae6

Browse files
committed
Move webpack script to postinstall hook
1 parent 671cfd8 commit e45bae6

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/node.js.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ jobs:
1212
with:
1313
cache: "npm"
1414
- run: npm ci
15-
- run: npm run build
1615
- run: npm run type
1716
- run: npm test

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ Testing Library Extension for Chrome DevTools Recorder
66

77
1. Clone the repo
88
2. `npm install`
9-
3. `npm run build`
10-
4. Visit `chrome://extensions`
11-
5. Enable `Developer mode` via toggle switch in upper right corner
12-
6. Click `Load unpacked` button in upper left corner
13-
7. Select the `dist` directory
9+
3. Visit `chrome://extensions`
10+
4. Enable `Developer mode` via toggle switch in upper right corner
11+
5. Click `Load unpacked` button in upper left corner
12+
6. Select the `dist` directory
1413

1514
## Usage
1615

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"private": true,
33
"scripts": {
4+
"postinstall": "webpack --mode=production",
45
"start": "webpack --mode=development --watch",
5-
"build": "webpack --mode=production",
66
"type": "tsc",
77
"test": "jest"
88
},

0 commit comments

Comments
 (0)