Skip to content

Commit

Permalink
fixing Could not find node_modules #1 1h
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanquera committed Apr 22, 2024
1 parent de236c7 commit c8a46d9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/idea-language/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Implementation of idea language server in node.",
"author": "Chris <[email protected]>",
"license": "MIT",
"version": "0.1.1",
"version": "0.1.2",
"publisher": "ossph",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/idea-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "idea-langugage",
"displayName": "Idea",
"description": "Adds syntax highlighting, formatting, auto-completion, jump-to-definition and linting for .idea files.",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"icon": "idea.png",
"repository": {
Expand Down Expand Up @@ -74,7 +74,7 @@
"test": "sh ./scripts/e2e.sh"
},
"dependencies": {
"@ossph/idea-parser": "0.1.1"
"@ossph/idea-parser": "0.1.2"
},
"devDependencies": {
"@types/mocha": "^9.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/idea-language/server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "idea-language-server",
"description": "Implementation of idea language server in node.",
"version": "0.1.1",
"version": "0.1.2",
"author": "Chris <[email protected]>",
"license": "MIT",
"engines": {
Expand All @@ -12,7 +12,7 @@
"url": "https://github.com/OSSPhilippines/idea"
},
"dependencies": {
"@ossph/idea-parser": "0.1.1",
"@ossph/idea-parser": "0.1.2",
"vscode-languageserver": "8.1.0",
"vscode-languageserver-textdocument": "1.0.8"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/idea-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ossph/idea-parser",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"description": "Parses ideas to AST and readable JSON.",
"author": "Chris <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions packages/idea-transformer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ossph/idea-transformer",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"description": "A programmatical command line interface used by projects and that calls on external transformers to make relevant code",
"author": "Chris <[email protected]>",
Expand All @@ -15,7 +15,7 @@
"build:files": "cp ./README.md ./dist/ && cp ./package.json ./dist/ && cp ./LICENSE ./dist/"
},
"dependencies": {
"@ossph/idea-parser": "0.1.1"
"@ossph/idea-parser": "0.1.2"
},
"devDependencies": {
"@types/node": "20.2.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/idea-transformer/src/types/Loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class Loader {
if (cwd === '/') {
throw new Error('Could not find node_modules');
}
if (fs.existsSync(path.resolve(cwd, 'node_modules/@idea/generator'))) {
if (fs.existsSync(path.resolve(cwd, 'node_modules/@ossph/idea-transformer'))) {
return path.resolve(cwd, 'node_modules');
}
return this.modules(path.dirname(cwd));
Expand Down
6 changes: 3 additions & 3 deletions packages/idea/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ossph/idea",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"description": "An open source schema file standard and generator",
"author": "Chris <[email protected]>",
Expand All @@ -16,8 +16,8 @@
"build:files": "cp ./README.md ./dist/ && cp ./package.json ./dist/ && cp ./LICENSE ./dist/"
},
"dependencies": {
"@ossph/idea-parser": "0.1.1",
"@ossph/idea-transformer": "0.1.1"
"@ossph/idea-parser": "0.1.2",
"@ossph/idea-transformer": "0.1.2"
},
"devDependencies": {
"@types/node": "20.2.5",
Expand Down

0 comments on commit c8a46d9

Please sign in to comment.