react-email 1.7.13 → 1.7.14
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/package.json
CHANGED
package/dist/source/index.js
CHANGED
|
File without changes
|
|
@@ -11,7 +11,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
11
11
|
const shelljs_1 = __importDefault(require("shelljs"));
|
|
12
12
|
const createWatcherInstance = (watchDir) => chokidar_1.default.watch(watchDir, {
|
|
13
13
|
ignoreInitial: true,
|
|
14
|
-
cwd:
|
|
14
|
+
cwd: watchDir.split(path_1.default.sep).slice(0, -1).join(path_1.default.sep),
|
|
15
15
|
ignored: /(^|[\/\\])\../,
|
|
16
16
|
});
|
|
17
17
|
exports.createWatcherInstance = createWatcherInstance;
|
package/package.json
CHANGED
package/source/utils/watcher.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import chokidar, { FSWatcher } from 'chokidar';
|
|
2
2
|
import {
|
|
3
|
-
CURRENT_PATH,
|
|
4
3
|
EVENT_FILE_DELETED,
|
|
5
4
|
PACKAGE_EMAILS_PATH,
|
|
6
5
|
REACT_EMAIL_ROOT,
|
|
@@ -12,7 +11,7 @@ import shell from 'shelljs';
|
|
|
12
11
|
export const createWatcherInstance = (watchDir: string) =>
|
|
13
12
|
chokidar.watch(watchDir, {
|
|
14
13
|
ignoreInitial: true,
|
|
15
|
-
cwd:
|
|
14
|
+
cwd: watchDir.split(path.sep).slice(0, -1).join(path.sep),
|
|
16
15
|
ignored: /(^|[\/\\])\../,
|
|
17
16
|
});
|
|
18
17
|
|