#!/usr/bin/env node 'use strict'; // // This is a simple packager that creates a .tar.gz archive in the dist directory of your project // with the filename being the name attribute from your package.json // So all you need to do with a build step is this: // `./node_modules/bin/create_dist` // and you will have a .tar.gz package created in your project dist/ directory. var archiver = require('../lib/archiver') , pkg = require('../package.json') // package.json of your project that uses this module. , path = require('path'); // Create the distributable tar.gz archive var dirname = path.resolve(__dirname, '../'); archiver(dirname, path.resolve(dirname, 'dist/' + pkg.name + '.tar.gz'));