@jcoreio/toolchain-esnext 5.8.0 → 5.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/toolchain-esnext",
3
- "version": "5.8.0",
3
+ "version": "5.8.2",
4
4
  "description": "ESNext JS build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,7 +33,7 @@
33
33
  "resolve": "^1.22.2",
34
34
  "resolve-bin": "^1.0.0",
35
35
  "semver": "^7.5.3",
36
- "@jcoreio/toolchain": "5.8.0"
36
+ "@jcoreio/toolchain": "5.8.2"
37
37
  },
38
38
  "toolchainManaged": {
39
39
  "dependencies": {
@@ -9,13 +9,17 @@ module.exports = async function fixSourceMaps() {
9
9
  await Promise.all(
10
10
  mapFiles.map(async (file) => {
11
11
  const content = await fs.readJson(file)
12
- const { sources } = content
12
+ const { sources, sourcesContent } = content
13
13
  let changed = false
14
14
  for (let i = 0; i < sources.length; i++) {
15
15
  if (sources[i].startsWith('../src/')) {
16
16
  changed = true
17
17
  sources[i] = sources[i].substring('../'.length)
18
18
  }
19
+ if (sourcesContent && sourcesContent[i] != null) {
20
+ changed = true
21
+ sourcesContent[i] = null
22
+ }
19
23
  }
20
24
  if (changed) await fs.writeJson(file, content)
21
25
  })