Skip to content

Commit

Permalink
feat: read vars from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRomaa committed Nov 13, 2022
1 parent 7043fdd commit c32308e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* SPDX-License-Identifier: MIT
*/

import dotenv from 'dotenv';
import { Command } from 'commander';
import signale from 'signale';
import chalk from 'chalk';
Expand All @@ -13,6 +14,8 @@ import { description, version } from './package.json';
import { machBuild, machWatch } from './src';
import { MachConfig, MachConfigSchema } from './src/types';

dotenv.config();

interface ParsedCommandArgs {
config: MachConfig;
bundles: string;
Expand Down
18 changes: 16 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synaptic-simulations/mach",
"version": "1.0.0-rc8",
"version": "1.0.0-rc9",
"description": "The last MSFS instrument bundler you'll ever need.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -24,6 +24,7 @@
"chalk": "^4.1.2",
"chokidar": "^3.5.3",
"commander": "^9.4.1",
"dotenv": "^16.0.3",
"esbuild": "^0.15.13",
"filesize": "^10.0.5",
"signale": "^1.4.0",
Expand Down

0 comments on commit c32308e

Please sign in to comment.