refactor: use npm workspaces and ts project references
This commit is contained in:
parent
ffa9eeb3f5
commit
7cd56303fc
30 changed files with 20303 additions and 24327 deletions
11819
dashboard/package-lock.json
generated
11819
dashboard/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -100,7 +100,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { ApiPermissions, hasPermission } from "@shared/apiPermissions";
|
||||
import { ApiPermissions, hasPermission } from "@zeppelinbot/shared";
|
||||
import PermissionTree from "./PermissionTree.vue";
|
||||
import { mapState } from "vuex";
|
||||
import {
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { mapState } from "vuex";
|
||||
import { ApiPermissions, hasPermission } from "@shared/apiPermissions";
|
||||
import { ApiPermissions, hasPermission } from "@zeppelinbot/shared";
|
||||
import { AuthState, GuildState } from "../../store/types";
|
||||
import { ApiError, formPost } from "../../api";
|
||||
import moment from "moment";
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { mapState } from "vuex";
|
||||
import { ApiPermissions, hasPermission } from "@shared/apiPermissions";
|
||||
import { ApiPermissions, hasPermission } from "@zeppelinbot/shared";
|
||||
import { AuthState, GuildState } from "../../store/types";
|
||||
|
||||
export default {
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</style>
|
||||
|
||||
<script lang="ts">
|
||||
import { ApiPermissions, permissionNames } from "@shared/apiPermissions";
|
||||
import { ApiPermissions, permissionNames } from "@zeppelinbot/shared";
|
||||
import { PropType } from "vue";
|
||||
import { TPermissionHierarchyWithState } from "./permissionTreeUtils";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ApiPermissions, hasPermission, TPermissionHierarchy } from "@shared/apiPermissions";
|
||||
import { ApiPermissions, hasPermission, TPermissionHierarchy } from "@zeppelinbot/shared";
|
||||
|
||||
export type TPermissionHierarchyState = {
|
||||
locked: boolean;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ApiPermissions } from "@shared/apiPermissions";
|
||||
import { ApiPermissions } from "@zeppelinbot/shared";
|
||||
|
||||
export enum LoadStatus {
|
||||
None = 1,
|
||||
|
|
|
@ -13,9 +13,12 @@
|
|||
"baseUrl": ".",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"allowJs": true,
|
||||
"paths": {
|
||||
"@shared/*": ["../shared/src/*"]
|
||||
"allowJs": true
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../shared/tsconfig.json"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue