@itee/tasks 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/sources/_utils.mjs +10 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/sources/_utils.mjs
CHANGED
|
@@ -36,7 +36,11 @@ const {
|
|
|
36
36
|
cyan
|
|
37
37
|
} = colors
|
|
38
38
|
|
|
39
|
-
///
|
|
39
|
+
/// Debugging
|
|
40
|
+
|
|
41
|
+
const isDebugging = ( process.env.RUNNER_DEBUG && process.env.RUNNER_DEBUG === '1' )
|
|
42
|
+
|
|
43
|
+
/// Package paths and data
|
|
40
44
|
|
|
41
45
|
function _getPackageRootDirectory() {
|
|
42
46
|
|
|
@@ -63,7 +67,7 @@ const iteePackageConfigurationsDirectory = join( iteePackageRootDirectory, 'conf
|
|
|
63
67
|
const iteePackageNodeModulesDirectory = join( iteePackageRootDirectory, 'node_modules' )
|
|
64
68
|
const iteePackageSourcesDirectory = join( iteePackageRootDirectory, 'sources' )
|
|
65
69
|
|
|
66
|
-
const packageRootDirectory = iteePackageRootDirectory.includes( 'node_modules' ) ? join( iteePackageRootDirectory, '
|
|
70
|
+
const packageRootDirectory = iteePackageRootDirectory.includes( 'node_modules' ) ? join( iteePackageRootDirectory, '../../../' ) : iteePackageRootDirectory
|
|
67
71
|
const packageTasksDirectory = join( packageRootDirectory, '.tasks' )
|
|
68
72
|
const packageTasksConfigurationsDirectory = join( packageTasksDirectory, 'configs' )
|
|
69
73
|
const packageNodeModulesDirectory = join( packageRootDirectory, 'node_modules' )
|
|
@@ -506,6 +510,10 @@ function createRollupConfigs( options = undefined ) {
|
|
|
506
510
|
|
|
507
511
|
function logLoadingTask( filename ) {
|
|
508
512
|
|
|
513
|
+
if ( !isDebugging ) {
|
|
514
|
+
return
|
|
515
|
+
}
|
|
516
|
+
|
|
509
517
|
const taskPath = relative( packageRootDirectory, filename )
|
|
510
518
|
const taskName = basename( filename, '.task.mjs' )
|
|
511
519
|
|