Skip to content

is_private returned as str in place of boolean #4631

@tdruez

Description

@tdruez

From aboutcode-org/scancode.io#1986

Using https://github.com/facebook/react/blob/main/packages/react-devtools-fusebox/package.json

{
  "name": "react-devtools-fusebox",
  "version": "0.0.0",
  "private": "true",
  "license": "MIT",
  "files": ["dist"],
  "scripts": {
    "build:frontend:copy-types": "cp src/*.d.ts dist/",
    "build:frontend:local": "cross-env NODE_ENV=development webpack --config webpack.config.frontend.js && yarn build:frontend:copy-types",
    "build:frontend": "cross-env NODE_ENV=production webpack --config webpack.config.frontend.js && yarn build:frontend:copy-types",
    "build": "yarn build:frontend"
  },
  "devDependencies": {
    "buffer": "^6.0.3",
    "cross-env": "^7.0.3",
    "css-loader": "^6.9.1",
    "mini-css-extract-plugin": "^2.7.7",
    "process": "^0.11.10",
    "webpack": "^5.82.1",
    "webpack-cli": "^5.1.1",
    "workerize-loader": "^2.0.2"
  }
}
scancode --package /Users/operator/Downloads/package.json --json-pp -
...
 "packages": [
    {
      "type": "npm",
      "namespace": null,
      "name": "react-devtools-fusebox",
      "version": "0.0.0",
      "qualifiers": {},
      "subpath": null,
      "primary_language": "JavaScript",
      ...
      "is_private": "true",    <------------------
      "is_virtual": false,
...

Expected value is True, but in that specific case, does the "private": "true", entry in package.json translate to is_private in the ScanCode context?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions