Skip to content

Commit

Permalink
fix: change index.d.ts files to point to dist8
Browse files Browse the repository at this point in the history
  • Loading branch information
shimks authored and raymondfeng committed May 14, 2018
1 parent bb1c62f commit 42ca42d
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion examples/hello-world/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion examples/log-extension/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion examples/rpc-server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion examples/todo/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/authentication/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/boot/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/context/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/metadata/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/openapi-spec-builder/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/openapi-v3-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/openapi-v3/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/repository-json-schema/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/repository/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/rest/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/service-proxy/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';
2 changes: 1 addition & 1 deletion packages/service-proxy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

module.exports = require('./dist');
module.exports = require('@loopback/dist-util').loadDist(__dirname);
12 changes: 8 additions & 4 deletions packages/service-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
"main": "index",
"scripts": {
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
"build": "lb-tsc es2017",
"build": "npm run build:dist8 && npm run build:dist10",
"build:apidocs": "lb-apidocs",
"clean": "lb-clean loopback-service-proxy*.tgz dist package api-docs",
"build:current": "lb-tsc",
"build:dist8": "lb-tsc es2017",
"build:dist10": "lb-tsc es2018",
"clean": "lb-clean loopback-service-proxy*.tgz dist* package api-docs",
"integration": "lb-mocha \"DIST/test/integration/**/*.js\"",
"pretest": "npm run build",
"pretest": "npm run build:current",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\" \"DIST/test/integration/**/*.js\"",
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
"verify": "npm pack && tar xf loopback-service-proxy*.tgz && tree package && npm run clean"
Expand All @@ -36,7 +39,8 @@
"README.md",
"index.js",
"index.d.ts",
"dist/src",
"dist*/src",
"dist*/index*",
"src"
],
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/testlab/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
export * from './dist8';

0 comments on commit 42ca42d

Please sign in to comment.