Coder Social home page Coder Social logo

Comments (2)

thomaschaaf avatar thomaschaaf commented on June 7, 2024

Is this a possible fix for you?

from hapi-sequelize.

fredguile avatar fredguile commented on June 7, 2024

Hey team, I'm using NPM 5.x and also facing an issue which is think is related. My guess is that it's due to your npm-shrinkwrap.json that contains way too many extraneous dependencies (was it because of an older version of Sequelize?), 180 to be exact. IMHO this should be deleted or replaced by a cleaner package-lock.json.

Initially after npm install, the npm module size is 49 Mb and is indeed the biggest of my project.

So I manually went cleaning the extraneous packages into my generated package-lock.json, and ended with these:

  "hapi-sequelize": {
      "version": "3.0.4",
      "resolved": "https://registry.npmjs.org/hapi-sequelize/-/hapi-sequelize-3.0.4.tgz",
      "integrity": "sha1-MRExUK9LWT6Pfgk7IvEaanaZBNY=",
      "dependencies": {
        "balanced-match": {
          "version": "0.3.0",
          "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz",
          "integrity": "sha1-qRzdHr7xqGZZ5w/03vAWJfwtZ1Y="
        },
        "brace-expansion": {
          "version": "1.1.2",
          "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.2.tgz",
          "integrity": "sha1-8hRF0EiLZY4nce/YcO/1HfKfBO8="
        },
        "concat-map": {
          "version": "0.0.1",
          "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
          "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
        },
        "glob": {
          "version": "7.0.3",
          "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.3.tgz",
          "integrity": "sha1-CqI1kxpKlqwT1g/6wvuHe9btT1g="
        },
        "hoek": {
          "version": "3.0.4",
          "resolved": "https://registry.npmjs.org/hoek/-/hoek-3.0.4.tgz",
          "integrity": "sha1-Jorf9mu2aVxptHiaiLHghHw/MSM="
        },
        "inflight": {
          "version": "1.0.4",
          "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz",
          "integrity": "sha1-bLtFIevVHODsCpNr/XZX736bFyo="
        },
        "inherits": {
          "version": "2.0.1",
          "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
          "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE="
        },
        "isemail": {
          "version": "2.1.0",
          "resolved": "https://registry.npmjs.org/isemail/-/isemail-2.1.0.tgz",
          "integrity": "sha1-f1Qz5GnYj0b7gfg/USDzbfA44v8="
        },
        "joi": {
          "version": "8.1.0",
          "resolved": "https://registry.npmjs.org/joi/-/joi-8.1.0.tgz",
          "integrity": "sha1-WhkJTM5oAJzhGDHzutOh4eCvotE=",
          "dependencies": {
            "hoek": {
              "version": "4.0.0",
              "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.0.0.tgz",
              "integrity": "sha1-NCm9h9lUj9RU5PbIVCiZropB30o="
            }
          }
        },
        "minimatch": {
          "version": "2.0.10",
          "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz",
          "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc="
        },
        "moment": {
          "version": "2.11.2",
          "resolved": "https://registry.npmjs.org/moment/-/moment-2.11.2.tgz",
          "integrity": "sha1-h5aOX5WsA4wuQqyVnHWBnNP1KQE="
        },
        "once": {
          "version": "1.3.3",
          "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz",
          "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA="
        },
        "topo": {
          "version": "2.0.0",
          "resolved": "https://registry.npmjs.org/topo/-/topo-2.0.0.tgz",
          "integrity": "sha1-MVya7bhoytW2FhWWPJ/Qm+kSwe0="
        },
        "wrappy": {
          "version": "1.0.1",
          "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz",
          "integrity": "sha1-HmWWmWXMvC20VIxrhKbyxa7dRzk="
        }
      }
    },

After this no more extraneous package and the npm module size is 6 Mb.

I'd appreciate if someone could repackage this lib properly.

from hapi-sequelize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.