Skip to content

Commit f889759

Browse files
authored
fix(package): remove postinstall with Husky (#2382)
1 parent 411875a commit f889759

File tree

5 files changed

+10
-23
lines changed

5 files changed

+10
-23
lines changed

dev-docs/CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Internal infrastructure
11+
12+
- Removed `postinstall` from `package.json` to not run scripts with dev dependencies on the user side: PR [#2382](https://github.com/tact-lang/tact/pull/2382)
13+
1014
### Docs
1115

12-
- Removed the "gas-expensive" badge from `checkSignature()` and `checkDataSignature()` functions and added a caution note when they do become expensive (from 11th call): PR [#TBD](https://github.com/tact-lang/tact/pull/TBD)
16+
- Removed the "gas-expensive" badge from `checkSignature()` and `checkDataSignature()` functions and added a caution note when they do become expensive (from 11th call): PR [#2380](https://github.com/tact-lang/tact/pull/2380)
1317

1418
### Release contributors
1519

1620
- [Novus Nota](https://github.com/novusnota)
21+
- [Anton Trunov](https://github.com/anton-trunov)
1722

1823
## [1.6.3] - 2025-03-12
1924

dev-docs/RELEASE.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22

33
- [ ] Improve the changelog for `vX.Y.Z`: grammar, wording, polishing
44
- [ ] Make sure there are no open issues for the [vX.Y.Z milestone](https://github.com/tact-lang/tact/issues?q=is%3Aopen+is%3Aissue+milestone%3AvX.Y.Z) (except for the current one, of course)
5-
- [ ] Remove "(not released yet)" from docs:
6-
- [ ] `cd docs` — important as to not change the texts elsewhere, such as in code comments
7-
- [ ] `regex='([sS]ince Tact \d\.\d) \(not released yet\)'; rg "$regex" -r '$1'` (or similar with `grep`) — to preview the changes
8-
- [ ] `regex='([sS]ince Tact \d\.\d) \(not released yet\)'; rg "$regex" -l | xargs sd "$regex" '$1'` (or similar with `grep` and `sed`) — to apply the changes
9-
- [ ] Bump Tact version in:
10-
- [ ] [`package.json`](../package.json) file
11-
- [ ] [CHANGELOG.md](./CHANGELOG.md): `Unreleased` -> `vX.Y.Z`
5+
- [ ] Remove `(not released yet)` from docs:
6+
- [ ] Bump Tact version in [`package.json`](../package.json) file
7+
- [ ] Bump Tact version in [CHANGELOG.md](./CHANGELOG.md): `Unreleased` -> `vX.Y.Z`
128
- [ ] Tag the new `vX.Y.Z` release in Git
139
```shell
1410
$ git tag vX.Y.Z
@@ -19,11 +15,7 @@
1915
- [ ] Publish the new `vX.Y.Z` release on NPM: [@tact-lang/compiler](https://www.npmjs.com/package/@tact-lang/compiler)
2016
```shell
2117
$ git checkout vX.Y.Z
22-
# remove the postinstall lifecycle script from the package.json
23-
$ jq 'del(.scripts.postinstall)' package.json -M > temp.json && mv temp.json package.json
2418
$ yarn all && npm publish
25-
# reset changes to package.json
26-
$ git checkout -- package.json
2719
```
2820
- [ ] Request or perform the plugins/parsers/tools updates and releases:
2921
- [ ] <https://github.com/tact-lang/tact-template> (tracked in: )
@@ -38,5 +30,4 @@
3830
- [ ] <https://github.com/tact-lang/prism-ton> (tracked in: )
3931
- [ ] <https://github.com/ton-blockchain/intellij-ton> (tracked in: )
4032
- [ ] <https://github.com/ton-blockchain/verifier> (tracked in: )
41-
- [ ] Write `vX.Y.Z` release notes explaining the newest changes with code examples
4233
- [ ] [TON Dev News](https://t.me/tondev_news) Telegram channel announcement

knip.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
".github/workflows/tact*.yml",
2626
".github/actions/**/*.yml"
2727
],
28-
"ignoreDependencies": ["@tact-lang/ton-abi"]
28+
"ignoreDependencies": ["@tact-lang/ton-abi", "husky"]
2929
}

package.json

-4
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@
5454
"knip": "knip",
5555
"lint:all": "yarn lint && yarn fmt:check && yarn spell && yarn knip",
5656
"all": "yarn clean && yarn gen && yarn build && yarn coverage && yarn lint:all",
57-
"postinstall": "node .husky/install.mjs || true",
58-
"prepack": "pinst --disable",
59-
"postpack": "pinst --enable",
6057
"next-version": "ts-node version.build.ts",
6158
"random-ast": "ts-node ./src/ast/random-ast.ts",
6259
"top10": "find . -type f -exec du -h {} + | sort -rh | head -n 10"
@@ -121,7 +118,6 @@
121118
"husky": "^9.1.5",
122119
"jest": "^29.3.1",
123120
"knip": "^5.24.1",
124-
"pinst": "^3.0.0",
125121
"prando": "^6.0.1",
126122
"prettier": "^3.2.5",
127123
"ts-jest": "^29.0.3",

yarn.lock

-5
Original file line numberDiff line numberDiff line change
@@ -4217,11 +4217,6 @@ picomatch@^4.0.1, picomatch@^4.0.2:
42174217
resolved "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz"
42184218
integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==
42194219

4220-
pinst@^3.0.0:
4221-
version "3.0.0"
4222-
resolved "https://registry.npmjs.org/pinst/-/pinst-3.0.0.tgz#80dec0a85f1f993c6084172020f3dbf512897eec"
4223-
integrity sha512-cengSmBxtCyaJqtRSvJorIIZXMXg+lJ3sIljGmtBGUVonMnMsVJbnzl6jGN1HkOWwxNuJynCJ2hXxxqCQrFDdw==
4224-
42254220
pirates@^4.0.4:
42264221
version "4.0.6"
42274222
resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9"

0 commit comments

Comments
 (0)