Skip to content

Commit 2cb1616

Browse files
authored
Merge pull request #6 from strapi/chore/prepublish
chore: add prepublishOnly script
2 parents ad968be + cb48b0a commit 2cb1616

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ yarn-error.log*
3535
!.yarn/releases
3636
!.yarn/sdks
3737
!.yarn/versions
38+
39+
# npm
40+
*.tgz

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/*.d.ts.map

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"lint:fix": "yarn lint --fix",
4747
"postinstall": "husky install",
4848
"prepack": "pinst --disable",
49+
"prepublishOnly": "yarn build",
4950
"postpack": "pinst --enable",
5051
"test": "yarn run test:ts && yarn run test:unit",
5152
"test:unit": "jest",
@@ -78,6 +79,7 @@
7879
"jest": "^29.7.0",
7980
"jest-environment-jsdom": "^29.7.0",
8081
"lint-staged": "^15.0.1",
82+
"pinst": "^3.0.0",
8183
"prettier": "^3.0.3",
8284
"react": "^18.0.0",
8385
"react-dom": "^18.0.0",

yarn.lock

+10
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,7 @@ __metadata:
13421342
jest: ^29.7.0
13431343
jest-environment-jsdom: ^29.7.0
13441344
lint-staged: ^15.0.1
1345+
pinst: ^3.0.0
13451346
prettier: ^3.0.3
13461347
react: ^18.0.0
13471348
react-dom: ^18.0.0
@@ -7244,6 +7245,15 @@ __metadata:
72447245
languageName: node
72457246
linkType: hard
72467247

7248+
"pinst@npm:^3.0.0":
7249+
version: 3.0.0
7250+
resolution: "pinst@npm:3.0.0"
7251+
bin:
7252+
pinst: bin.js
7253+
checksum: 4ae48a6a60f79c37071233af51b4d91bfc85cfa3c12b66ccda60cdb642b4d14a4ab0cb3587afc55b1f6192cea1772a5e4822026a0d0d3528296edef00cc2d61f
7254+
languageName: node
7255+
linkType: hard
7256+
72477257
"pirates@npm:^4.0.4":
72487258
version: 4.0.6
72497259
resolution: "pirates@npm:4.0.6"

0 commit comments

Comments
 (0)