itee-tasks 1.0.7 → 1.0.8

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 CHANGED
@@ -1,3 +1,8 @@
1
+ # [v1.0.8](https://github.com/Itee/itee-tasks/compare/v1.0.7...v1.0.8) (2026-01-14)
2
+
3
+ ## 🐛 Bug Fixes
4
+ - [`5b4e026`](https://github.com/Itee/itee-tasks/commit/5b4e026) (utils) fix management of task file that does not contain .task in their filename
5
+
1
6
  # [v1.0.7](https://github.com/Itee/itee-tasks/compare/v1.0.6...v1.0.7) (2026-01-14)
2
7
 
3
8
  ## 🐛 Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itee-tasks",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Allow to manage all commons itee gulp tasks into one place ",
5
5
  "keywords": [
6
6
  "itee",
@@ -57,9 +57,9 @@ function getTaskConfigurationPathFor( filename ) {
57
57
  : relative( packageTasksDirectory, filename )
58
58
 
59
59
  // Generate all possible config file path depending on file extension and default or user defined
60
- const terminalExtension = extname( relativeTaskPath )
61
- const searchValue = `.task${ terminalExtension }`
62
- const replaceValues = [
60
+ const terminalExtension = extname( relativeTaskPath )
61
+ const searchValue = relativeTaskPath.includes( '.task.' ) ? `.task${ terminalExtension }` : terminalExtension
62
+ const replaceValues = [
63
63
  '.conf.json',
64
64
  '.conf.js',
65
65
  '.conf.mjs',
@@ -73,8 +73,8 @@ function getTaskConfigurationPathFor( filename ) {
73
73
  const packageConfigurationPath = join( packageTasksConfigurationsDirectory, configurationLocation )
74
74
  const defaultConfigurationPath = join( iteePackageConfigurationsDirectory, configurationLocation )
75
75
 
76
- packageConfigurationPaths.push(packageConfigurationPath)
77
- defaultConfigurationPaths.push(defaultConfigurationPath)
76
+ packageConfigurationPaths.push( packageConfigurationPath )
77
+ defaultConfigurationPaths.push( defaultConfigurationPath )
78
78
  }
79
79
 
80
80
  let configurationPath
@@ -105,7 +105,8 @@ function getTaskConfigurationPathFor( filename ) {
105
105
 
106
106
  // Else throw an error
107
107
  if ( !configurationPath ) {
108
- throw new Error( `Unable to find configuration in package configuration paths ${ packageConfigurationPaths.join( ', ' ) } nor in default configuration paths ${ defaultConfigurationPaths.join( ', ' ) }.` )
108
+ throw new Error( `Unable to find configuration in package configuration paths ${ packageConfigurationPaths.join( ', ' ) } nor in default configuration paths ${ defaultConfigurationPaths.join(
109
+ ', ' ) }.` )
109
110
  }
110
111
 
111
112
  return configurationPath