Skip to content

Commit 81a4b14

Browse files
committed
use src and dist for git clarity
use full name for init command
1 parent 2ce5e01 commit 81a4b14

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
index.ts
1+
src

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# create-mc
1+
# create-managed-component
22

33
An easy way to create a Managed Component
44

55
## Usage
66

77
```sh
8-
npm init mc
8+
npm init managed-component
99
```

index.ts renamed to src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ import prompts from 'prompts'
9595
chalk.green(JSON.stringify(result, null, 2))
9696
)
9797

98+
// Copy template files
9899
const templateDir = './template'
99100
const files = fs.readdirSync(templateDir)
100101
if (!fs.existsSync(result.namespace as string)) {

tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"lib": [],
99
"types": ["node"],
1010
"allowSyntheticDefaultImports": true,
11-
"esModuleInterop": true
11+
"esModuleInterop": true,
12+
"outDir": "./dist"
1213
},
14+
"include": ["src/**/*"],
1315
"exclude": ["./template/**/*"]
1416
}

0 commit comments

Comments
 (0)