File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ jobs:
2424 uses : actions/checkout@v4
2525 with :
2626 repository : reactodia/reactodia-workspace
27- path : .. /reactodia-workspace
27+ path : ./reactodia-workspace
2828 - name : Use Node.js ${{ matrix.node-version }}
2929 uses : actions/setup-node@v4
3030 with :
3131 node-version : ${{ matrix.node-version }}
3232 cache : ' npm'
3333 - name : Install dependencies
3434 run : npm ci
35+ - name : Install dependencies for library
36+ run : cd ./reactodia-workspace && npm ci
3537 - name : Typecheck
3638 run : npm run typecheck
3739 - name : Build
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { themes as prismThemes } from 'prism-react-renderer';
22import type { Config } from '@docusaurus/types' ;
33import type * as Preset from '@docusaurus/preset-classic' ;
44
5+ const libraryPathPrefix = process . env . CI ? `.` : '..' ;
6+
57const config : Config = {
68 title : 'Reactodia' ,
79 tagline : 'Visual interaction with graph data in a form of a diagram.' ,
@@ -52,12 +54,12 @@ const config: Config = {
5254 'docusaurus-plugin-typedoc' ,
5355 {
5456 entryPoints : [
55- '.. /reactodia-workspace/src/workspace.ts' ,
56- '.. /reactodia-workspace/src/layout-sync.ts' ,
57- '.. /reactodia-workspace/src/layout.worker.ts' ,
58- '.. /reactodia-workspace/src/legacy-styles.tsx' ,
57+ ` ${ libraryPathPrefix } /reactodia-workspace/src/workspace.ts` ,
58+ ` ${ libraryPathPrefix } /reactodia-workspace/src/layout-sync.ts` ,
59+ ` ${ libraryPathPrefix } /reactodia-workspace/src/layout.worker.ts` ,
60+ ` ${ libraryPathPrefix } /reactodia-workspace/src/legacy-styles.tsx` ,
5961 ] ,
60- tsconfig : '.. /reactodia-workspace/tsconfig.typings.json' ,
62+ tsconfig : ` ${ libraryPathPrefix } /reactodia-workspace/tsconfig.typings.json` ,
6163 readme : 'none' ,
6264 hideGroupHeadings : true ,
6365 excludePrivate : true ,
You can’t perform that action at this time.
0 commit comments