@alfalab/stylelint-core-vars 1.7.0 → 1.7.1
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/lib/utils.js +3 -3
- package/package.json +2 -2
package/lib/utils.js
CHANGED
|
@@ -76,7 +76,7 @@ function getInstalledVarsPackage() {
|
|
|
76
76
|
|
|
77
77
|
function runInsideCoreComponents() {
|
|
78
78
|
try {
|
|
79
|
-
const rootPackage = require(path.join(
|
|
79
|
+
const rootPackage = require(path.join(process.cwd(), 'package.json'));
|
|
80
80
|
return rootPackage.name === CORE_COMPONENTS_PACKAGE;
|
|
81
81
|
} catch (e) {
|
|
82
82
|
console.log(e);
|
|
@@ -94,7 +94,7 @@ function resolveVarsFile(file) {
|
|
|
94
94
|
|
|
95
95
|
return fs.readFileSync(require.resolve(fullPath));
|
|
96
96
|
} else {
|
|
97
|
-
return fs.readFileSync(path.resolve(
|
|
97
|
+
return fs.readFileSync(path.resolve(process.cwd(), `packages/vars/src/${file}`));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -268,7 +268,7 @@ function findTypographyMixins(ruleProps) {
|
|
|
268
268
|
return TYPOGRAPHY_PROPS.every((prop) => ruleProps[prop] === mixinProps[prop]);
|
|
269
269
|
} else {
|
|
270
270
|
return TYPOGRAPHY_PROPS.every(
|
|
271
|
-
(prop) => !ruleProps[prop] || ruleProps[prop] === mixinProps[prop]
|
|
271
|
+
(prop) => !ruleProps[prop] || ruleProps[prop] === mixinProps[prop],
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
274
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/stylelint-core-vars",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "core-components css linter",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"commit-msg": "./node_modules/.bin/commitlint --edit $1"
|
|
45
45
|
},
|
|
46
46
|
"prettier": "arui-presets-lint/prettier",
|
|
47
|
-
"packageManager": "yarn@4.3
|
|
47
|
+
"packageManager": "yarn@4.5.3"
|
|
48
48
|
}
|