@jcoreio/toolchain-flow 4.6.1 → 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-flow",
3
- "version": "4.6.1",
3
+ "version": "4.6.2",
4
4
  "description": "Flow JS build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "dedent-js": "^1.0.1",
22
22
  "eslint": "^8.56.0",
23
23
  "eslint-plugin-flowtype": "^8.0.3",
24
- "@jcoreio/toolchain-esnext": "4.6.1",
25
- "@jcoreio/toolchain": "4.6.1"
24
+ "@jcoreio/toolchain": "4.6.2",
25
+ "@jcoreio/toolchain-esnext": "4.6.2"
26
26
  },
27
27
  "toolchainManaged": {
28
28
  "devDependencies": {
@@ -17,10 +17,11 @@ const defaultFlowConfig = dedent`
17
17
  `
18
18
 
19
19
  module.exports = [
20
- async function getConfigFiles() {
20
+ async function getConfigFiles({ fromVersion }) {
21
21
  let flowconfig
22
22
  if (await fs.pathExists('.flowconfig')) {
23
23
  flowconfig = await fs.readFile('.flowconfig', 'utf8')
24
+ if (fromVersion) return { '.flowconfig': flowconfig }
24
25
  const parsed = INI.parse(flowconfig)
25
26
  const parsedDefault = INI.parse(defaultFlowConfig)
26
27