Skip to content

Commit

Permalink
feat(make): add typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Jul 5, 2018
1 parent 53505b9 commit 4b574d9
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/make/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js
2 changes: 2 additions & 0 deletions packages/make/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tsconfig.json
*.ts
6 changes: 2 additions & 4 deletions packages/make/index.js → packages/make/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
"use strict";

/**
* Is called and returns a scaffolding instance, adding properties
*
* @returns {Function} TBD
*
*/

module.exports = function make() {
export default function make() {
return console.log("make me");
};
}
11 changes: 11 additions & 0 deletions packages/make/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion packages/make/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
"publishConfig": {
"access": "public"
},
"license": "MIT"
"license": "MIT",
"devDependencies": {
"typescript": "^2.9.2"
},
"scripts": {
"build": "tsc"
}
}
3 changes: 3 additions & 0 deletions packages/make/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../tsconfig.json"
}

0 comments on commit 4b574d9

Please sign in to comment.