Skip to content

Commit

Permalink
fix build for core
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Aug 29, 2024
1 parent 91a1fef commit cee8b33
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 7 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/sdk-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Sdk check
on:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ESLint check
uses: ./.github/actions/lint
with:
package-name: '@editorjs/dom-adapters'

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the package
uses: ./.github/actions/build
with:
package-name: '@editorjs/dom-adapters'
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@editorjs/dom": "^1.0.0",
"@editorjs/dom-adapters": "workspace:^",
"@editorjs/editorjs": "^2.30.5",
"@editorjs/model": "workspace:^"
"@editorjs/model": "workspace:^",
"@editorjs/sdk": "workspace:^"
}
}
2 changes: 1 addition & 1 deletion packages/core/src/tools/ToolsManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { InlineToolsConfig } from '../../../sdk/src/entities/InlineTool.js';
import type { InlineToolsConfig } from '@editorjs/sdk';
import type { BlockToolConstructor } from '../entities/BlockTool.js';
import { Paragraph } from './internal/block-tools/paragraph/index.js';
import type { EditorConfig } from '@editorjs/editorjs';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FormattingActionWithRange, InlineTool } from '../../../../../../sdk/src/entities/InlineTool.js';
import type { FormattingActionWithRange, InlineTool } from '@editorjs/sdk';
import type { InlineFragment, TextRange } from '@editorjs/model';
import { FormattingAction } from '@editorjs/model';
import { IntersectType } from '@editorjs/model';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FormattingActionWithRange, InlineTool } from '../../../../../../sdk/src/entities/InlineTool.js';
import type { FormattingActionWithRange, InlineTool } from '@editorjs/sdk';
import type { InlineFragment, TextRange } from '@editorjs/model';
import { FormattingAction } from '@editorjs/model';
import { IntersectType } from '@editorjs/model';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/ui/InlineToolbar/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { InlineToolsAdapter } from '@editorjs/dom-adapters';
import type { InlineTool, InlineToolsConfig } from '../../../../sdk/src/entities/InlineTool.js';
import type { InlineTool, InlineToolsConfig } from '@editorjs/sdk';
import type { InlineToolName } from '@editorjs/model';
import { type EditorJSModel, type TextRange, createInlineToolData, createInlineToolName, Index } from '@editorjs/model';
import { EventType } from '@editorjs/model';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"rootDir": "src",
"outDir": "dist"
},
"include": ["src/**/*", "../sdk/src/entities/InlineTool.ts"],
"include": ["src/**/*"],
"exclude": [
"node_modules/**/*",
"dist/**/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# dom-adapters
# Sdk
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ __metadata:
"@editorjs/dom-adapters": "workspace:^"
"@editorjs/editorjs": "npm:^2.30.5"
"@editorjs/model": "workspace:^"
"@editorjs/sdk": "workspace:^"
eslint: "npm:^9.9.1"
eslint-config-codex: "npm:^2.0.2"
typescript: "npm:^5.5.4"
Expand Down

0 comments on commit cee8b33

Please sign in to comment.