diff --git a/packages/make/.gitignore b/packages/make/.gitignore new file mode 100644 index 00000000000..a6c7c2852d0 --- /dev/null +++ b/packages/make/.gitignore @@ -0,0 +1 @@ +*.js diff --git a/packages/make/.npmignore b/packages/make/.npmignore new file mode 100644 index 00000000000..a527d071cf9 --- /dev/null +++ b/packages/make/.npmignore @@ -0,0 +1,2 @@ +tsconfig.json +*.ts diff --git a/packages/make/index.js b/packages/make/index.ts similarity index 72% rename from packages/make/index.js rename to packages/make/index.ts index 639130d3322..9f86e798d4d 100644 --- a/packages/make/index.js +++ b/packages/make/index.ts @@ -1,5 +1,3 @@ -"use strict"; - /** * Is called and returns a scaffolding instance, adding properties * @@ -7,6 +5,6 @@ * */ -module.exports = function make() { +export default function make() { return console.log("make me"); -}; +} diff --git a/packages/make/package-lock.json b/packages/make/package-lock.json new file mode 100644 index 00000000000..2d4b222f44c --- /dev/null +++ b/packages/make/package-lock.json @@ -0,0 +1,11 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "typescript": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz", + "integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==" + } + } +} diff --git a/packages/make/package.json b/packages/make/package.json index 7ca06468a58..93e08de74aa 100644 --- a/packages/make/package.json +++ b/packages/make/package.json @@ -8,5 +8,11 @@ "publishConfig": { "access": "public" }, - "license": "MIT" + "license": "MIT", + "devDependencies": { + "typescript": "^2.9.2" + }, + "scripts": { + "build": "tsc" + } } diff --git a/packages/make/tsconfig.json b/packages/make/tsconfig.json new file mode 100644 index 00000000000..4082f16a5d9 --- /dev/null +++ b/packages/make/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../../tsconfig.json" +}