Skip to content

Commit

Permalink
refactor: remove obsolete index re-exports from /shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragory committed Apr 9, 2024
1 parent 5772e27 commit 8ad12a9
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion backend/src/api/guilds.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPermissions } from "@zeppelinbot/shared";
import { ApiPermissions } from "@zeppelinbot/shared/apiPermissions.js";
import express, { Request, Response } from "express";
import jsYaml from "js-yaml";
import moment from "moment-timezone";
Expand Down
2 changes: 1 addition & 1 deletion backend/src/api/guilds/importExport.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPermissions } from "@zeppelinbot/shared";
import { ApiPermissions } from "@zeppelinbot/shared/apiPermissions.js";
import express, { Request, Response } from "express";
import moment from "moment-timezone";
import { z } from "zod";
Expand Down
2 changes: 1 addition & 1 deletion backend/src/api/guilds/misc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPermissions } from "@zeppelinbot/shared";
import { ApiPermissions } from "@zeppelinbot/shared/apiPermissions.js";
import express, { Request, Response } from "express";
import jsYaml from "js-yaml";
import moment from "moment-timezone";
Expand Down
2 changes: 1 addition & 1 deletion backend/src/api/permissions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPermissions, hasPermission, permissionArrToSet } from "@zeppelinbot/shared";
import { ApiPermissions, hasPermission, permissionArrToSet } from "@zeppelinbot/shared/apiPermissions.js";
import { Request, Response } from "express";
import { ApiPermissionAssignments } from "../data/ApiPermissionAssignments.js";
import { isStaff } from "../staff.js";
Expand Down
2 changes: 1 addition & 1 deletion backend/src/data/ApiPermissionAssignments.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPermissions } from "@zeppelinbot/shared";
import { ApiPermissions } from "@zeppelinbot/shared/apiPermissions.js";
import { Repository } from "typeorm";
import { ApiAuditLog } from "./ApiAuditLog.js";
import { BaseRepository } from "./BaseRepository.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPermissions } from "@zeppelinbot/shared";
import { ApiPermissions } from "@zeppelinbot/shared/apiPermissions.js";
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { isStaffPreFilter, sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils.js";
import { renderUsername } from "../../../utils.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPermissions } from "@zeppelinbot/shared";
import { ApiPermissions } from "@zeppelinbot/shared/apiPermissions.js";
import moment from "moment-timezone";
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils.js";
Expand Down
2 changes: 1 addition & 1 deletion backend/src/plugins/BotControl/commands/AllowServerCmd.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPermissions } from "@zeppelinbot/shared";
import { ApiPermissions } from "@zeppelinbot/shared/apiPermissions.js";
import moment from "moment-timezone";
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { isStaffPreFilter, sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils.js";
Expand Down
1 change: 0 additions & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"private": true,
"type": "module",
"exports": {
".": "./dist/index.js",
"./*": "./dist/*"
},
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion shared/src/index.ts

This file was deleted.

0 comments on commit 8ad12a9

Please sign in to comment.