Skip to content

Commit

Permalink
fix: asjust root
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Mar 1, 2024
1 parent 536610f commit 84ac819
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
node_modules
oclif.lock
oclif.manifest.json
/bin/run.mjs
2 changes: 1 addition & 1 deletion bin/cjs-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import url from 'node:url';

globalThis.require = createRequire(import.meta.url);
globalThis.__filename = url.fileURLToPath(import.meta.url);
globalThis.__dirname = path.dirname(__filename);
globalThis.__dirname = path.dirname(url.fileURLToPath(import.meta.url));
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bundle": "./bin/run.mjs"
},
"dependencies": {
"@oclif/core": "3.20.1-dev.0",
"@oclif/core": "3.20.1-dev.1",
"@oclif/plugin-test-esm-1": "^0.7.1"
},
"devDependencies": {
Expand All @@ -33,7 +33,7 @@
"typescript": "^5"
},
"resolutions": {
"@oclif/core": "3.20.1-dev.0"
"@oclif/core": "3.20.1-dev.1"
},
"engines": {
"node": ">=18.0.0"
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {Command, Interfaces, execute} from '@oclif/core'
import * as PluginTestEsm1 from '@oclif/plugin-test-esm-1'
import {dirname} from 'node:path'
import {fileURLToPath} from 'node:url'

import pjson from '../package.json' assert {type: 'json'}
import ESBuild from './commands/esbuild.js'
Expand All @@ -19,10 +21,9 @@ export const COMMANDS: Record<string, Command.Class> = {

export async function run() {
await execute({
dir: '.',
loadOptions: {
pjson: pjson as unknown as Interfaces.PJSON.Plugin,
root: '.'
root: dirname(fileURLToPath(import.meta.url)),
},
})
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1603,10 +1603,10 @@
node-gyp "^10.0.0"
which "^4.0.0"

"@oclif/[email protected].0", "@oclif/core@^3", "@oclif/core@^3.10.2", "@oclif/core@^3.18.2", "@oclif/core@^3.19.2", "@oclif/core@dev":
version "3.20.1-dev.0"
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-3.20.1-dev.0.tgz#3badb7be5d9a36510fff98a06afd4c8c655f86c0"
integrity sha512-00q7RlnIdQIT7W35/KtLMteJ8iEO+zGePXgvW/hnhq2Y4mS/5cv2ZwtkkLFcDS4KDCd+UDObOFwgDscywCU/1g==
"@oclif/[email protected].1", "@oclif/core@^3", "@oclif/core@^3.10.2", "@oclif/core@^3.18.2", "@oclif/core@^3.19.2", "@oclif/core@dev":
version "3.20.1-dev.1"
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-3.20.1-dev.1.tgz#e4b1a5f84a510c5858ca8145284a1b06d5ac66d9"
integrity sha512-B7G/QnzkJeGI2ef7PJ/k9PLhP0SdkXeXPnMbNzGv84L4ZfKzetpsrxRoxJB45+zjQObYz/AV1Yhs8Bux6TEQjQ==
dependencies:
"@types/cli-progress" "^3.11.5"
ansi-escapes "^4.3.2"
Expand Down

0 comments on commit 84ac819

Please sign in to comment.