@jsenv/core 32.1.0 → 32.1.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/dist/main.js CHANGED
@@ -20895,11 +20895,13 @@ const build = async ({
20895
20895
  sourceDirectoryUrl = assertAndNormalizeDirectoryUrl(sourceDirectoryUrl, "sourceDirectoryUrl");
20896
20896
  buildDirectoryUrl = assertAndNormalizeDirectoryUrl(buildDirectoryUrl, "buildDirectoryUrl");
20897
20897
  if (outDirectoryUrl === undefined) {
20898
- const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl);
20899
- if (packageDirectoryUrl) {
20900
- outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`;
20898
+ if (!process.env.CI) {
20899
+ const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl);
20900
+ if (packageDirectoryUrl) {
20901
+ outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`;
20902
+ }
20901
20903
  }
20902
- } else {
20904
+ } else if (outDirectoryUrl !== null && outDirectoryUrl !== false) {
20903
20905
  outDirectoryUrl = assertAndNormalizeDirectoryUrl(outDirectoryUrl, "outDirectoryUrl");
20904
20906
  }
20905
20907
  if (typeof entryPoints !== "object" || entryPoints === null) {
@@ -22785,11 +22787,13 @@ const startDevServer = async ({
22785
22787
  }
22786
22788
  sourceDirectoryUrl = assertAndNormalizeDirectoryUrl(sourceDirectoryUrl, "sourceDirectoryUrl");
22787
22789
  if (outDirectoryUrl === undefined) {
22788
- const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl);
22789
- if (packageDirectoryUrl) {
22790
- outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`;
22790
+ if (!process.env.CI) {
22791
+ const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl);
22792
+ if (packageDirectoryUrl) {
22793
+ outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`;
22794
+ }
22791
22795
  }
22792
- } else {
22796
+ } else if (outDirectoryUrl !== null && outDirectoryUrl !== false) {
22793
22797
  outDirectoryUrl = assertAndNormalizeDirectoryUrl(outDirectoryUrl, "outDirectoryUrl");
22794
22798
  }
22795
22799
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "32.1.0",
3
+ "version": "32.1.2",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -175,11 +175,13 @@ export const build = async ({
175
175
  "buildDirectoryUrl",
176
176
  )
177
177
  if (outDirectoryUrl === undefined) {
178
- const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl)
179
- if (packageDirectoryUrl) {
180
- outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`
178
+ if (!process.env.CI) {
179
+ const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl)
180
+ if (packageDirectoryUrl) {
181
+ outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`
182
+ }
181
183
  }
182
- } else {
184
+ } else if (outDirectoryUrl !== null && outDirectoryUrl !== false) {
183
185
  outDirectoryUrl = assertAndNormalizeDirectoryUrl(
184
186
  outDirectoryUrl,
185
187
  "outDirectoryUrl",
@@ -79,11 +79,13 @@ export const startDevServer = async ({
79
79
  "sourceDirectoryUrl",
80
80
  )
81
81
  if (outDirectoryUrl === undefined) {
82
- const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl)
83
- if (packageDirectoryUrl) {
84
- outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`
82
+ if (!process.env.CI) {
83
+ const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl)
84
+ if (packageDirectoryUrl) {
85
+ outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`
86
+ }
85
87
  }
86
- } else {
88
+ } else if (outDirectoryUrl !== null && outDirectoryUrl !== false) {
87
89
  outDirectoryUrl = assertAndNormalizeDirectoryUrl(
88
90
  outDirectoryUrl,
89
91
  "outDirectoryUrl",