File tree 3 files changed +22
-4
lines changed
3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 28
28
- uses : nrwl/nx-set-shas@v4
29
29
30
30
- name : Build packages
31
- run : pnpm build
31
+ run : pnpm build:nx
32
32
shell : bash
Original file line number Diff line number Diff line change 5
5
6
6
After cloning Milkdown, run ` pnpm install ` to install dependencies.
7
7
8
- 1 . Run ` pnpm build ` .
8
+ 1 . Run ` pnpm build:nx ` .
9
9
2 . Run ` pnpm start ` in one terminal to see storybook.
10
10
11
11
# Commands
@@ -18,7 +18,7 @@ You can run several commands:
18
18
- ` pnpm test:e2e:debug ` runs e2e test with UI.
19
19
- ` pnpm test:lint ` checks the code style.
20
20
- ` pnpm test:tsc ` runs typescript type checks.
21
- - ` pnpm build ` runs build for all packages with cache powered by nx.
21
+ - ` pnpm build:nx ` runs build for all packages with cache powered by nx.
22
22
- ` pnpm commit ` runs commit with git hooks.
23
23
24
24
# Pre Check
Original file line number Diff line number Diff line change 18
18
"format" : " lint-staged" ,
19
19
"fix" : " prettier . --write" ,
20
20
"start" : " pnpm --filter=@milkdown/storybook run start" ,
21
- "build" : " nx run-many --target=build --all --parallel" ,
21
+ "build:nx " : " nx run-many --target=build --all --parallel" ,
22
22
"build:affected" : " nx affected --target=build" ,
23
23
"build:packs" : " pnpm --filter=@milkdown/* run build" ,
24
24
"ci:version" : " changeset version && pnpm install --no-frozen-lockfile" ,
129
129
"safe-buffer" : " npm:@nolyfill/safe-buffer@^1" ,
130
130
"safer-buffer" : " npm:@nolyfill/safer-buffer@^1"
131
131
}
132
+ },
133
+ "nx" : {
134
+ "targets" : {
135
+ "build" : {
136
+ "outputs" : [
137
+ " {projectRoot}/lib"
138
+ ],
139
+ "dependsOn" : [
140
+ " build"
141
+ ]
142
+ },
143
+ "tsc" : {
144
+ "outputs" : [],
145
+ "dependsOn" : [
146
+ " build"
147
+ ]
148
+ }
149
+ }
132
150
}
133
151
}
You can’t perform that action at this time.
0 commit comments