File tree 5 files changed +30
-12
lines changed
5 files changed +30
-12
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,20 @@ Step 2-A. Publishes a package to the `npm` registry.
29
29
$ yarn publish
30
30
```
31
31
> 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
+ > ` ` `
33
46
34
47
Step 2-B. Publishes a package to the ` github` repository.
35
48
Original file line number Diff line number Diff line change 2
2
"name" : " typescript-mean-models" ,
3
3
"version" : " 0.0.6" ,
4
4
"description" : " The models of the Typescript MEAN Stack Boilerplate" ,
5
- "main" : " dist/api.js" ,
5
+ "main" : " dist/index.js" ,
6
+ "typings" : " dist/index" ,
6
7
"files" : [
7
- " dist/" ,
8
- " src/index.d.ts" ,
9
- " LICENSE"
8
+ " dist/"
10
9
],
11
10
"scripts" : {
12
11
"lint" : " tslint \" src/**/*.ts\" " ,
Original file line number Diff line number Diff line change
1
+ export * from './app-properties.model'
2
+ export * from './key.model'
3
+ export * from './user.model'
Original file line number Diff line number Diff line change 1
1
export interface Item {
2
- id : string ;
3
- title : string ;
4
- }
2
+ id : string
3
+ title : string
4
+ }
Original file line number Diff line number Diff line change 6
6
"types" : [" reflect-metadata" , " node" ],
7
7
"typeRoots" : [" node_modules/@types" ],
8
8
"module" : " commonjs" ,
9
+ "declaration" : true ,
9
10
"experimentalDecorators" : true ,
10
11
"emitDecoratorMetadata" : true ,
11
- "declaration" : true ,
12
- "noImplicitAny" : true ,
12
+ "noImplicitAny" : false ,
13
13
"strictNullChecks" : true ,
14
14
"removeComments" : true ,
15
- "noUnusedLocals" : true ,
15
+ "noUnusedLocals" : false ,
16
16
"noUnusedParameters" : true ,
17
17
"moduleResolution" : " node" ,
18
18
"sourceMap" : true ,
19
19
"inlineSources" : true
20
20
},
21
- "include" : [
21
+ "files" : [
22
+ " src/index.d.ts"
23
+ ],
24
+ "include" : [
22
25
" src/**/*" ,
23
26
" typings/**/*"
24
27
],
You can’t perform that action at this time.
0 commit comments