Skip to content

Commit

Permalink
new: Always run in production mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 26, 2020
1 parent 3b3baba commit 78a6ff9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"prepare": "beemo create-config --silent",
"setup": "beemo typescript",
"build": "NODE_ENV=production yarn run packemon build --addEngines --checkLicenses --generateDeclaration",
"build": "yarn run packemon build --addEngines --checkLicenses --generateDeclaration",
"ci": "yarn run type && yarn run test && yarn run lint",
"clean": "rm -rf {build,dts,lib}",
"coverage": "yarn run test --coverage",
Expand Down
2 changes: 2 additions & 0 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { BuildCommand } from './index';

const version = String(require('../package.json').version);

process.env.NODE_ENV = 'production';

async function run() {
const program = new Program({
bin: 'packemon',
Expand Down
2 changes: 1 addition & 1 deletion website/docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ With that being said, the `packemon build` command can be used to build all pack
according to their configured build targets (platform, formats, etc).

```
NODE_ENV=production packemon build --checkLicenses --generateDeclaration
packemon build --checkLicenses --generateDeclaration
```

## Options
Expand Down

0 comments on commit 78a6ff9

Please sign in to comment.