@intlayer/chokidar 3.4.6 → 3.4.7
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.
|
@@ -23,13 +23,19 @@ __export(cleanOutputDir_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(cleanOutputDir_exports);
|
|
24
24
|
var import_fs = require("fs");
|
|
25
25
|
var import_config = require("@intlayer/config");
|
|
26
|
+
var import_createDictionaryList = require('./transpiler/dictionary_to_main/createDictionaryList.cjs');
|
|
26
27
|
const cleanOutputDir = () => {
|
|
27
28
|
const { content } = (0, import_config.getConfiguration)();
|
|
28
|
-
const { resultDir } = content;
|
|
29
|
+
const { resultDir, typesDir, dictionariesDir } = content;
|
|
29
30
|
if ((0, import_fs.existsSync)(resultDir)) {
|
|
30
|
-
(0, import_fs.
|
|
31
|
+
if ((0, import_fs.existsSync)(dictionariesDir)) {
|
|
32
|
+
(0, import_fs.rmSync)(dictionariesDir, { recursive: true });
|
|
33
|
+
}
|
|
34
|
+
if ((0, import_fs.existsSync)(typesDir)) {
|
|
35
|
+
(0, import_fs.rmSync)(typesDir, { recursive: true });
|
|
36
|
+
}
|
|
31
37
|
}
|
|
32
|
-
(0,
|
|
38
|
+
(0, import_createDictionaryList.createDictionaryList)();
|
|
33
39
|
};
|
|
34
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
35
41
|
0 && (module.exports = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cleanOutputDir.ts"],"sourcesContent":["import { existsSync, rmSync
|
|
1
|
+
{"version":3,"sources":["../../src/cleanOutputDir.ts"],"sourcesContent":["import { existsSync, rmSync } from 'fs';\nimport { getConfiguration } from '@intlayer/config';\nimport { createDictionaryList } from './transpiler/dictionary_to_main/createDictionaryList';\n\nexport const cleanOutputDir = () => {\n const { content } = getConfiguration();\n\n const { resultDir, typesDir, dictionariesDir } = content;\n\n if (existsSync(resultDir)) {\n // Delete the dictionary directory\n if (existsSync(dictionariesDir)) {\n rmSync(dictionariesDir, { recursive: true });\n }\n\n // Delete the types directory\n if (existsSync(typesDir)) {\n rmSync(typesDir, { recursive: true });\n }\n }\n\n createDictionaryList();\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAmC;AACnC,oBAAiC;AACjC,kCAAqC;AAE9B,MAAM,iBAAiB,MAAM;AAClC,QAAM,EAAE,QAAQ,QAAI,gCAAiB;AAErC,QAAM,EAAE,WAAW,UAAU,gBAAgB,IAAI;AAEjD,UAAI,sBAAW,SAAS,GAAG;AAEzB,YAAI,sBAAW,eAAe,GAAG;AAC/B,4BAAO,iBAAiB,EAAE,WAAW,KAAK,CAAC;AAAA,IAC7C;AAGA,YAAI,sBAAW,QAAQ,GAAG;AACxB,4BAAO,UAAU,EAAE,WAAW,KAAK,CAAC;AAAA,IACtC;AAAA,EACF;AAEA,wDAAqB;AACvB;","names":[]}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { existsSync, rmSync
|
|
1
|
+
import { existsSync, rmSync } from "fs";
|
|
2
2
|
import { getConfiguration } from "@intlayer/config";
|
|
3
|
+
import { createDictionaryList } from './transpiler/dictionary_to_main/createDictionaryList.mjs';
|
|
3
4
|
const cleanOutputDir = () => {
|
|
4
5
|
const { content } = getConfiguration();
|
|
5
|
-
const { resultDir } = content;
|
|
6
|
+
const { resultDir, typesDir, dictionariesDir } = content;
|
|
6
7
|
if (existsSync(resultDir)) {
|
|
7
|
-
|
|
8
|
+
if (existsSync(dictionariesDir)) {
|
|
9
|
+
rmSync(dictionariesDir, { recursive: true });
|
|
10
|
+
}
|
|
11
|
+
if (existsSync(typesDir)) {
|
|
12
|
+
rmSync(typesDir, { recursive: true });
|
|
13
|
+
}
|
|
8
14
|
}
|
|
9
|
-
|
|
15
|
+
createDictionaryList();
|
|
10
16
|
};
|
|
11
17
|
export {
|
|
12
18
|
cleanOutputDir
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cleanOutputDir.ts"],"sourcesContent":["import { existsSync, rmSync
|
|
1
|
+
{"version":3,"sources":["../../src/cleanOutputDir.ts"],"sourcesContent":["import { existsSync, rmSync } from 'fs';\nimport { getConfiguration } from '@intlayer/config';\nimport { createDictionaryList } from './transpiler/dictionary_to_main/createDictionaryList';\n\nexport const cleanOutputDir = () => {\n const { content } = getConfiguration();\n\n const { resultDir, typesDir, dictionariesDir } = content;\n\n if (existsSync(resultDir)) {\n // Delete the dictionary directory\n if (existsSync(dictionariesDir)) {\n rmSync(dictionariesDir, { recursive: true });\n }\n\n // Delete the types directory\n if (existsSync(typesDir)) {\n rmSync(typesDir, { recursive: true });\n }\n }\n\n createDictionaryList();\n};\n"],"mappings":"AAAA,SAAS,YAAY,cAAc;AACnC,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AAE9B,MAAM,iBAAiB,MAAM;AAClC,QAAM,EAAE,QAAQ,IAAI,iBAAiB;AAErC,QAAM,EAAE,WAAW,UAAU,gBAAgB,IAAI;AAEjD,MAAI,WAAW,SAAS,GAAG;AAEzB,QAAI,WAAW,eAAe,GAAG;AAC/B,aAAO,iBAAiB,EAAE,WAAW,KAAK,CAAC;AAAA,IAC7C;AAGA,QAAI,WAAW,QAAQ,GAAG;AACxB,aAAO,UAAU,EAAE,WAAW,KAAK,CAAC;AAAA,IACtC;AAAA,EACF;AAEA,uBAAqB;AACvB;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanOutputDir.d.ts","sourceRoot":"","sources":["../../src/cleanOutputDir.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cleanOutputDir.d.ts","sourceRoot":"","sources":["../../src/cleanOutputDir.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,YAkB1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/chokidar",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Chokidar application for IntLayer - Transpile IntLayer declaration files into dictionaries.",
|
|
6
6
|
"keywords": [
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"quicktype-core": "^23.0.170",
|
|
68
68
|
"react": "^18.3.1",
|
|
69
69
|
"rimraf": "^6.0.1",
|
|
70
|
-
"@intlayer/
|
|
71
|
-
"@intlayer/core": "^3.4.
|
|
72
|
-
"@intlayer/design-system": "^3.4.
|
|
73
|
-
"
|
|
74
|
-
"intlayer": "^3.4.
|
|
70
|
+
"@intlayer/config": "^3.4.7",
|
|
71
|
+
"@intlayer/core": "^3.4.7",
|
|
72
|
+
"@intlayer/design-system": "^3.4.7",
|
|
73
|
+
"intlayer": "^3.4.7",
|
|
74
|
+
"@intlayer/backend": "^3.4.7"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@changesets/cli": "2.27.10",
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"@utils/tsup-config": "^1.0.4"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@intlayer/backend": "^3.4.
|
|
95
|
-
"@intlayer/
|
|
96
|
-
"@intlayer/
|
|
97
|
-
"@intlayer/
|
|
98
|
-
"intlayer": "^3.4.
|
|
94
|
+
"@intlayer/backend": "^3.4.7",
|
|
95
|
+
"@intlayer/design-system": "^3.4.7",
|
|
96
|
+
"@intlayer/config": "^3.4.7",
|
|
97
|
+
"@intlayer/core": "^3.4.7",
|
|
98
|
+
"intlayer": "^3.4.7"
|
|
99
99
|
},
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=14.18"
|