js-style-kit 0.7.0 → 0.8.0
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/dist/bin/index.cjs +2 -1
- package/dist/bin/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -3
- package/dist/index.js +87 -29
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/eslint/ignores.ts +13 -10
- package/src/eslint/index.ts +32 -18
- package/src/eslint/testing/config.ts +21 -12
- package/src/eslint/testing/get-import-restrictions.ts +70 -0
- package/src/eslint/types.ts +7 -0
package/dist/bin/index.cjs
CHANGED
|
@@ -3541,7 +3541,8 @@ var getDependencies = () => {
|
|
|
3541
3541
|
"package.json"
|
|
3542
3542
|
);
|
|
3543
3543
|
try {
|
|
3544
|
-
|
|
3544
|
+
const exists = import_node_fs3.default.existsSync(nodeModulesPath);
|
|
3545
|
+
if (exists) {
|
|
3545
3546
|
const jsStyleKitPackageJson = JSON.parse(
|
|
3546
3547
|
import_node_fs3.default.readFileSync(nodeModulesPath, "utf8")
|
|
3547
3548
|
);
|