-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.json
50 lines (50 loc) · 1.21 KB
/
project.json
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
{
"name": "root",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist",
"tsConfig": "tsconfig.json",
"project": "package.json",
"entryFile": "src/index.ts",
"external": ["react", "react-dom", "react/jsx-runtime"],
"rollupConfig": "@nx/react/plugins/bundle-rollup",
"compiler": "babel",
"assets": [
{
"glob": "README.md",
"input": ".",
"output": "."
}
]
}
},
"test": {
"executor": "@nx/vite:test",
"outputs": [
"{options.reportsDirectory}"
],
"options": {
"config": "vitest.config.ts",
"passWithNoTests": true
}
},
"publish": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npm version patch --no-git-tag-version",
"npm publish --access public --tag latest"
],
"cwd": "dist"
},
"dependsOn": ["test", "build"]
}
}
}