Skip to content

Commit

Permalink
fix: Fix core exported types (remove @types/react deps) TG-360
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Nov 15, 2021
1 parent ee76398 commit 5847519
Show file tree
Hide file tree
Showing 9 changed files with 25,179 additions and 25,315 deletions.
5 changes: 4 additions & 1 deletion packages/ngx/projects/ngx-tolgee/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"dest": "../../dist/ngx-tolgee",
"lib": {
"entryFile": "src/public-api.ts"
}
},
"allowedNonPeerDependencies": [
"@tolgee/core"
]
}
3 changes: 3 additions & 0 deletions packages/ngx/projects/ngx-tolgee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"type": "git",
"url": "https://github.com/tolgee/tolgee-js"
},
"dependencies": {
"@tolgee/core": "^2.5.1"
},
"version": "2.3.2",
"publishConfig": {
"directory": "../../dist/ngx-tolgee",
Expand Down
15 changes: 1 addition & 14 deletions packages/svelte/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Translation mode UI for @tolgee/core package",
"main": "index.js",
"module": "./dist/tolgee-ui.esm.js",
"types": "lib/index.d.ts",
"types": "types/index.d.ts",
"declaration": true,
"directories": {
"lib": "lib",
Expand All @@ -18,6 +18,7 @@
"author": "JanCizmar",
"license": "BSD-3-Clause",
"files": [
"types/**/*",
"lib/**/*",
"dist/**/*",
"index.js"
Expand Down
9 changes: 9 additions & 0 deletions packages/ui/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export declare class UI {
private dependencies;
private viewerComponent;
private keyContextMenu;
constructor(dependencies: any[]);
renderViewer(key: string, defaultValue?: string): void;
getKey(props: { openEvent: MouseEvent; keys: Set<string> }): Promise<string>;
}
export default UI;
47 changes: 0 additions & 47 deletions testapps/next/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5847519

Please sign in to comment.