@jcoreio/toolchain-esnext 4.6.0 → 4.6.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": "4.6.
|
|
3
|
+
"version": "4.6.2",
|
|
4
4
|
"description": "ESNext JS build toolchain",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"fs-extra": "^10.0.0",
|
|
32
32
|
"resolve": "^1.22.2",
|
|
33
33
|
"resolve-bin": "^1.0.0",
|
|
34
|
-
"@jcoreio/toolchain": "4.6.
|
|
34
|
+
"@jcoreio/toolchain": "4.6.2"
|
|
35
35
|
},
|
|
36
36
|
"toolchainManaged": {
|
|
37
37
|
"dependencies": {
|
package/plugins/compile.cjs
CHANGED
|
@@ -90,7 +90,7 @@ module.exports = [
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
if (toolchainConfig.sourceMaps) {
|
|
93
|
-
const srcFiles = await glob(path.join('src', '**'))
|
|
93
|
+
const srcFiles = await glob(path.join('src', '**'), { nodir: true })
|
|
94
94
|
await Promise.all(
|
|
95
95
|
srcFiles.map(async (src) => {
|
|
96
96
|
if (src === 'src') return
|
|
@@ -4,7 +4,7 @@ const dedent = require('dedent-js')
|
|
|
4
4
|
|
|
5
5
|
module.exports = [
|
|
6
6
|
[
|
|
7
|
-
async function getConfigFiles() {
|
|
7
|
+
async function getConfigFiles({ fromVersion }) {
|
|
8
8
|
return {
|
|
9
9
|
'toolchain.config.cjs': async (existing) => {
|
|
10
10
|
if (existing) return existing
|
|
@@ -30,14 +30,14 @@ module.exports = [
|
|
|
30
30
|
`
|
|
31
31
|
},
|
|
32
32
|
'.babelrc.cjs': dedent`
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
/* eslint-env node, es2018 */
|
|
34
|
+
module.exports = function (api) {
|
|
35
|
+
const base = require('${name}/.babelrc.cjs')(api)
|
|
36
|
+
return {
|
|
37
|
+
...base,
|
|
38
|
+
}
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
`,
|
|
40
|
+
`,
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
{ after: '@jcoreio/toolchain' },
|