conjure-js 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/bin/cli.ts +3 -2
- package/src/bin/version.ts +1 -1
- package/conjure +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conjure-js",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -11,10 +11,9 @@
|
|
|
11
11
|
"homepage": "https://github.com/RegiByte/conjure-js",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"bin": {
|
|
14
|
-
"conjure": "./conjure"
|
|
14
|
+
"conjure": "./dist/bin/conjure.mjs"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
|
-
"conjure",
|
|
18
17
|
"dist/**/*",
|
|
19
18
|
"src/**/*.ts",
|
|
20
19
|
"src/**/*.clj",
|
|
@@ -40,6 +39,7 @@
|
|
|
40
39
|
"run": "bun run src/bin/cli.ts run",
|
|
41
40
|
"nrepl": "bun run src/bin/cli.ts nrepl-server",
|
|
42
41
|
"build-cli": "node scripts/gen-version.mjs && bun build --compile src/bin/cli.ts --outfile conjure",
|
|
42
|
+
"build-npm-bin": "node scripts/gen-version.mjs && node scripts/build-npm-bin.mjs",
|
|
43
43
|
"typecheck": "tsc --noEmit",
|
|
44
44
|
"preview": "vite preview",
|
|
45
45
|
"test": "vitest",
|
package/src/bin/cli.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { existsSync, readFileSync, writeFileSync } from 'node:fs'
|
|
1
|
+
import { existsSync, readFileSync, realpathSync, writeFileSync } from 'node:fs'
|
|
2
2
|
import { dirname, resolve } from 'node:path'
|
|
3
3
|
import { createInterface } from 'node:readline/promises'
|
|
4
4
|
import { stdin as input, stdout as output } from 'node:process'
|
|
@@ -244,7 +244,8 @@ export async function runCli(
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
const entryPath = fileURLToPath(import.meta.url)
|
|
247
|
-
|
|
247
|
+
const invokedPath = process.argv[1] ? realpathSync(resolve(process.argv[1])) : ''
|
|
248
|
+
if (invokedPath === entryPath) {
|
|
248
249
|
const exitCode = await runCli(process.argv.slice(2))
|
|
249
250
|
process.exitCode = exitCode
|
|
250
251
|
}
|
package/src/bin/version.ts
CHANGED
package/conjure
DELETED
|
Binary file
|