[typescript-angular2] npm publish missing files (#3791)

* [typescript-angular2] npm publish missing files

* [typescript-angular2] build to dist folder
This commit is contained in:
Anton Savchenko 2016-09-18 22:41:29 -04:00 committed by wing328
parent 1e4f30eb16
commit 945c9a1406
4 changed files with 12 additions and 15 deletions

View File

@ -7,13 +7,10 @@
"swagger-client"
],
"license": "Apache-2.0",
"files": [
"lib"
],
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "typings install && tsc",
"build": "typings install && tsc --outDir dist/",
"postinstall": "npm run build"
},
"peerDependencies": {

View File

@ -1,4 +1,4 @@
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201609121640
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201609141041
### Building
@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's.
_published:_
```
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201609121640 --save
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201609141041 --save
```
_unPublished (not recommended):_

View File

@ -1,19 +1,16 @@
{
"name": "@swagger/angular2-typescript-petstore",
"version": "0.0.1-SNAPSHOT.201609121640",
"version": "0.0.1-SNAPSHOT.201609141041",
"description": "swagger client for @swagger/angular2-typescript-petstore",
"author": "Swagger Codegen Contributors",
"keywords": [
"swagger-client"
],
"license": "Apache-2.0",
"files": [
"lib"
],
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "typings install && tsc",
"build": "typings install && tsc --outDir dist/",
"postinstall": "npm run build"
},
"peerDependencies": {

View File

@ -0,0 +1,3 @@
import { OpaqueToken } from '@angular/core';
export const BASE_PATH = new OpaqueToken('basePath');