Skip to content

Commit

Permalink
🐛 Skip plugins discover for deep scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
devkanro committed Jun 29, 2022
1 parent 729e598 commit 7258dd0
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 31 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages/*",
"examples/*"
],
"version": "2.0.0"
"version": "2.0.1"
}
10 changes: 5 additions & 5 deletions packages/sisyphus-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/cli",
"version": "2.0.0",
"version": "2.0.1",
"description": "Protoc cli for sisyphus project on js platform",
"bin": {
"sisygen": "lib/index.js"
Expand Down Expand Up @@ -30,10 +30,10 @@
},
"homepage": "https://github.com/ButterCam/sisyphus-js#readme",
"dependencies": {
"@sisyphus.js/compiler": "^2.0.0",
"@sisyphus.js/protoc": "^2.0.0",
"@sisyphus.js/runtime": "^2.0.0",
"@sisyphus.js/runtime.proto": "^2.0.0",
"@sisyphus.js/compiler": "^2.0.1",
"@sisyphus.js/protoc": "^2.0.1",
"@sisyphus.js/runtime": "^2.0.1",
"@sisyphus.js/runtime.proto": "^2.0.1",
"commander": "^9.3.0",
"npmlog": "^6.0.2"
}
Expand Down
3 changes: 1 addition & 2 deletions packages/sisyphus-cli/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ export async function discoverPluginsInModule(packageInfo: PackageJson, paths: s
queue.push(dep)
continue
}
if(info.main !== undefined) {
if (info.main !== undefined) {
require(modulePath)
}
await discoverPluginsInModule(info, [path.join(modulePath, 'node_modules')].concat(paths))
}
devDeps = queue
queue = []
Expand Down
4 changes: 2 additions & 2 deletions packages/sisyphus-compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/compiler",
"version": "2.0.0",
"version": "2.0.1",
"description": "Precompiled google common protos by sisyphus protobuf compiler",
"main": "lib/index.js",
"sisyphus": {
Expand Down Expand Up @@ -35,6 +35,6 @@
},
"homepage": "https://github.com/ButterCam/sisyphus-js#readme",
"dependencies": {
"@sisyphus.js/protoc": "^2.0.0"
"@sisyphus.js/protoc": "^2.0.1"
}
}
8 changes: 4 additions & 4 deletions packages/sisyphus-google-aip/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/google.aip",
"version": "2.0.0",
"version": "2.0.1",
"description": "Precompiled google common aip clients by sisyphus protobuf compiler",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -33,11 +33,11 @@
},
"homepage": "https://github.com/ButterCam/sisyphus-js#readme",
"devDependencies": {
"@sisyphus.js/cli": "^2.0.0"
"@sisyphus.js/cli": "^2.0.1"
},
"dependencies": {
"@sisyphus.js/transport-aip": "^2.0.0",
"@sisyphus.js/google": "^2.0.0"
"@sisyphus.js/transport-aip": "^2.0.1",
"@sisyphus.js/google": "^2.0.1"
},
"directories": {
"lib": "lib"
Expand Down
10 changes: 5 additions & 5 deletions packages/sisyphus-google-proto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/google.proto",
"version": "2.0.0",
"version": "2.0.1",
"description": "Precompiled google common protos with full protobuf by sisyphus protobuf compiler",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -33,12 +33,12 @@
},
"homepage": "https://github.com/ButterCam/sisyphus-js#readme",
"devDependencies": {
"@sisyphus.js/cli": "^2.0.0"
"@sisyphus.js/cli": "^2.0.1"
},
"dependencies": {
"@sisyphus.js/runtime": "^2.0.0",
"@sisyphus.js/runtime.proto": "^2.0.0",
"@sisyphus.js/google": "^2.0.0"
"@sisyphus.js/runtime": "^2.0.1",
"@sisyphus.js/runtime.proto": "^2.0.1",
"@sisyphus.js/google": "^2.0.1"
},
"directories": {
"lib": "lib"
Expand Down
9 changes: 5 additions & 4 deletions packages/sisyphus-google/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/google",
"version": "2.0.0",
"version": "2.0.1",
"description": "Precompiled google common protos by sisyphus protobuf compiler",
"scripts": {
"clean": "tsc --build --clean",
Expand All @@ -10,7 +10,8 @@
},
"files": [
"lib",
"src"
"src",
"proto"
],
"repository": {
"type": "git",
Expand All @@ -32,10 +33,10 @@
},
"homepage": "https://github.com/ButterCam/sisyphus-js#readme",
"devDependencies": {
"@sisyphus.js/cli": "^2.0.0"
"@sisyphus.js/cli": "^2.0.1"
},
"dependencies": {
"@sisyphus.js/runtime": "^2.0.0"
"@sisyphus.js/runtime": "^2.0.1"
},
"directories": {
"lib": "lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/sisyphus-protoc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/protoc",
"version": "2.0.0",
"version": "2.0.1",
"description": "Install protoc for current platform.",
"main": "lib/index.js",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions packages/sisyphus-runtime-proto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/runtime.proto",
"version": "2.0.0",
"version": "2.0.1",
"description": "Protobuf full runtime for sisyphus project on js platform, support protobuf binary format.",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
},
"dependencies": {
"@sisyphus.js/runtime": "^2.0.0"
"@sisyphus.js/runtime": "^2.0.1"
},
"directories": {
"lib": "lib"
Expand Down
5 changes: 3 additions & 2 deletions packages/sisyphus-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/runtime",
"version": "2.0.0",
"version": "2.0.1",
"description": "Protobuf lite runtime for sisyphus project on js platform, only support JSON format.",
"main": "lib/index.js",
"scripts": {
Expand All @@ -11,7 +11,8 @@
},
"files": [
"lib",
"src"
"src",
"proto"
],
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions packages/sisyphus-transport-aip/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sisyphus.js/transport-aip",
"version": "2.0.0",
"version": "2.0.1",
"description": "gRPC transport based on AIP spec(gRPC to HTTP/Json Transcoding).",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -32,8 +32,8 @@
},
"homepage": "https://github.com/ButterCam/sisyphus-js#readme",
"dependencies": {
"@sisyphus.js/google": "^2.0.0",
"@sisyphus.js/runtime": "^2.0.0"
"@sisyphus.js/google": "^2.0.1",
"@sisyphus.js/runtime": "^2.0.1"
},
"directories": {
"lib": "lib",
Expand Down

0 comments on commit 7258dd0

Please sign in to comment.