mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-01-29 03:59:08 +08:00
Properly check whether code is executed from source
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -10,7 +10,7 @@ export default class Action {
|
||||
}
|
||||
|
||||
static get isRunningFromSource() {
|
||||
return __dirname !== 'dist';
|
||||
return path.basename(__dirname) === 'model';
|
||||
}
|
||||
|
||||
static get name() {
|
||||
|
||||
Reference in New Issue
Block a user