@dcl/sdk-commands 7.1.4-4578951400.commit-3810356 → 7.1.4-4598967522.commit-538c49d

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.
@@ -32,6 +32,8 @@ async function bundleProject(components, options) {
32
32
  throw new error_1.CliError(`File ${tsconfig} must exist to compile the Typescript project`);
33
33
  }
34
34
  const input = (0, glob_1.globSync)(options.single ?? 'src/index.ts');
35
+ if (!input.length)
36
+ throw new error_1.CliError(`There are no input files to build: ${options.single ?? 'src/index.ts'}`);
35
37
  const output = !options.single ? sceneJson.main : options.single.replace(/\.ts$/, '.js');
36
38
  const outfile = (0, path_1.join)(options.workingDirectory, output);
37
39
  (0, beautiful_logs_1.printProgressStep)(components.logger, `Bundling file ${log_1.colors.bold(input.join(','))}`, 2, MAX_STEP);
@@ -10,7 +10,6 @@ export declare function getSdkCommandsVersion(): Promise<any>;
10
10
  export declare function getInstalledPackageVersion(components: Pick<CliComponents, 'fs'>, packageName: string, workingDirectory: string): Promise<string>;
11
11
  /**
12
12
  * Returns true if the Decentraland Editor is running.
13
- * TODO: EDITOR is a unix reserved env var. Change it for something more specific.
14
13
  */
15
14
  export declare function isEditor(): boolean;
16
15
  export declare function isCI(): boolean;
@@ -35,10 +35,9 @@ async function getInstalledPackageVersion(components, packageName, workingDirect
35
35
  exports.getInstalledPackageVersion = getInstalledPackageVersion;
36
36
  /**
37
37
  * Returns true if the Decentraland Editor is running.
38
- * TODO: EDITOR is a unix reserved env var. Change it for something more specific.
39
38
  */
40
39
  function isEditor() {
41
- return process.env.EDITOR === 'true';
40
+ return process.env.EDITOR_SDK7 === 'true';
42
41
  }
43
42
  exports.isEditor = isEditor;
44
43
  function isCI() {
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@dcl/sdk-commands",
3
3
  "description": "",
4
- "version": "7.1.4-4578951400.commit-3810356",
4
+ "version": "7.1.4-4598967522.commit-538c49d",
5
5
  "author": "Decentraland",
6
6
  "bin": {
7
7
  "sdk-commands": "./dist/index.js"
8
8
  },
9
9
  "dependencies": {
10
10
  "@dcl/hashing": "1.1.3",
11
- "@dcl/inspector": "7.1.4-4578951400.commit-3810356",
11
+ "@dcl/inspector": "7.1.4-4598967522.commit-538c49d",
12
12
  "@dcl/linker-dapp": "0.7.0",
13
13
  "@dcl/mini-comms": "1.0.1-20230216163137.commit-a4c75be",
14
- "@dcl/protocol": "1.0.0-4493564897.commit-c858f8a",
14
+ "@dcl/protocol": "1.0.0-4597420155.commit-e877adc",
15
15
  "@dcl/rpc": "^1.1.1",
16
16
  "@dcl/schemas": "^6.11.1",
17
17
  "@segment/analytics-node": "^1.0.0-beta.22",
@@ -60,5 +60,5 @@
60
60
  "displayName": "SDK",
61
61
  "tsconfig": "./tsconfig.json"
62
62
  },
63
- "commit": "3810356217029030ea170aba0c9e95f43a422252"
63
+ "commit": "538c49d420ba1bf75ad9e6d821aec3c4afe26c69"
64
64
  }