Skip to content

Commit 756558a

Browse files
committed
accept a STAX_APP_DIR env var
1 parent 9b65162 commit 756558a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"email": "[email protected]"
66
},
77
"repository": "https://github.com/kla/stax",
8-
"version": "0.7.2",
8+
"version": "0.7.3",
99
"main": "./dist/index.js",
1010
"exports": {
1111
".": {

src/stax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class Stax {
3434

3535
deduceAppName(appName: string): string {
3636
if (!appName) {
37-
const dir = path.basename(process.cwd())
37+
const dir = path.basename(process.env.STAX_APP_DIR || process.cwd())
3838

3939
if (this.apps().find(app => app.name == dir))
4040
appName = dir

0 commit comments

Comments
 (0)