Skip to content

Commit f3257ff

Browse files
committed
use turbo to manage dependencies when build
1 parent 22d5b78 commit f3257ff

File tree

27 files changed

+79
-100
lines changed

27 files changed

+79
-100
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ insert_final_newline = true
99
[vcbuild.bat]
1010
end_of_line = crlf
1111

12-
[*.{js,cjs,mjs,jsx,ts,tsx,css,json}]
12+
[*.{js,cjs,mjs,jsx,ts,tsx,css,json,astro}]
1313
indent_style = space
1414
indent_size = 2
1515

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"typescript": "^5.0.4"
2525
},
2626
"scripts": {
27-
"clean": "yarn workspaces foreach run clean",
28-
"build": "tsc -b tsconfig.packages.json",
27+
"clean": "turbo run clean --filter='./packages/*'",
28+
"build": "turbo run build --filter='./packages/*'",
2929
"test": "turbo run test --filter='./packages/*'",
3030
"lint": "eslint packages --ext js,jsx,ts,tsx",
3131
"format": "prettier --write .",

packages/gatsby-transformer-orga/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
"gatsby": "^3.0.0"
3535
},
3636
"scripts": {
37-
"build": "pnpm clean && pnpm compile",
38-
"clean": "del ./dist tsconfig.tsbuildinfo",
39-
"compile": "tsc -b"
37+
"clean": "tsc --build --clean",
38+
"build": "tsc --build"
4039
},
4140
"devDependencies": {
4241
"@types/fs-extra": "^9.0.12",

packages/gatsby-transformer-orga/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"rootDir": "./src",
55
"outDir": "./dist"
66
},
7-
"references": [{ "path": "../orga-posts" }],
87
"include": ["./src"]
98
}

packages/loader/tests/loader.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('basic org-mode parsing', async () => {
1818
/*@jsxRuntime automatic @jsxImportSource react*/
1919
import {jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime";
2020
export const title = 'hello world';
21-
function _createOrgaContent(props) {
21+
function _createOrgContent(props) {
2222
const _components = Object.assign({
2323
div: "div",
2424
h1: "h1"
@@ -35,13 +35,13 @@ function _createOrgaContent(props) {
3535
})]
3636
});
3737
}
38-
function OrgaContent(props = {}) {
39-
const {wrapper: OrgaLayout} = props.components || ({});
40-
return OrgaLayout ? _jsx(OrgaLayout, Object.assign({}, props, {
41-
children: _jsx(_createOrgaContent, props)
42-
})) : _createOrgaContent(props);
38+
function OrgContent(props = {}) {
39+
const {wrapper: OrgLayout} = props.components || ({});
40+
return OrgLayout ? _jsx(OrgLayout, Object.assign({}, props, {
41+
children: _jsx(_createOrgContent, props)
42+
})) : _createOrgContent(props);
4343
}
44-
export default OrgaContent;
44+
export default OrgContent;
4545
`.trim()
4646
)
4747
})

packages/next/tsconfig.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@
44
"rootDir": "./src",
55
"outDir": "./dist"
66
},
7-
"references": [
8-
{ "path": "../rehype-estree" },
9-
{ "path": "../reorg-rehype" },
10-
{ "path": "../estree-jsx" }
11-
],
127
"include": ["./src"]
138
}

packages/oast-to-hast/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"rootDir": "./src",
55
"outDir": "./dist"
66
},
7-
"references": [{ "path": "../orga" }],
87
"include": ["./src"]
98
}

packages/orga-posts/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"rootDir": "./src",
55
"outDir": "./dist"
66
},
7-
"references": [{ "path": "../orga" }],
87
"include": ["./src"]
98
}

packages/orga/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
"directory": "packages/orga"
1616
},
1717
"scripts": {
18-
"build": "pnpm clean && pnpm compile",
19-
"clean": "del ./dist tsconfig.tsbuildinfo",
20-
"test": "node --test --no-warnings --loader tsx src/**/*.test.ts",
21-
"compile": "tsc -b"
18+
"clean": "tsc --build --clean",
19+
"build": "tsc --build",
20+
"test": "node --test --no-warnings --loader tsx src/**/*.test.ts"
2221
},
2322
"dependencies": {
2423
"date-fns": "^2.30.0",
@@ -28,7 +27,6 @@
2827
"devDependencies": {
2928
"@types/node": "^20.2.1",
3029
"@types/unist": "^2.0.6",
31-
"del-cli": "^5.0.0",
3230
"tsx": "^3.12.7",
3331
"typescript": "^5.0.4"
3432
}

packages/orga/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"rootDir": "./src",
55
"outDir": "./dist"
66
},
7-
"references": [{ "path": "../text-kit" }],
87
"include": ["./src"]
98
}

0 commit comments

Comments
 (0)