@caleuche/cli 0.5.1 → 0.5.2

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,5 +1,13 @@
1
1
  # @caleuche/cli
2
2
 
3
+ ## 0.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6a2095f: Add .sh support
8
+ - Updated dependencies [6a2095f]
9
+ - @caleuche/core@0.5.0
10
+
3
11
  ## 0.5.1
4
12
 
5
13
  ### Patch Changes
package/dist/batch.js CHANGED
@@ -102,7 +102,7 @@ function batchCompile(batchFile, options) {
102
102
  }
103
103
  const effectiveOutputPath = path_1.default.join(options?.outputDir || workingDirectory, variant.output);
104
104
  if (!(0, common_1.compileAndWriteOutput)(sample, resolvedVariant.properties, effectiveOutputPath, {
105
- project: true,
105
+ project: sample.dependencies && sample.dependencies.length > 0,
106
106
  })) {
107
107
  console.error(`Sample: ${sampleDefinition.templatePath}, Variant: ${JSON.stringify(variant)}`);
108
108
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caleuche/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "che": "dist/index.js"
@@ -19,7 +19,7 @@
19
19
  "license": "MIT",
20
20
  "description": "Caleuche CLI",
21
21
  "dependencies": {
22
- "@caleuche/core": "^0.4.1",
22
+ "@caleuche/core": "^0.5.0",
23
23
  "commander": "^14.0.0",
24
24
  "yaml": "^2.8.0"
25
25
  },
package/src/batch.ts CHANGED
@@ -143,7 +143,7 @@ export function batchCompile(
143
143
  resolvedVariant.properties,
144
144
  effectiveOutputPath,
145
145
  {
146
- project: true,
146
+ project: sample.dependencies && sample.dependencies.length > 0,
147
147
  },
148
148
  )
149
149
  ) {