@aeriajs/core 0.0.212 → 0.0.213
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.
|
@@ -70,15 +70,20 @@ declare module 'aeria' {
|
|
|
70
70
|
}
|
|
71
71
|
//`;
|
|
72
72
|
const install = async () => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
try {
|
|
74
|
+
const base = process.env.OLDPWD || process.cwd();
|
|
75
|
+
const aeriaDir = path.join(base, '.aeria');
|
|
76
|
+
if (!fs.existsSync(aeriaDir)) {
|
|
77
|
+
await fs.promises.mkdir(aeriaDir);
|
|
78
|
+
}
|
|
79
|
+
const { types = 'src/index.ts' } = JSON.parse(await fs.promises.readFile(path.join(base, 'package.json'), {
|
|
80
|
+
encoding: 'utf8',
|
|
81
|
+
}));
|
|
82
|
+
const dts = makeDts(path.join('..', types).split(path.sep).join('/'));
|
|
83
|
+
await fs.promises.writeFile(path.join(aeriaDir, DTS_FILENAME), dts);
|
|
84
|
+
}
|
|
85
|
+
catch (err) {
|
|
86
|
+
console.error(err);
|
|
77
87
|
}
|
|
78
|
-
const { types = 'src/index.ts' } = JSON.parse(await fs.promises.readFile(path.join(base, 'package.json'), {
|
|
79
|
-
encoding: 'utf8',
|
|
80
|
-
}));
|
|
81
|
-
const dts = makeDts(path.join('..', types).split(path.sep).join('/'));
|
|
82
|
-
await fs.promises.writeFile(path.join(aeriaDir, DTS_FILENAME), dts);
|
|
83
88
|
};
|
|
84
89
|
install();
|
|
@@ -36,15 +36,19 @@ declare module 'aeria' {
|
|
|
36
36
|
}
|
|
37
37
|
//`;
|
|
38
38
|
const install = async () => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
try {
|
|
40
|
+
const base = process.env.OLDPWD || process.cwd();
|
|
41
|
+
const aeriaDir = path.join(base, ".aeria");
|
|
42
|
+
if (!fs.existsSync(aeriaDir)) {
|
|
43
|
+
await fs.promises.mkdir(aeriaDir);
|
|
44
|
+
}
|
|
45
|
+
const { types = "src/index.ts" } = JSON.parse(await fs.promises.readFile(path.join(base, "package.json"), {
|
|
46
|
+
encoding: "utf8"
|
|
47
|
+
}));
|
|
48
|
+
const dts = makeDts(path.join("..", types).split(path.sep).join("/"));
|
|
49
|
+
await fs.promises.writeFile(path.join(aeriaDir, DTS_FILENAME), dts);
|
|
50
|
+
} catch (err) {
|
|
51
|
+
console.error(err);
|
|
43
52
|
}
|
|
44
|
-
const { types = "src/index.ts" } = JSON.parse(await fs.promises.readFile(path.join(base, "package.json"), {
|
|
45
|
-
encoding: "utf8"
|
|
46
|
-
}));
|
|
47
|
-
const dts = makeDts(path.join("..", types).split(path.sep).join("/"));
|
|
48
|
-
await fs.promises.writeFile(path.join(aeriaDir, DTS_FILENAME), dts);
|
|
49
53
|
};
|
|
50
54
|
install();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.213",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"aeriaMain": "tests/fixtures/aeriaMain.js",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"mongodb-memory-server": "^9.2.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@aeriajs/builtins": "^0.0.
|
|
45
|
+
"@aeriajs/builtins": "^0.0.213",
|
|
46
46
|
"@aeriajs/common": "^0.0.125",
|
|
47
47
|
"@aeriajs/entrypoint": "^0.0.128",
|
|
48
48
|
"@aeriajs/http": "^0.0.150",
|
|
49
|
-
"@aeriajs/security": "^0.0.
|
|
49
|
+
"@aeriajs/security": "^0.0.213",
|
|
50
50
|
"@aeriajs/types": "^0.0.107",
|
|
51
51
|
"@aeriajs/validation": "^0.0.139"
|
|
52
52
|
},
|