@dotenvx/dotenvx 1.10.0 → 1.10.1

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/CHANGELOG.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.10.0...main)
5
+ ## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.10.1...main)
6
+
7
+ ## 1.10.1
8
+
9
+ ### Changed
10
+
11
+ * check subfolders on `dotenvx ext precommit` hook ([#350](https://github.com/dotenvx/dotenvx/pull/350))
6
12
 
7
13
  ## 1.10.0
8
14
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.10.0",
2
+ "version": "1.10.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -2,6 +2,8 @@
2
2
  const fs = require('fs')
3
3
  const ignore = require('ignore')
4
4
 
5
+ const Ls = require('../services/ls')
6
+
5
7
  const pluralize = require('./../helpers/pluralize')
6
8
  const isFullyEncrypted = require('./../helpers/isFullyEncrypted')
7
9
  const InstallPrecommitHook = require('./../helpers/installPrecommitHook')
@@ -38,8 +40,8 @@ class Precommit {
38
40
 
39
41
  // 2. check .env* files against .gitignore file
40
42
  const ig = ignore().add(gitignore)
41
- const files = fs.readdirSync(process.cwd())
42
- const dotenvFiles = files.filter(file => file.match(/^\.env(\..+)?$/))
43
+ const lsService = new Ls(process.cwd())
44
+ const dotenvFiles = lsService.run()
43
45
  dotenvFiles.forEach(file => {
44
46
  // check if that file is being ignored
45
47
  if (ig.ignores(file)) {