diff --git a/scripts/tsgen/bin/publish.js b/scripts/tsgen/bin/publish.js index 5d0f88bf3..d635a7d22 100644 --- a/scripts/tsgen/bin/publish.js +++ b/scripts/tsgen/bin/publish.js @@ -18,6 +18,8 @@ function publish(data, opts) { if (!fs.existsSync(opts.destination)) { fs.mkdirSync(opts.destination); } + var str = JSON.stringify(data().get(), null, 4); + fs.writeFileSync(path.join(opts.destination, 'phaser.json'), str); var out = new Parser_1.Parser(data().get()).emit(); fs.writeFileSync(path.join(opts.destination, 'phaser.d.ts'), out); } diff --git a/scripts/tsgen/bin/publish.js.map b/scripts/tsgen/bin/publish.js.map index d3122ffd0..d9571323c 100644 --- a/scripts/tsgen/bin/publish.js.map +++ b/scripts/tsgen/bin/publish.js.map @@ -1 +1 @@ -{"version":3,"file":"publish.js","sourceRoot":"","sources":["../src/publish.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,6BAA6B;AAC7B,qCAAkC;AAElC,SAAgB,OAAO,CAAC,IAAS,EAAE,IAAS;IACxC,6BAA6B;IAC7B,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,sBAAsB;IACtB,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACjD,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAEhC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;QAClC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,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AI,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,EAAE,GAAG,CAAC,CAAC;IAElE,IAAI,GAAG,GAAG,IAAI,eAAM,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAE1C,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,EAAE,GAAG,CAAC,CAAC;AACtE,CAAC;AAvBD,0BAuBC;AAAA,CAAC"} \ No newline at end of file diff --git a/scripts/tsgen/src/publish.ts b/scripts/tsgen/src/publish.ts index 607938fe8..b93fe0e14 100644 --- a/scripts/tsgen/src/publish.ts +++ b/scripts/tsgen/src/publish.ts @@ -18,6 +18,10 @@ export function publish(data: any, opts: any) { fs.mkdirSync(opts.destination); } + var str = JSON.stringify(data().get(), null, 4); + + fs.writeFileSync(path.join(opts.destination, 'phaser.json'), str); + var out = new Parser(data().get()).emit(); fs.writeFileSync(path.join(opts.destination, 'phaser.d.ts'), out);