bolt icon indicating copy to clipboard operation
bolt copied to clipboard

[Bug] @types/chai missing in the packages list

Open volfiros opened this issue 9 months ago • 1 comments

Describe the bug The @types/chai package is not present in the initial package.json file, which has to be installed manually

To Reproduce Steps to reproduce the behavior:

Initialize a project using the command bolt init <project_name>

You will find a few errors in the typescript file in the test folder, which is likely caused by the absence of types for the chai package

Expected behavior The typescript file should be free of any errors

volfiros avatar Mar 26 '25 01:03 volfiros

This was automatically generated from bolt init test-project. Isn't it what you are getting?

notdanilo@DESKTOP-91QIBAL:~/dev/magicblock-labs/test/test-project$ cat package.json
{
    "scripts": {
        "lint:fix": "node_modules/.bin/prettier */*.js \"*/**/*{.js,.ts}\" -w",
        "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
    },
    "devDependencies": {
        "chai": "^4.3.4",
        "mocha": "^9.0.3",
        "ts-mocha": "^10.0.0",
        "@types/bn.js": "^5.1.0",
        "@types/chai": "^4.3.0",
        "@types/mocha": "^9.0.0",
        "typescript": "^4.3.5",
        "prettier": "^2.6.2",
        "@metaplex-foundation/beet": "^0.7.1",
        "@metaplex-foundation/beet-solana": "^0.4.0",
        "@magicblock-labs/bolt-sdk": "latest"
    }
}

notdanilo avatar Apr 24 '25 19:04 notdanilo