Skip to content

Commit

Permalink
Merge pull request #3 from core-ds/fix/bugs
Browse files Browse the repository at this point in the history
Исправление ошибки MODULE_NOT_FOUND
  • Loading branch information
kiskv authored Nov 28, 2024
2 parents 0cc20ce + ae8bd73 commit 105bb7c
Show file tree
Hide file tree
Showing 6 changed files with 947 additions and 900 deletions.
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ defaultSemverRangePrefix: ""

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.3.1.cjs
yarnPath: .yarn/releases/yarn-4.5.3.cjs
6 changes: 3 additions & 3 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function getInstalledVarsPackage() {

function runInsideCoreComponents() {
try {
const rootPackage = require(path.join(__dirname, '../../../package.json'));
const rootPackage = require(path.join(process.cwd(), 'package.json'));
return rootPackage.name === CORE_COMPONENTS_PACKAGE;
} catch (e) {
console.log(e);
Expand All @@ -94,7 +94,7 @@ function resolveVarsFile(file) {

return fs.readFileSync(require.resolve(fullPath));
} else {
return fs.readFileSync(path.resolve(__dirname, `../../../packages/vars/src/${file}`));
return fs.readFileSync(path.resolve(process.cwd(), `packages/vars/src/${file}`));
}
}

Expand Down Expand Up @@ -268,7 +268,7 @@ function findTypographyMixins(ruleProps) {
return TYPOGRAPHY_PROPS.every((prop) => ruleProps[prop] === mixinProps[prop]);
} else {
return TYPOGRAPHY_PROPS.every(
(prop) => !ruleProps[prop] || ruleProps[prop] === mixinProps[prop]
(prop) => !ruleProps[prop] || ruleProps[prop] === mixinProps[prop],
);
}
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
"commit-msg": "./node_modules/.bin/commitlint --edit $1"
},
"prettier": "arui-presets-lint/prettier",
"packageManager": "yarn@4.3.1"
"packageManager": "yarn@4.5.3"
}
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ __metadata:
languageName: node
linkType: hard

"@alfalab/stylelint-core-vars@npm:1.6.0, @alfalab/stylelint-core-vars@workspace:.":
"@alfalab/stylelint-core-vars@npm:1.6.0":
version: 1.6.0
resolution: "@alfalab/stylelint-core-vars@npm:1.6.0"
checksum: 10c0/c49891b03779f60bbcebd025e8256ed6d5dd9065657402cdb7ef4e808ae7dc0b6e85aae34a86a5cdf76ab2bcc9aa2c1825089c5a362355980267be6c20456a5d
languageName: node
linkType: hard

"@alfalab/stylelint-core-vars@workspace:.":
version: 0.0.0-use.local
resolution: "@alfalab/stylelint-core-vars@workspace:."
dependencies:
Expand Down

0 comments on commit 105bb7c

Please sign in to comment.