@spica-devkit/database 0.18.13 → 0.18.15
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 +1 -4
- package/scripts/postinstall.js +0 -18
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spica-devkit/database",
|
|
3
3
|
"license": "AGPLv3",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.15",
|
|
5
5
|
"description": "Database package for Spica functions.",
|
|
6
6
|
"author": "spica",
|
|
7
7
|
"keywords": [
|
|
@@ -15,8 +15,5 @@
|
|
|
15
15
|
"typings": "dist/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"mongodb": "^6.12.0"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"postinstall": "node ./scripts/postinstall.js"
|
|
21
18
|
}
|
|
22
19
|
}
|
package/scripts/postinstall.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Symlinks database as @internal/database for backward-compatibility.
|
|
3
|
-
*/
|
|
4
|
-
const path = require("path");
|
|
5
|
-
const fs = require("fs");
|
|
6
|
-
|
|
7
|
-
const modulePath = path.dirname(require.resolve("@spica-devkit/database/package.json"));
|
|
8
|
-
const nodeModulesRoot = path.join(modulePath, "..", "..");
|
|
9
|
-
const targetPath = path.join(nodeModulesRoot, "@internal");
|
|
10
|
-
|
|
11
|
-
try {
|
|
12
|
-
fs.mkdirSync(targetPath);
|
|
13
|
-
fs.symlinkSync(modulePath, path.join(targetPath, "database"), "dir");
|
|
14
|
-
} catch (error) {
|
|
15
|
-
if (error.code != "EEXIST") {
|
|
16
|
-
throw error;
|
|
17
|
-
}
|
|
18
|
-
}
|