Skip to content

Commit ab20f29

Browse files
Create PackageManifest classes for NPM
Creates PackageManifest classes for NPM manifests and overrides detection and PackageMamanifest creation methods. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 9466e0f commit ab20f29

5 files changed

Lines changed: 448 additions & 402 deletions

File tree

src/packagedcode/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
models.Axis2Mar,
5252

5353
about.Aboutfile,
54-
npm.NpmPackage,
54+
npm.NPMPackageJSON,
55+
npm.NPMPackageLockJSON,
56+
npm.NPMYarnLockJSON,
5557
phpcomposer.PHPComposerPackage,
5658
haxe.HaxePackage,
5759
cargo.RustCargoCrate,

src/packagedcode/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ def get_package_root(cls, manifest_resource, codebase):
861861
class CpanModule(Package, PackageManifest):
862862
file_patterns = (
863863
'*.pod',
864+
# TODO: .pm is not a package manifest
864865
'*.pm',
865866
'MANIFEST',
866867
'Makefile.PL',

0 commit comments

Comments
 (0)