Skip to content

Commit 06ee43a

Browse files
update index.ts
1 parent 811acf9 commit 06ee43a

File tree

5 files changed

+30
-12
lines changed

5 files changed

+30
-12
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,20 @@ Step 2-A. Publishes a package to the `npm` registry.
2929
$ yarn publish
3030
```
3131
> Publishes the package defined by the `package.json` in the current directory.
32-
32+
>
33+
> `yarn publish` causes ERROR "*.tgz: Invalid tar header." when run `yarn install`.
34+
> Instead, use `npm publish`:
35+
> ```bash
36+
> $ npm adduser
37+
> Username: <login_id of www.npmjs.com>
38+
> Password:
39+
> Email:
40+
> // To confirm if logged in:
41+
> $ npm whoami
42+
>
43+
> $ npm version patch
44+
> $ npm publish
45+
> ```
3346
3447
Step 2-B. Publishes a package to the `github` repository.
3548

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"name": "typescript-mean-models",
33
"version": "0.0.6",
44
"description": "The models of the Typescript MEAN Stack Boilerplate",
5-
"main": "dist/api.js",
5+
"main": "dist/index.js",
6+
"typings": "dist/index",
67
"files": [
7-
"dist/",
8-
"src/index.d.ts",
9-
"LICENSE"
8+
"dist/"
109
],
1110
"scripts": {
1211
"lint": "tslint \"src/**/*.ts\"",

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './app-properties.model'
2+
export * from './key.model'
3+
export * from './user.model'

src/item.model.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export interface Item {
2-
id: string;
3-
title: string;
4-
}
2+
id: string
3+
title: string
4+
}

tsconfig.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@
66
"types": ["reflect-metadata", "node"],
77
"typeRoots": ["node_modules/@types"],
88
"module": "commonjs",
9+
"declaration": true,
910
"experimentalDecorators": true,
1011
"emitDecoratorMetadata": true,
11-
"declaration": true,
12-
"noImplicitAny": true,
12+
"noImplicitAny": false,
1313
"strictNullChecks": true,
1414
"removeComments": true,
15-
"noUnusedLocals": true,
15+
"noUnusedLocals": false,
1616
"noUnusedParameters": true,
1717
"moduleResolution": "node",
1818
"sourceMap": true,
1919
"inlineSources": true
2020
},
21-
"include": [
21+
"files": [
22+
"src/index.d.ts"
23+
],
24+
"include": [
2225
"src/**/*",
2326
"typings/**/*"
2427
],

0 commit comments

Comments
 (0)