Skip to content

Commit

Permalink
fix(build-tools): Resolve issues with logic in outExtension utility…
Browse files Browse the repository at this point in the history
… function
  • Loading branch information
sullivanpj committed Aug 3, 2024
1 parent 008e6ef commit 8cdc691
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/build-tools/src/config/browser-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const browserConfig = ({
const options = {
name: "modern",
entry,
format: ["cjs", "esm", "iife"],
format: ["cjs", "esm"],
target: [
"chrome91",
"firefox90",
Expand Down Expand Up @@ -69,9 +69,9 @@ export const browserConfig = ({
...dtsTsConfig,
options: {
...dtsTsConfig.options,
outDir: outputPath,
},
},
outDir: outputPath
}
}
},
apiReport: false,
docModel: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/build-tools/src/config/neutral-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const neutralConfig = ({
const options = {
name: "neutral",
entry,
format: ["cjs", "esm", "iife"],
format: ["cjs", "esm"],
target: ["esnext"],
tsconfig,
splitting,
Expand Down
3 changes: 1 addition & 2 deletions packages/build-tools/src/utils/out-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export const outExtension = ({
if (format === "cjs" || pkgType === "commonjs") {
jsExtension = ".cjs";
dtsExtension = ".d.cts";
}
if (format === "esm" || pkgType === "module") {
} else if (format === "esm" || pkgType === "module") {
jsExtension = ".js";
dtsExtension = ".d.ts";
}
Expand Down
2 changes: 1 addition & 1 deletion packages/config/schemas/storm.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
"pattern": "^#([0-9a-f]{3}){1,2}$",
"minLength": 7,
"maxLength": 7,
"default": "#1fb2a6",
"default": "#3fc1b0",
"description": "The primary brand specific color of the workspace"
},
"brand2": {
Expand Down
5 changes: 3 additions & 2 deletions packages/eslint/src/utils/get-file-banner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ ${padding}⚡ Storm Software ${titleName ? `- ${titleName}` : ""}
}
Documentation: ${
process.env.STORM_DOCS
? process.env.STORM_DOCS
: `https://stormsoftware.com/${name ? `projects/${name}/` : ""}docs`}
? process.env.STORM_DOCS
: `https://stormsoftware.com/${name ? `projects/${name}/` : ""}docs`
}
Contact: ${
process.env.STORM_HOMEPAGE
Expand Down

0 comments on commit 8cdc691

Please sign in to comment.