Skip to content

Commit

Permalink
update project configs
Browse files Browse the repository at this point in the history
  • Loading branch information
reorx committed Apr 8, 2022
1 parent 0554193 commit 677b64c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import esbuild from 'esbuild';
import fs from 'fs';
import process from 'process';

const prod = (process.argv[2] === 'production');
const prod = process.env.BUILD_ENV === 'production'

let runScriptPlugin = {
name: 'run-script',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"build": "tsc -noEmit -skipLibCheck && BUILD_ENV=production node esbuild.config.mjs && cp manifest.json build",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
Expand Down
6 changes: 2 additions & 4 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"1.0.0": "0.12.0",
"1.1.0": "0.12.0",
"1.1.1": "0.12.0"
}
"1.0.0": "0.12.0"
}

0 comments on commit 677b64c

Please sign in to comment.