Skip to content

Commit

Permalink
chore: rename datasource.json files to avoid conflicts with datasourc…
Browse files Browse the repository at this point in the history
…e.ts files

See microsoft/TypeScript#34761

Signed-off-by: Raymond Feng <[email protected]>
  • Loading branch information
raymondfeng committed Nov 8, 2019
1 parent 8d5326f commit fb51273
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {ShoppingCart, ShoppingCartItem} from '../../models';
import {expect} from '@loopback/testlab';
import {RedisDataSource} from '../../datasources';

const config = require('../../datasources/redis.datasource.json');
const config = require('../../datasources/redis.datasource.config.json');

describe('ShoppingCart KeyValue Repository', () => {
let repo: ShoppingCartRepository;
Expand Down
2 changes: 1 addition & 1 deletion packages/shopping/src/datasources/mongo.datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import {inject, lifeCycleObserver, ValueOrPromise} from '@loopback/core';
import {juggler, AnyObject} from '@loopback/repository';
const config = require('./mongo.datasource.json');
const config = require('./mongo.datasource.config.json');

function updateConfig(dsConfig: AnyObject) {
if (process.env.KUBERNETES_SERVICE_HOST) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {inject} from '@loopback/core';
import {juggler, AnyObject} from '@loopback/repository';
import * as path from 'path';

const config = require('./recommender-grpc.datasource.json');
const config = require('./recommender-grpc.datasource.config.json');

function updateConfig(dsConfig: AnyObject) {
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import {inject} from '@loopback/core';
import {juggler, AnyObject} from '@loopback/repository';
const config = require('./recommender.datasource.json');
const config = require('./recommender.datasource.config.json');

function updateConfig(dsConfig: AnyObject) {
if (process.env.KUBERNETES_SERVICE_HOST) {
Expand Down
2 changes: 1 addition & 1 deletion packages/shopping/src/datasources/redis.datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import {inject, lifeCycleObserver, ValueOrPromise} from '@loopback/core';
import {juggler, AnyObject} from '@loopback/repository';
const config = require('./redis.datasource.json');
const config = require('./redis.datasource.config.json');

function updateConfig(dsConfig: AnyObject) {
if (process.env.KUBERNETES_SERVICE_HOST) {
Expand Down

0 comments on commit fb51273

Please sign in to comment.