Skip to content

Commit 4b574d9

Browse files
committed
feat(make): add typescript support
1 parent 53505b9 commit 4b574d9

6 files changed

Lines changed: 26 additions & 5 deletions

File tree

packages/make/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js

packages/make/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tsconfig.json
2+
*.ts
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
"use strict";
2-
31
/**
42
* Is called and returns a scaffolding instance, adding properties
53
*
64
* @returns {Function} TBD
75
*
86
*/
97

10-
module.exports = function make() {
8+
export default function make() {
119
return console.log("make me");
12-
};
10+
}

packages/make/package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/make/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@
88
"publishConfig": {
99
"access": "public"
1010
},
11-
"license": "MIT"
11+
"license": "MIT",
12+
"devDependencies": {
13+
"typescript": "^2.9.2"
14+
},
15+
"scripts": {
16+
"build": "tsc"
17+
}
1218
}

packages/make/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../tsconfig.json"
3+
}

0 commit comments

Comments
 (0)