Skip to content

Commit 87ea998

Browse files
add missing dep to lint plugin (#1045)
* add missing dep to lint plugin * fix type issue * type issue * fix: types plugin exports * fix: rearrange type deps * changeset --------- Co-authored-by: Kawika Bader <ekbader@gmail.com>
1 parent 32ae71a commit 87ea998

File tree

13 files changed

+45
-44
lines changed

13 files changed

+45
-44
lines changed

.changeset/odd-parrots-kiss.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@gasket/plugin-dynamic-plugins": patch
3+
"@gasket/plugin-service-worker": patch
4+
"@gasket/plugin-https-proxy": patch
5+
"@gasket/plugin-middleware": patch
6+
"@gasket/plugin-metadata": patch
7+
"@gasket/plugin-analyze": patch
8+
"@gasket/plugin-command": patch
9+
"@gasket/plugin-swagger": patch
10+
"@gasket/plugin-https": patch
11+
"@gasket/plugin-mocha": patch
12+
"@gasket/plugin-lint": patch
13+
---
14+
15+
Add missing dep to lint plugin, adjust TS type exports

packages/gasket-plugin-analyze/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
},
3737
"homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-plugin-analyze",
3838
"dependencies": {
39-
"@types/webpack-bundle-analyzer": "^4.7.0",
4039
"deepmerge": "^4.3.1",
4140
"webpack-bundle-analyzer": "^4.10.2"
4241
},
4342
"devDependencies": {
4443
"@gasket/core": "workspace:^",
44+
"@types/webpack-bundle-analyzer": "^4.7.0",
4545
"@gasket/plugin-metadata": "workspace:^",
4646
"@gasket/plugin-webpack": "workspace:^",
4747
"@types/jest": "^29.5.14",

packages/gasket-plugin-command/lib/index.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,5 @@ declare module '@gasket/core' {
3939
}
4040
}
4141

42-
declare module '@gasket/plugin-command' {
43-
}
4442
declare const plugin: Plugin;
4543
export default plugin;

packages/gasket-plugin-dynamic-plugins/lib/index.d.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@ declare module '@gasket/core' {
66
}
77
}
88

9-
10-
declare module '@gasket/plugin-dynamic-plugins' {
11-
const plugin: Plugin;
12-
export default plugin;
13-
}
9+
declare const plugin: Plugin;
10+
export default plugin;

packages/gasket-plugin-https-proxy/lib/index.d.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,5 @@ declare module '@gasket/core' {
2828
}
2929
}
3030

31-
32-
33-
declare module '@gasket/plugin-https-proxy' {
34-
const plugin: Plugin;
35-
export default plugin;
36-
}
31+
declare const plugin: Plugin;
32+
export default plugin;

packages/gasket-plugin-https/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-plugin-https",
3939
"dependencies": {
4040
"@godaddy/terminus": "^4.12.1",
41-
"@types/http-proxy": "^1.17.16",
4241
"create-servers": "^3.3.0",
4342
"diagnostics": "^2.0.2",
4443
"errs": "^0.3.2",
@@ -51,6 +50,7 @@
5150
"@gasket/plugin-metadata": "workspace:^",
5251
"@types/jest": "^29.5.14",
5352
"@types/node": "^20.17.19",
53+
"@types/http-proxy": "^1.17.16",
5454
"create-gasket-app": "workspace:^",
5555
"cross-env": "^7.0.3",
5656
"eslint": "catalog:",

packages/gasket-plugin-lint/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@gasket/plugin-metadata": "workspace:^",
4646
"@types/jest": "^29.5.14",
4747
"@types/node": "^20.17.19",
48+
"@typescript-eslint/parser": "^6.21.0",
4849
"create-gasket-app": "workspace:^",
4950
"cross-env": "^7.0.3",
5051
"eslint": "catalog:",

packages/gasket-plugin-metadata/lib/index.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,5 @@ declare module '@gasket/core' {
8585
}
8686
}
8787

88-
// Export plugin separately
8988
declare const plugin: Plugin;
9089
export default plugin;

packages/gasket-plugin-middleware/lib/index.d.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ declare module '@gasket/core' {
2727
}
2828
}
2929

30-
declare module '@gasket/plugin-middleware' {
31-
const plugin: Plugin;
32-
export default plugin;
33-
}
30+
declare const plugin: Plugin;
31+
export default plugin;
+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import type { Plugin } from '@gasket/core';
22

3-
4-
declare module '@gasket/plugin-mocha' {
5-
const plugin: Plugin;
6-
export default plugin;
7-
}
3+
declare const plugin: Plugin;
4+
export default plugin;

packages/gasket-plugin-service-worker/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
},
3737
"homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-plugin-service-worker",
3838
"dependencies": {
39-
"@types/lru-cache": "^5.1.1",
40-
"@types/uglify-js": "^3.17.5",
4139
"deepmerge": "^4.3.1",
4240
"lru-cache": "^5.1.1",
4341
"mkdirp": "^1.0.4",
@@ -46,6 +44,8 @@
4644
},
4745
"devDependencies": {
4846
"@gasket/core": "workspace:^",
47+
"@types/lru-cache": "^5.1.1",
48+
"@types/uglify-js": "^3.17.5",
4949
"@gasket/plugin-command": "workspace:^",
5050
"@gasket/plugin-express": "workspace:^",
5151
"@gasket/plugin-fastify": "workspace:^",

packages/gasket-plugin-swagger/lib/index.d.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,5 @@ export function promptSwagger(
5959
prompt: CreatePrompt
6060
): Promise<CreateContext>
6161

62-
63-
declare module '@gasket/plugin-swagger' {
64-
const plugin: Plugin;
65-
export default plugin;
66-
}
62+
declare const plugin: Plugin;
63+
export default plugin;

pnpm-lock.yaml

+15-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)