Skip to content

Commit cce0196

Browse files
committed
Fix some issues in builder
1 parent 25ac301 commit cce0196

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

scripts/builder.js

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const transform = babel.transform(fs.readFileSync("./src/index.js"), {
4242
fs.writeFile("./nativescript-theme-core/index.js", transform.code, {}, () => {});
4343

4444
// Copy typings
45-
copyFile("./index.d.ts", "./nativescript-theme-core/index.d.ts");
45+
copyFile("./src/index.d.ts", "./nativescript-theme-core/index.d.ts");
4646

4747
// Copy our Readme
4848
copyFile("./README.md", "./nativescript-theme-core/README.md");
@@ -56,14 +56,24 @@ console.log("Change to the 'nativescript-theme-core' folder and you can now do y
5656
* Create package.json from the original one
5757
*/
5858
function createPackageJson() {
59-
const outputPackageJson = (({ name, version, description, author, homepage, license, repository }) =>
59+
const outputPackageJson = (({ name,
60+
version,
61+
description,
62+
main,
63+
typings,
64+
author,
65+
homepage,
66+
license,
67+
repository }) =>
6068
({ name,
61-
version,
62-
description,
63-
author,
64-
homepage,
65-
license,
66-
repository }))(pjs);
69+
version,
70+
description,
71+
main,
72+
typings,
73+
author,
74+
homepage,
75+
license,
76+
repository }))(pjs);
6777

6878
outputPackageJson.nativescript = {
6979
platforms: {

0 commit comments

Comments
 (0)