Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit bb9d613

Browse files
committed
chore: fix sxript
1 parent b3bf291 commit bb9d613

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

modules/nuxt/playground/undefined

Whitespace-only changes.

modules/nuxt/undefined

Whitespace-only changes.

scripts/plugins/size-packages.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ async function sizePackages() {
6969
(pkg) => !ignored.includes(pkg.name)
7070
)) {
7171
const _package = instance.meta
72-
const entry = `${instance.directory}/dist/${kebabCase(
73-
instance.name
74-
)}.esm.js`
72+
const entry = `${instance.directory}/${_package.module || _package.main}`
7573
const result = checkFileSize(_package, entry)
7674

7775
if (result) {

scripts/utils/packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import glob from "glob-promise"
44
import { IPackageJson } from "../types/package.json"
55

66
export async function getAllPackageJsons() {
7-
const packagesDirectories = ["packages", "tooling"]
7+
const packagesDirectories = ["packages", "tooling", "modules"]
88
const packageJsonFiles = (
99
await Promise.all(
1010
await packagesDirectories.map(async (directory) => {

0 commit comments

Comments
 (0)