@snyk/cli-interface
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -11,3 +11,5 @@ { | ||
"files": [ | ||
"**/*.ts" | ||
"**/*.d.ts", | ||
"**/*.js", | ||
"**/*.js.map" | ||
], | ||
@@ -29,3 +31,3 @@ "scripts": { | ||
}, | ||
"version": "2.0.0" | ||
"version": "2.0.1" | ||
} |
@@ -8,3 +8,18 @@ # snyk-cli-interface | ||
This library should be only imported from Typescript. | ||
As such, the `npm` package is containing the `.ts` files | ||
(not the compiled `dist` directory). | ||
The types can be imported in one of the following ways: | ||
* whole sub-module import from the top level | ||
import { legacyPlugin as api } from '@snyk/cli-interface'; | ||
// use api.InspectOptions | ||
* "deep import" (discouraged but possible) | ||
import { InspectOptions } from '@snyk/cli-interface/legacy/plugin'; | ||
The `npm` package does not follow the usual Snyk convention and | ||
exports the build files in the root directory, not in dist, to enable "deep imports". | ||
We still have to publish the package using the compiled files, because many tools in Node.js | ||
ecosystem assume that published libraries should be always in Javascript. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20
25
19643
159