Skip to content

Commit

Permalink
Merge pull request #2108 from CartoDB/2107-add-dependencies-to-publis…
Browse files Browse the repository at this point in the history
…h-script

Add missing dependencies to release package
  • Loading branch information
Jesus89 committed Apr 27, 2018
2 parents 09aeb8a + d7355a5 commit e7df4b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/generate-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
var fs = require('fs');
var path = require('path');
var version = require(path.join(__dirname, '../package.json')).version;
var dependencies = require(path.join(__dirname, '../package.json')).dependencies;
var placeholder = require(path.join(__dirname, './package.public.json'));

placeholder.version = version;
placeholder.dependencies = dependencies;

fs.writeFileSync(path.join(__dirname, '../dist/public/package.json'), JSON.stringify(placeholder, null, 2));
1 change: 1 addition & 0 deletions scripts/package.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"type": "git",
"url": "git://github.com/CartoDB/carto.js.git"
},
"dependencies": {},
"author": {
"name": "CARTO",
"url": "https://carto.com/"
Expand Down

0 comments on commit e7df4b7

Please sign in to comment.