-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathproject.json
More file actions
88 lines (88 loc) · 2.77 KB
/
Copy pathproject.json
File metadata and controls
88 lines (88 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "plugin-dashboard",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "plugins/plugin-dashboard/src",
"projectType": "library",
"tags": ["scope:plugins", "scope:publishable", "versioning:synchronized"],
"targets": {
"build-cjs": {
"executor": "@nx/esbuild:esbuild",
"dependsOn": ["^build"],
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "plugins/plugin-dashboard/dist",
"main": "plugins/plugin-dashboard/src/index.ts",
"tsConfig": "plugins/plugin-dashboard/tsconfig.lib.json",
"format": ["cjs"],
"declaration": true,
"declarationRootDir": "plugins/plugin-dashboard/src",
"bundle": true,
"thirdParty": false,
"platform": "node",
"assets": [
"plugins/plugin-dashboard/README.md",
"plugins/plugin-dashboard/CHANGELOG.md",
"LICENSE",
"plugins/plugin-dashboard/package.json"
],
"esbuildOptions": {
"outExtension": {
".js": ".js"
},
"external": ["@frontmcp/lazy-zod", "@frontmcp/sdk", "zod", "reflect-metadata"]
}
}
},
"build-esm": {
"executor": "@nx/esbuild:esbuild",
"dependsOn": ["build-cjs"],
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "plugins/plugin-dashboard/dist/esm",
"main": "plugins/plugin-dashboard/src/index.ts",
"tsConfig": "plugins/plugin-dashboard/tsconfig.lib.json",
"format": ["esm"],
"declaration": false,
"bundle": true,
"thirdParty": false,
"platform": "node",
"esbuildOptions": {
"outExtension": {
".js": ".mjs"
},
"external": ["@frontmcp/lazy-zod", "@frontmcp/sdk", "zod", "reflect-metadata"]
}
}
},
"build": {
"executor": "nx:run-commands",
"dependsOn": ["build-cjs", "build-esm"],
"options": {
"command": "node scripts/strip-dist-from-pkg.js plugins/plugin-dashboard/dist/package.json"
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/unit/plugin-dashboard"],
"options": {
"jestConfig": "plugins/plugin-dashboard/jest.config.ts",
"passWithNoTests": true
}
},
"publish": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"command": "npm publish plugins/plugin-dashboard/dist --access public --registry=https://registry.npmjs.org/"
}
},
"publish-alpha": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"command": "bash scripts/publish-alpha.sh {projectRoot}/dist",
"cwd": "{workspaceRoot}"
}
}
}
}