@10stars/config 7.3.0 → 7.3.2
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 +4 -4
- package/src/link-packages.ts +3 -5
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@10stars/config",
|
|
7
|
-
"version": "7.3.
|
|
7
|
+
"version": "7.3.2",
|
|
8
8
|
"author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"module": "./src/index.ts",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
33
33
|
"@typescript-eslint/parser": "^5.0.0",
|
|
34
34
|
"builtin-modules": "^3.3.0",
|
|
35
|
-
"esbuild": "~0.
|
|
35
|
+
"esbuild": "~0.17.2",
|
|
36
36
|
"tsx": "^3.8.0",
|
|
37
37
|
"eslint": "^8.0.0",
|
|
38
38
|
"eslint-config-prettier": "^8.0.0",
|
|
39
39
|
"eslint-plugin-import": "^2.0.0",
|
|
40
40
|
"eslint-plugin-react": "^7.0.0",
|
|
41
41
|
"eslint-plugin-regexp": "^1.0.0",
|
|
42
|
-
"eslint-plugin-simple-import-sort": "^
|
|
42
|
+
"eslint-plugin-simple-import-sort": "^9.0.0",
|
|
43
43
|
"eslint-plugin-sort-keys-fix": "^1.0.0",
|
|
44
44
|
"eslint-watch": "^8.0.0",
|
|
45
45
|
"husky": "^8.0.0",
|
|
46
46
|
"prettier": "^2.0.0",
|
|
47
47
|
"type-fest": "^3.0.0",
|
|
48
|
-
"typescript": "^4.9.
|
|
48
|
+
"typescript": "^4.9.4"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/src/link-packages.ts
CHANGED
|
@@ -22,8 +22,7 @@ export const linkPackages = async (
|
|
|
22
22
|
cwd: string,
|
|
23
23
|
packagesToLink: { relativePath: string; isMonorepo?: boolean }[],
|
|
24
24
|
) => {
|
|
25
|
-
const linkPackage = async (
|
|
26
|
-
const pathPkg = path.join(cwd, relativePathToPkg)
|
|
25
|
+
const linkPackage = async (pathPkg: string) => {
|
|
27
26
|
const pkgJson: TF.PackageJson = await import(
|
|
28
27
|
path.join(pathPkg, `package.json`)
|
|
29
28
|
).catch(() => null)
|
|
@@ -31,15 +30,14 @@ export const linkPackages = async (
|
|
|
31
30
|
|
|
32
31
|
const [orgName, pkgName] = pkgJson.name!.split(`/`)
|
|
33
32
|
|
|
34
|
-
const pathTarget = path.join(cwd, relativePathToPkg)
|
|
35
33
|
const pathSymlink = path.join(cwd, `node_modules`, orgName, pkgName)
|
|
36
|
-
return symlink(
|
|
34
|
+
return symlink(pathPkg, pathSymlink)
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
const promises: Promise<unknown>[] = []
|
|
40
38
|
for (const packageToLink of packagesToLink) {
|
|
41
39
|
if (!packageToLink.isMonorepo) {
|
|
42
|
-
promises.push(linkPackage(packageToLink.relativePath))
|
|
40
|
+
promises.push(linkPackage(path.join(cwd, packageToLink.relativePath)))
|
|
43
41
|
continue
|
|
44
42
|
}
|
|
45
43
|
|