Skip to content

Commit 29688ed

Browse files
authored
chore(all): Use turbo to build all docs (#124)
1 parent dec91ec commit 29688ed

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"check": "turbo check && yarn lint",
1818
"build": "turbo run build",
1919
"compile": "turbo run compile",
20-
"docs": "yarn workspace @assertive-ts/core docs",
20+
"docs": "turbo docs",
2121
"lint": "eslint .",
2222
"release": "turbo release --concurrency=1",
2323
"test": "turbo run test"

packages/core/.mocharc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"require": [
66
"ts-node/register",
77
"test/hooks.ts"
8-
]
8+
],
9+
"spec": ["test/**/*.test.*"]
910
}

packages/core/.releaserc.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/semantic-release",
3-
"branches": [
4-
"main"
5-
],
3+
"branches": ["main"],
64
"plugins": [
75
["@semantic-release/commit-analyzer", {
86
"releaseRules": [{ "scope": "!core", "release": false }]

packages/sinon/.mocharc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"require": [
66
"ts-node/register",
77
"test/hooks.ts"
8-
]
8+
],
9+
"spec": ["test/**/*.test.*"]
910
}

packages/sinon/.releaserc.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/semantic-release",
3-
"branches": [
4-
"main"
5-
],
3+
"branches": ["main"],
64
"plugins": [
75
["@semantic-release/commit-analyzer", {
86
"releaseRules": [{ "scope": "!sinon", "release": false }]

turbo.json

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"dependsOn": ["^build"],
1515
"outputs": ["build/**"]
1616
},
17+
"docs": {
18+
"dependsOn": ["^build"],
19+
"inputs": ["src/**", "typings/**"],
20+
"outputs": ["docs/*/build/**"]
21+
},
1722
"release": {
1823
"cache": false,
1924
"dependsOn": ["^build"]

0 commit comments

Comments
 (0)