lucid-package 0.0.26 → 0.0.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -138,6 +138,9 @@ async function debugEditorExtension(extensionNames, quiet = false) {
138
138
  const credentials = JSON.parse((await fs.readFile(`${name}.credentials.local`)).toString());
139
139
  res.send(JSON.stringify(Object.assign(Object.assign({}, provider), credentials)));
140
140
  }
141
+ else {
142
+ res.sendStatus(404);
143
+ }
141
144
  }
142
145
  else {
143
146
  res.sendStatus(404);
package/src/index.js CHANGED
@@ -72,7 +72,7 @@ class LucidSuiteExtensionCLI {
72
72
  createShapeLibrary.add_argument('name');
73
73
  const parsed = parser.parse_args(args);
74
74
  //For internal development, creating and operating on a "test" package via bazel
75
- const isInternalTesting = !!parsed['chdir'];
75
+ let isInternalTesting = !!parsed['chdir'];
76
76
  if (isInternalTesting) {
77
77
  if (parsed['project']) {
78
78
  process.chdir(parsed['chdir'] + '/' + parsed['project']);
@@ -84,6 +84,11 @@ class LucidSuiteExtensionCLI {
84
84
  else if (parsed['project']) {
85
85
  process.chdir(parsed['project']);
86
86
  }
87
+ //If we've spawned a child process recursively calling a new lucid-package target,
88
+ //then we're still testing as long as it's originally triggered by Bazel.
89
+ if (process.env['BAZEL_TARGET']) {
90
+ isInternalTesting = true;
91
+ }
87
92
  switch (parsed['command']) {
88
93
  case 'create':
89
94
  (0, package_1.createEmptyPackage)(parsed['name']);