Skip to content

Commit

Permalink
Just copy package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeStanton committed May 14, 2015
1 parent 65e8b4e commit bcaa2f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
5 changes: 5 additions & 0 deletions Libraries/Sample/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Sample",
"version": "0.0.1",
"keywords": "react-native"
}
15 changes: 0 additions & 15 deletions local-cli/new-library.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ function newLibrary(libraryName) {
} else {
fs.mkdir(libraryDest);
}
writePackageJSON(libraryName, libraryDest);

utils.walk(source).forEach(function(f) {
f = f.replace(source, ''); // Strip off absolute path
Expand All @@ -50,20 +49,6 @@ function newLibrary(libraryName) {
console.log('');
}

function writePackageJSON(libraryName, dest) {
var pkg = {
name: libraryName,
version: '0.0.1',
private: false,
keywords: 'react-native'
};

fs.writeFileSync(
path.join(dest, 'package.json'),
JSON.stringify(pkg, null, 2)
);
}

module.exports = {
init: function(args) {
var libraryName = args[1];
Expand Down

0 comments on commit bcaa2f0

Please sign in to comment.