sweetim 3 роки тому
батько
коміт
938f89d81b
2 змінених файлів з 2 додано та 0 видалено
  1. 1 0
      CHANGELOG.md
  2. 1 0
      cli/src/template.rs

+ 1 - 0
CHANGELOG.md

@@ -22,6 +22,7 @@ The minor version will be incremented upon a breaking change and the patch versi
 * avm: `avm install` no longer downloads the version if already installed in the machine ([#1670](https://github.com/project-serum/anchor/pull/1670)).
 * avm: `avm install` no longer downloads the version if already installed in the machine ([#1670](https://github.com/project-serum/anchor/pull/1670)).
 * cli: make `anchor test` fail when used with `--skip-deploy` option and without `--skip-local-validator` option but there already is a running validator ([#1675](https://github.com/project-serum/anchor/pull/1675)).
 * cli: make `anchor test` fail when used with `--skip-deploy` option and without `--skip-local-validator` option but there already is a running validator ([#1675](https://github.com/project-serum/anchor/pull/1675)).
 * lang: Return proper error instead of panicking if account length is smaller than discriminator in functions of `(Account)Loader` ([#1678](https://github.com/project-serum/anchor/pull/1678)).
 * lang: Return proper error instead of panicking if account length is smaller than discriminator in functions of `(Account)Loader` ([#1678](https://github.com/project-serum/anchor/pull/1678)).
+* cli: Add `@types/bn.js` to `devDependencies` in cli template ([#1712](https://github.com/project-serum/anchor/pull/1712)). 
 
 
 ### Breaking
 ### Breaking
 
 

+ 1 - 0
cli/src/template.rs

@@ -237,6 +237,7 @@ pub fn ts_package_json() -> String {
         "chai": "^4.3.4",
         "chai": "^4.3.4",
         "mocha": "^9.0.3",
         "mocha": "^9.0.3",
         "ts-mocha": "^8.0.0",
         "ts-mocha": "^8.0.0",
+        "@types/bn.js": "^5.1.0",
         "@types/chai": "^4.3.0",
         "@types/chai": "^4.3.0",
         "@types/mocha": "^9.0.0",
         "@types/mocha": "^9.0.0",
         "typescript": "^4.3.5"
         "typescript": "^4.3.5"