Skip to content

Commit

Permalink
Merge pull request #28 from gandalf-network/staging
Browse files Browse the repository at this point in the history
Staging -> Prod [ Update CLI flags ]
  • Loading branch information
TosinJs authored Mar 24, 2024
2 parents 19d984a + e6526f2 commit 2f3f2ec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gandalf-network/eyeofsauron",
"version": "1.0.8",
"version": "1.0.9",
"description": "",
"main": "dist/index.js",
"bin": {
Expand Down
10 changes: 8 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@ program
name: 'moduleSystem',
message: 'Select the Javascript Module system for generating the JS files:',
choices: [
'ESModules { import syntax: import Eye, { Source } from "./eyeofsauron/index.js" }',
'CommonJS { import syntax: const Eye = require("./eyeofsauron").default }'
{
name: 'ESModules - { import syntax: import Eye, { Source } from "./eyeofsauron/index.js" }.',
value: 'ESModules',
},
{
name: 'CommonJS - { import syntax: const Eye = require("./eyeofsauron").default }.',
value: 'CommonJS',
},
],
default: 'ESModules',
when: (answers) => answers.language === 'javascript',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const WATSON_URL = "http://localhost:8080/public/gql" as string;
export const WATSON_URL = process.env.WATSON_URL as string;

0 comments on commit 2f3f2ec

Please sign in to comment.