this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: 🚸 implement `beta`builds with sourcemap

include sourcemap in beta builds to simplify debugging

+8 -4
+1 -1
.release-it.yaml
··· 3 3 # Run `npx -p @release-it/bumper -p @release-it/conventional-changelog release-it` to release a regular release 4 4 hooks: 5 5 # This bump the manifest.json file with the new version before building 6 - "before:init": npm run build 6 + "before:init": "npm run build:${branchName}" 7 7 "before:bump": "npm_package_version=${version} node version-bump.mjs" 8 8 npm: false 9 9 skipUnstable: true
+2 -1
esbuild.config.mjs
··· 4 4 import copy from "esbuild-copy-static-files"; 5 5 6 6 const prod = process.argv[2] === "production"; 7 + const beta = process.argv[2] === "beta"; 7 8 8 9 const context = await esbuild.context({ 9 10 entryPoints: ["src/main.ts"], ··· 45 46 ], 46 47 }); 47 48 48 - if (prod) { 49 + if (prod || beta) { 49 50 await context.rebuild(); 50 51 process.exit(0); 51 52 } else {
+5 -2
package.json
··· 4 4 "description": "Obsidian42 - Beta Reviewer's Autoupdate Tool.", 5 5 "main": "main.js", 6 6 "scripts": { 7 - "dev": "node --no-warnings esbuild.config.mjs", 8 - "build": "node --no-warnings esbuild.config.mjs production", 7 + "dev": "npm run build:dev", 8 + "build": "npm run build:main", 9 + "build:dev": "node --no-warnings esbuild.config.mjs", 10 + "build:beta": "node --no-warnings esbuild.config.mjs beta", 11 + "build:main": "node --no-warnings esbuild.config.mjs production", 9 12 "lint": "biome check ./src", 10 13 "version": "node version-bump.mjs", 11 14 "githubaction": "node version-github-action.mjs"