vovk 0.2.3-beta.114 → 0.2.3-beta.116
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/cli/postinstall.mjs +5 -0
- package/package.json +2 -2
package/cli/postinstall.mjs
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
import fs from 'fs/promises';
|
|
3
3
|
import path from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7
|
+
// @ts-ignore Ignore meta-property error
|
|
8
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
4
9
|
|
|
5
10
|
/** @type {(path: string) => Promise<boolean>} */
|
|
6
11
|
const fileExists = async (path) => !!(await fs.stat(path).catch(() => false));
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vovk",
|
|
3
|
-
"version": "0.2.3-beta.
|
|
3
|
+
"version": "0.2.3-beta.116",
|
|
4
4
|
"description": "Structural add-on for Next.js",
|
|
5
5
|
"bin": "./cli/index.mjs",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"postinstall": "node ./cli/postinstall.
|
|
7
|
+
"postinstall": "node ./cli/postinstall.mjs",
|
|
8
8
|
"upgrade": "npx npm-check-updates -u && npm i",
|
|
9
9
|
"test": "npm run lint-nofix && tsc --noemit && tsc --project tsconfig.cli.json --noemit && npm run unit",
|
|
10
10
|
"unit": "PORT=3210 concurrently \"sleep 20 && npm run test:unit\" \"npm run serve:unit\" --kill-others --success first",
|