Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-package-modules

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-package-modules - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "grunt-package-modules",
"description": "Packages node_modules dependencies at build time for addition to a distribution package.",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/joshperry/grunt-package-modules",

@@ -6,0 +6,0 @@ "author": {

@@ -10,3 +10,3 @@ # grunt-package-modules

This task takes care creating a fresh `node_modules` for including in a distribution tarball by effectively copying the `package.json` into a temp directory, and then executing `npm install --production --ignore-scripts --prefix tempdir/` to install all production deps into `tmpdir/node_modules`.
This task takes care of creating a fresh `node_modules` for including in a distribution tarball by effectively copying the `package.json` into a temp directory, and then executing `npm install --production --ignore-scripts --prefix tempdir/` to install all production deps into `tmpdir/node_modules`.

@@ -53,3 +53,3 @@ This directory can then be the source of another plugin, like copy or compress, to package the fresh `node_modules` into its delicious-looking retail packaging.

Here is an example that uses the copy and compress plugins to send the packaged modules to a dist tarball
Here is an example that uses the copy and compress plugins to send the packaged modules to a dist tarball:

@@ -61,3 +61,3 @@ ```js

src: 'package.json',
dest: '.tmp/module_packaging'
dest: 'dist'
},

@@ -72,12 +72,5 @@ },

src: [
'package.json',
'lib/**/*'
]
}, {
// Copy bundled modules to dist dir
expand: true,
cwd: '.tmp/module_packaging',
dest: 'dist',
src: [ 'node_modules/**/*' ]
}]
}]
},

@@ -84,0 +77,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc