Skip to content

Commit

Permalink
Merge pull request #360 from sasjs/issue-359
Browse files Browse the repository at this point in the history
fix: specify @sasjs/utils/fs as external when creating bundle
allanbowe authored Nov 9, 2022
2 parents 506286a + 2d7dac3 commit 44e0bf3
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 ./",
7 changes: 3 additions & 4 deletions src/commands/sync-directories/syncDirectoriesCommand.ts
Original file line number Diff line number Diff line change
@@ -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 {
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 44e0bf3

Please sign in to comment.