Skip to content

Commit 68ef74d

Browse files
authored
chore: remove unused deps + update knip config (#3554)
1 parent a5bb56f commit 68ef74d

File tree

18 files changed

+1438
-3610
lines changed

18 files changed

+1438
-3610
lines changed

.changeset/witty-mice-lick.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@fuel-ts/contract": patch
3+
"@fuel-ts/crypto": patch
4+
"fuels": patch
5+
"create-fuels": patch
6+
"@fuel-ts/script": patch
7+
---
8+
9+
chore: remove unused deps + update knip config

.knip.json

+10-24
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,16 @@
11
{
2-
"ignore": [
3-
".github/**",
4-
"**/*/fuels.config.*",
5-
"**/*/.vitepress/*",
6-
"/apps/docs/*",
7-
"/packages/abi-typegen/test/**",
8-
"templates/**",
9-
"/apps/docs/**/*.test.ts",
10-
"apps/create-fuels-counter-guide/**",
11-
"apps/docs-api/**"
2+
"entry": [
3+
"apps/docs/src/versions.data.ts",
4+
"apps/docs/src/guide/types/snippets/numbers/for-u8-u16-and-u32-2.ts"
125
],
6+
"ignore": [".github/**"],
137
"ignoreDependencies": [
14-
"autocannon",
158
"bun",
16-
"@/sway-api/*",
17-
"@fuel-ts/*",
18-
"@fuels/connectors",
19-
"@internal/fuel-core",
20-
"@internal/forc",
21-
"@types/jest",
9+
"fuels",
10+
"bun",
2211
"@types/rimraf",
23-
"@graphql-codegen*",
24-
"graphql-tag",
12+
"@fuel-ts/abi-typegen",
13+
"@internal/fuel-core",
2514
"get-graphql-schema",
2615
"events",
2716
"eslint-plugin-jsdoc",
@@ -30,14 +19,11 @@
3019
"eslint-plugin-react",
3120
"eslint-plugin-react-hooks",
3221
"dotenv",
33-
"ethers",
34-
"kill",
35-
"lsof",
3622
"memfs",
3723
"open",
3824
"markdown-link-check",
3925
"ts-generator",
40-
"webdriverio",
41-
"syncpack"
26+
"vitepress-plugin-search",
27+
"vue"
4228
]
4329
}

CONTRIBUTING.md

-8
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,6 @@ pnpm bench:node
228228
pnpm bench:node packages/my-desired-package
229229
```
230230

231-
# Profiling
232-
233-
We currently use [`clinic`](https://clinicjs.org/) to profile and debug our tooling. For instance you can run clinic's flame command to create a flamegraph for a specific package:
234-
235-
```sh
236-
# creates a flamegraph for a specific package
237-
npm_config_package_name=account pnpm clinic:flame // runs flame against the account package
238-
```
239231

240232
### CI Test
241233

apps/create-fuels-counter-guide/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test:ui": "sh ./test/ui/test-ui.sh",
88
"original:dev": "vite",
99
"original:build": "tsc -b && vite build",
10-
"original:start": "next start",
10+
"original:start": "vite start",
1111
"original:lint": "eslint .",
1212
"fuels:build": "fuels build",
1313
"fuels:dev": "fuels dev",
@@ -18,8 +18,6 @@
1818
"@fuels/react": "0.36.1",
1919
"@tanstack/react-query": "5.55.4",
2020
"clsx": "2.1.1",
21-
"@wagmi/connectors": "5.1.14",
22-
"@wagmi/core": "2.13.9",
2321
"dotenv": "16.4.5",
2422
"fuels": "workspace:*",
2523
"react": "18.3.1",

apps/demo-bun-fuels/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
},
1010
"license": "Apache-2.0",
1111
"dependencies": {
12-
"@fuel-ts/account": "workspace:*",
13-
"@fuel-ts/errors": "workspace:*",
1412
"fuels": "workspace:*"
1513
},
1614
"devDependencies": {

apps/demo-fuels/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
},
1111
"license": "Apache-2.0",
1212
"dependencies": {
13-
"@fuel-ts/errors": "workspace:*",
14-
"@fuel-ts/account": "workspace:*",
1513
"fuels": "workspace:*"
1614
}
1715
}

apps/demo-typegen/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
"fuels": "workspace:*"
2020
},
2121
"devDependencies": {
22-
"@fuel-ts/account": "workspace:*",
23-
"@fuel-ts/errors": "workspace:*",
2422
"@internal/forc": "workspace:*"
2523
}
2624
}

apps/docs/.vitepress/plugins/codeInContextPlugin.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
CodeSnippetToken,
88
} from './codeInContextPlugin';
99
import MarkdownIt from 'markdown-it';
10-
import Token from 'markdown-it/lib/token';
10+
import { Token } from 'markdown-it';
1111

1212
/**
1313
* @group node

apps/docs/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@
2929
},
3030
"devDependencies": {
3131
"@types/markdown-it": "14.1.2",
32-
"@vue/devtools-api": "6.6.3",
33-
"flexsearch": "0.7.43",
3432
"glob": "10.4.5",
3533
"markdown-it": "14.1.0",
3634
"nodemon": "3.1.7",
37-
"replace": "1.2.2",
3835
"vitepress-plugin-search": "1.0.4-alpha.22",
3936
"vitepress": "1.3.4",
4037
"vue": "3.5.12"

package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build:packages": "turbo run build --filter=!docs --filter=!template-*",
1616
"ci:test": "./scripts/tests-ci.sh",
1717
"pretest": "turbo run pretest",
18-
"depcheck": "knip --dependencies --tags=-knipignore",
18+
"depcheck": "knip --include-libs --dependencies --tags=-knipignore",
1919
"knip:fix": "knip --fix",
2020
"depsync:lint": "syncpack list-mismatches",
2121
"depsync:fix": "syncpack fix-mismatches",
@@ -30,10 +30,6 @@
3030
"test:validate": "./scripts/tests-validate.sh",
3131
"test:browser:filter": "vitest --run --coverage false --config vitest.browser.config.mts",
3232
"test:e2e": "vitest --run --config vitest.node.config.mts $(scripts/tests-find.sh --e2e)",
33-
"clinic:flame": "clinic flame --autocannon [ / ] -- node packages/${npm_config_package_name}/dist/profile.js",
34-
"clinic:bubble": "clinic bubbleprof --autocannon [ -c 5 -a 500 / ] -- node packages/${npm_config_package_name}/dist/profile.js",
35-
"clinic:doctor": "clinic doctor --autocannon [ / ] -- node packages/${npm_config_package_name}/dist/profile.js",
36-
"clinic:heap": "clinic heapprofiler --autocannon [ / ] -- node packages/${npm_config_package_name}/dist/profile.js",
3733
"test:integration": "vitest --run --config vitest.node.config.mts $(scripts/tests-find.sh --integration)",
3834
"lint": "run-s type:check-tests lint:check prettier:check type:check",
3935
"lint:check": "eslint . --ext .ts --max-warnings 0",
@@ -88,8 +84,6 @@
8884
"@typescript-eslint/parser": "6.21.0",
8985
"@vitest/browser": "2.0.5",
9086
"@vitest/coverage-istanbul": "2.0.5",
91-
"autocannon": "7.15.0",
92-
"clinic": "13.0.0",
9387
"compare-versions": "6.1.1",
9488
"coverage-diff": "3.2.0",
9589
"eslint": "8.57.0",
@@ -105,7 +99,7 @@
10599
"eslint-plugin-react-hooks": "4.6.2",
106100
"eslint-plugin-tsdoc": "0.3.0",
107101
"glob": "10.4.5",
108-
"knip": "5.30.6",
102+
"knip": "5.41.1",
109103
"markdown-link-check": "3.12.2",
110104
"memfs": "4.14.0",
111105
"nodemon": "3.1.7",

packages/contract/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"@fuel-ts/program": "workspace:*",
5050
"@fuel-ts/transactions": "workspace:*",
5151
"@fuel-ts/utils": "workspace:*",
52-
"@fuel-ts/versions": "workspace:*",
5352
"@fuels/vm-asm": "0.58.2",
5453
"ramda": "0.30.1"
5554
},

packages/crypto/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"license": "Apache-2.0",
3030
"dependencies": {
3131
"@fuel-ts/errors": "workspace:*",
32-
"@fuel-ts/math": "workspace:*",
3332
"@fuel-ts/utils": "workspace:*",
3433
"@noble/hashes": "1.5.0"
3534
}

packages/fuel-gauge/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"@fuel-ts/errors": "workspace:*",
1919
"@fuel-ts/merkle": "workspace:*",
2020
"@fuel-ts/utils": "workspace:*",
21-
"@internal/forc": "workspace:*",
2221
"@internal/utils": "workspace:*"
2322
}
2423
}

packages/fuels/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"@fuel-ts/errors": "workspace:*",
7272
"@fuel-ts/hasher": "workspace:*",
7373
"@fuel-ts/math": "workspace:*",
74-
"@fuel-ts/merkle": "workspace:*",
7574
"@fuel-ts/program": "workspace:*",
7675
"@fuel-ts/script": "workspace:*",
7776
"@fuel-ts/transactions": "workspace:*",

packages/script/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"dependencies": {
3030
"@fuel-ts/abi-coder": "workspace:*",
3131
"@fuel-ts/account": "workspace:*",
32-
"@fuel-ts/address": "workspace:*",
3332
"@fuel-ts/errors": "workspace:*",
3433
"@fuel-ts/math": "workspace:*",
3534
"@fuel-ts/program": "workspace:*",

0 commit comments

Comments
 (0)