Skip to content

Commit

Permalink
Generate sourcemaps for prod builds, fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
tfedor committed Mar 16, 2024
1 parent 96e410b commit 9ead3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/make-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const changelogPath = `${root}/changelog.yml`;
const releasesPath = `${root}/../AugmentedSteam_releases/`;

const options = (new Command())
.option("--rewrite", "Rewrite existing release", false)
.option("--force", "Overwrite existing release", false)
.parse()
.opts();

Expand All @@ -39,7 +39,7 @@ if (fs.existsSync(releaseDir)) {
function copySource() {
const toCopy = [
"badges",
"config",
"scripts",
"tsconfig.json",
"src",
".eslintrc.json",
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/builder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default async function(options) {
assetNames: "[dir]/[name]",
bundle: true,
minify: !options.dev,
sourcemap: options.dev,
sourcemap: true,
splitting: false,
mainFields: ["svelte", "browser", "module", "main"],
conditions: ["svelte", "browser"],
Expand Down

0 comments on commit 9ead3ab

Please sign in to comment.