diff --git a/package-lock.json b/package-lock.json index 9ddb9f4..65ae5a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "hasInstallScript": true, "dependencies": { "@sasjs/adapter": "4.0.1", - "@sasjs/lint": "^1.14.1", + "@sasjs/lint": "1.14.1", "@sasjs/utils": "2.49.3", "axios": "0.26.1", "dotenv": "16.0.3", diff --git a/package.json b/package.json index c11158d..a2509b6 100644 --- a/package.json +++ b/package.json @@ -195,7 +195,7 @@ ], "scripts": { "vscode:prepublish": "npm run esbuild-base -- --minify", - "esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node", + "esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --external:@sasjs/utils/fs --format=cjs --platform=node", "esbuild": "npm run esbuild-base -- --sourcemap", "esbuild-watch": "npm run esbuild-base -- --sourcemap --watch", "compile": "tsc -p ./", diff --git a/src/commands/sync-directories/syncDirectoriesCommand.ts b/src/commands/sync-directories/syncDirectoriesCommand.ts index 068a995..f4666fe 100644 --- a/src/commands/sync-directories/syncDirectoriesCommand.ts +++ b/src/commands/sync-directories/syncDirectoriesCommand.ts @@ -11,15 +11,14 @@ import { createFile } from '../../utils/file' import { selectTarget } from '../../utils/target' import { executeCode } from './internal/executeCode' import { extractHashArray } from './internal/extractHashArray' - +import { getRelativePath } from '@sasjs/utils/file' import { compareHashes, findResourcesNotPresentLocally, getHash, generateProgramToGetRemoteHash, - generateProgramToSyncHashDiff, - getRelativePath -} from '@sasjs/utils' + generateProgramToSyncHashDiff +} from '@sasjs/utils/fs' import { getTimestamp } from '../../utils/utils' export class SyncDirectoriesCommand { diff --git a/src/utils/config.ts b/src/utils/config.ts index 165ed6d..416f5ee 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -3,7 +3,7 @@ import * as os from 'os' import { OutputChannel, window, workspace } from 'vscode' import { decodeFromBase64, fileExists } from '@sasjs/utils' import { Target, AuthConfig, ServerType, AuthConfigSas9 } from '@sasjs/utils' -import dotenv from 'dotenv' +import * as dotenv from 'dotenv' import { createFile, readFile } from './file' import { getChoiceInput } from './input' import { authenticateTarget } from './auth'