Skip to content

fix: code & build#113

Merged
Tweentyy merged 3 commits into
developfrom
fix/code
May 11, 2026
Merged

fix: code & build#113
Tweentyy merged 3 commits into
developfrom
fix/code

Conversation

@Tweentyy
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 19:43
@sonarqubecloud
Copy link
Copy Markdown

@Tweentyy Tweentyy merged commit 1bdb74f into develop May 11, 2026
2 of 3 checks passed
@Tweentyy Tweentyy deleted the fix/code branch May 11, 2026 19:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adjusts build and packaging configuration to restore/build the project successfully while consolidating internal imports through index (barrel) entrypoints.

Changes:

  • Updates tsdown build config (clean builds, dependency bundling behavior) and removes explicit alias mappings.
  • Refactors several internal imports to use @*/index.js barrel exports.
  • Updates workspace/package metadata (pnpm workspace packages, exports/types path, peer dependency changes).

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tsdown.config.ts Tweaks build settings (clean output, dependency bundling) and removes alias mappings.
src/utils/logger.ts Switches toError import to the utils barrel export.
src/structures/Interaction.ts Uses structures barrel for type import.
src/structures/Event.ts Uses typescript barrel for type imports.
src/managers/EventManager.ts Consolidates utils imports via barrel.
src/client/StelliaUtils.ts Switches logger import to utils barrel.
src/client/StelliaClient.ts Switches logger import to utils barrel.
pnpm-workspace.yaml Declares workspace packages and keeps allowBuilds.
package.json Adjusts exports types path and moves runtime deps to peer/dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

package.json:32

  • The exported types file was changed to ./dist/index.d.mts. Unless the build is configured to actually emit index.d.mts (many toolchains still emit index.d.ts by default even for ESM builds), this will cause consumers to lose types due to a missing file. Either adjust the build output to generate .d.mts, or revert the export to the actual generated declaration filename.
	"exports": {
		".": {
			"types": "./dist/index.d.mts",
			"import": "./dist/index.mjs"
		},
		"./package.json": "./package.json"
	},

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tsdown.config.ts
Comment on lines 3 to 12
export default defineConfig({
entry: "./src/index.ts",
platform: "node",
dts: true,
format: "esm",
alias: {
"@client": "./src/client",
"@constants": "./src/constants",
"@managers": "./src/managers",
"@structures": "./src/structures",
"@typescript": "./src/typescript",
"@utils": "./src/utils"
}
entry: "./src/index.ts",
platform: "node",
dts: true,
format: "esm",
clean: true,
deps: {
skipNodeModulesBundle: true
}
});
Comment thread src/utils/logger.ts
Comment on lines +2 to 3
import { toError } from "@utils/index.js";

Comment thread package.json
Comment on lines +38 to +47
"peerDependencies": {
"discord.js": "^14.26.4",
"i18next": "^26.1.0",
"i18next": "26.0.10"
},
"dependencies": {
"log-symbols": "^7.0.1"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"discord.js": "^14.26.4",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants