Skip to content

Commit

Permalink
moving lib to src for core-arm (#7506)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarishmaGhiya authored Feb 22, 2020
1 parent 8bba837 commit 1ad2e0d
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
26 changes: 13 additions & 13 deletions sdk/core/core-arm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
"clientruntime"
],
"main": "./dist/coreArm.js",
"module": "./es/lib/coreArm.js",
"types": "./es/lib/coreArm.d.ts",
"module": "./es/src/coreArm.js",
"types": "./es/src/coreArm.d.ts",
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"es/lib/**/*.js",
"es/lib/**/*.js.map",
"es/lib/**/*.d.ts",
"es/lib/**/*.d.ts.map",
"lib/**/*.ts",
"es/src/**/*.js",
"es/src/**/*.js.map",
"es/src/**/*.d.ts",
"es/src/**/*.d.ts.map",
"src/**/*.ts",
"LICENSE",
"README.md"
],
Expand Down Expand Up @@ -67,8 +67,8 @@
},
"scripts": {
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
"build": "run-p build:lib",
"build:lib": "run-s build:tsc build:rollup build:minify",
"build": "run-p build:src",
"build:src": "run-s build:tsc build:rollup build:minify",
"build:tsc": "tsc -p tsconfig.es.json",
"build:rollup": "rollup -c rollup.config.js 2>&1",
"build:minify": "uglifyjs -c -m --comments --source-map \"content='./dist/coreArm.js.map'\" -o ./dist/coreArm.min.js ./dist/coreArm.js",
Expand All @@ -78,9 +78,9 @@
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint -c ../../.eslintrc.old.json lib test samples --ext .ts --fix --fix-type [problem,suggestion]",
"lint": "eslint -c ../../.eslintrc.old.json lib test samples --ext .ts -f html -o core-arm-lintReport.html || exit 0",
"lint:terminal": "eslint -c ../../.eslintrc.old.json lib test samples --ext .ts",
"lint:fix": "eslint -c ../../.eslintrc.old.json src test samples --ext .ts --fix --fix-type [problem,suggestion]",
"lint": "eslint -c ../../.eslintrc.old.json src test samples --ext .ts -f html -o core-arm-lintReport.html || exit 0",
"lint:terminal": "eslint -c ../../.eslintrc.old.json src test samples --ext .ts",
"test:browser": "npm run build && npm run unit-test:browser && npm run integration-test:browser",
"test:node": "npm run build && npm run unit-test:node && npm run integration-test:node",
"test": "npm run build && npm run unit-test && npm run integration-test",
Expand All @@ -94,7 +94,7 @@
"//metadata": {
"constantPaths": [
{
"path": "lib/util/constants.ts",
"path": "src/util/constants.ts",
"prefix": "coreArmVersion"
}
]
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-arm/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const banner = `/** @license @azure/core-arm
* @type {import('rollup').RollupFileOptions}
*/
const config = {
input: './es/lib/coreArm.js',
input: './es/src/coreArm.js',
external: ["@azure/core-http"],
output: {
file: "./dist/coreArm.js",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions sdk/core/core-arm/test/azureServiceClientTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

import assert from "assert";
import { HttpHeaders, HttpOperationResponse, RequestOptionsBase, RestError, WebResource, OperationArguments, OperationSpec, Serializer } from "@azure/core-http";
import { AzureServiceClient, AzureServiceClientOptions, updateOptionsWithDefaultValues } from "../lib/azureServiceClient";
import { AzureServiceClient, AzureServiceClientOptions, updateOptionsWithDefaultValues } from "../src/azureServiceClient";
import * as msAssert from "./msAssert";
import { LROPoller } from "../lib/lroPoller";
import { CloudErrorMapper } from "../lib/cloudError";
import { LROPoller } from "../src/lroPoller";
import { CloudErrorMapper } from "../src/cloudError";
import { TestTokenCredential } from "./testTokenCredential";

describe("AzureServiceClient", () => {
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-arm/test/cloudErrorTests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Serializer } from "@azure/core-http";
import { CloudErrorMapper, CloudError } from "../lib/cloudError";
import { CloudErrorMapper, CloudError } from "../src/cloudError";
import { expect } from "chai";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import assert from "assert";
import { WebResource } from "@azure/core-http";
import { CognitiveServicesCredentials } from "../../lib/credentials/cognitiveServicesCredentials";
import { CognitiveServicesCredentials } from "../../src/credentials/cognitiveServicesCredentials";
import * as msAssert from "../msAssert";

describe("CognitiveServicesCredentials", () => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/core/core-arm/test/lroPollStrategyTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import assert from "assert";
import { HttpHeaders, HttpOperationResponse, WebResource } from "@azure/core-http";
import { AzureServiceClient } from "../lib/azureServiceClient";
import { getDelayInSeconds, isFinished } from "../lib/lroPollStrategy";
import { AzureServiceClient } from "../src/azureServiceClient";
import { getDelayInSeconds, isFinished } from "../src/lroPollStrategy";
import { TestTokenCredential } from "./testTokenCredential";

describe("LROPollStrategy", function () {
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-arm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
},
"compileOnSave": true,
"exclude": ["node_modules"],
"include": ["./lib/**/*.ts", "./test/**/*.ts"]
"include": ["./src/**/*.ts", "./test/**/*.ts"]
}

0 comments on commit 1ad2e0d

Please sign in to comment.