Skip to content

Commit 5e1d97f

Browse files
authored
refactor: bundle dependencies (#25)
1 parent a32273a commit 5e1d97f

2 files changed

Lines changed: 25 additions & 28 deletions

File tree

package.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@rspack/dev-middleware",
33
"version": "7.4.5",
4-
"type": "module",
54
"description": "A development middleware for Rspack",
65
"keywords": [
76
"rspack",
@@ -18,31 +17,26 @@
1817
},
1918
"license": "MIT",
2019
"author": "Tobias Koppers @sokra",
20+
"type": "module",
2121
"main": "dist/index.js",
2222
"types": "types/index.d.ts",
2323
"files": [
2424
"dist",
2525
"types"
2626
],
2727
"scripts": {
28+
"build": "rslib --syntax es2023 && pnpm run build:types",
29+
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
30+
"clean": "del-cli dist types",
31+
"fix": "pnpm run fix:prettier",
32+
"fix:prettier": "pnpm run lint:prettier -- --write",
33+
"lint": "npm-run-all -l -p \"lint:**\"",
2834
"lint:prettier": "prettier --cache --list-different .",
2935
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
3036
"lint:types": "tsc --pretty --noEmit",
31-
"lint": "npm-run-all -l -p \"lint:**\"",
32-
"fix:prettier": "pnpm run lint:prettier -- --write",
33-
"fix": "pnpm run fix:prettier",
34-
"clean": "del-cli dist types",
35-
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
36-
"build": "rslib --syntax es2023 && pnpm run build:types",
37-
"test:watch": "rstest -w",
37+
"prepare": "pnpm run build",
3838
"test": "rstest",
39-
"prepare": "pnpm run build"
40-
},
41-
"dependencies": {
42-
"memfs": "^4.43.1",
43-
"mrmime": "^2.0.1",
44-
"on-finished": "^2.4.1",
45-
"range-parser": "^1.2.1"
39+
"test:watch": "rstest -w"
4640
},
4741
"devDependencies": {
4842
"@fastify/express": "^4.0.2",
@@ -67,8 +61,12 @@
6761
"finalhandler": "^2.1.0",
6862
"hono": "^4.4.13",
6963
"koa": "^3.0.0",
64+
"memfs": "^4.43.1",
65+
"mrmime": "^2.0.1",
7066
"npm-run-all": "^4.1.5",
67+
"on-finished": "^2.4.1",
7168
"prettier": "^3.6.0",
69+
"range-parser": "^1.2.1",
7270
"router": "^2.2.0",
7371
"supertest": "^7.0.0",
7472
"typescript": "^5.3.3"

pnpm-lock.yaml

Lines changed: 12 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)