webtreemap icon indicating copy to clipboard operation
webtreemap copied to clipboard

package.json in published package is different

Open nikolay-borzov opened this issue 5 years ago • 3 comments

package.json in the published package is different from one at master branch

{
  "author": {
    "name": "Evan Martin",
    "email": "[email protected]"
  },
  "bin": {
    "webtreemap": "build/cli.js"
  },
  "bugs": {
    "url": "https://github.com/evmar/webtreemap/issues"
  },
  "bundleDependencies": false,
  "dependencies": {
    "commander": "^2.11.0"
  },
  "deprecated": false,
  "description": "treemap visualization",
  "devDependencies": {
    "@types/commander": "^2.11.0",
    "@types/node": "^8.0.34",
    "prettier": "^1.7.0",
    "ts-loader": "^2.3.7",
    "typescript": "^2.5.2",
    "webpack": "^3.7.1"
  },
  "files": [
    "build/*.js",
    "build/*.d.ts",
    "dist/webtreemap.js"
  ],
  "homepage": "https://github.com/evmar/webtreemap#readme",
  "keywords": [
    "treemap",
    "visualization"
  ],
  "license": "Apache-2.0",
  "main": "treemap.js",
  "name": "webtreemap",
  "prettier": {
    "singleQuote": true,
    "trailingComma": "es5",
    "bracketSpacing": false,
    "parser": "typescript"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/evmar/webtreemap.git"
  },
  "scripts": {
    "build": "webpack --optimize-minimize",
    "demo": "du -ab node_modules/ | node build/cli.js --title 'node_modules for webtreemap' > docs/demo.html",
    "dev": "webpack --watch",
    "fmt": "prettier --write *.ts demo/*.ts",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "version": "2.0.1"
}

nikolay-borzov avatar May 12 '19 08:05 nikolay-borzov

Ugh, it looks like I made a quick fix and pushed it and forgot to commit it. Let me see if I can find what I did...

evmar avatar May 12 '19 16:05 evmar

Wait no, it's just that the version posted on npm is older than master, so it doesn't have more recent changes to package.json. I think this is to be expected. Was this causing a problem?

evmar avatar May 12 '19 16:05 evmar

Well, "main" points to non-existing file meaning import { } from 'webtreemap' doesn't work

nikolay-borzov avatar May 12 '19 16:05 nikolay-borzov