Skip to content

Commit

Permalink
fix(@embark/code-runner): restore EmbarkJS.environment property in th…
Browse files Browse the repository at this point in the history
…e cli dashboard

The property is set/available on EmbarkJS in the artifacts, i.e. in a browser
build; but sometime since v3.2.4 it was no longer availble in the cli dashboard
environment.
  • Loading branch information
michaelsbradleyjr committed Jul 2, 2019
1 parent 93ca3ad commit 7d27125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/embark-code-runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export default class CodeRunner {
constructor(embark: Embark, _options: any) {
this.logger = embark.logger;
this.events = embark.events;

EmbarkJS.environment = embark.env;
this.vm = new VM({
require: {
mock: {
Expand Down
1 change: 1 addition & 0 deletions packages/embark-typings/src/embark.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface Config {
}

export interface Embark {
env: string;
events: Events;
registerAPICall: any;
registerConsoleCommand: any;
Expand Down

0 comments on commit 7d27125

Please sign in to comment.