@napi-rs/cli 3.0.0-alpha.0 → 3.0.0-alpha.1
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/cli.mjs +6 -3
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +1 -0
- package/package.json +2 -2
- package/src/cli.ts +2 -0
package/cli.mjs
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
import { execSync } from 'child_process'
|
|
2
4
|
import { resolve } from 'path'
|
|
3
5
|
import { fileURLToPath } from 'url'
|
|
4
6
|
|
|
5
7
|
execSync(
|
|
6
|
-
`node --loader ts-node/esm/transpile-only ${resolve(
|
|
7
|
-
.
|
|
8
|
-
.
|
|
8
|
+
`node --loader ts-node/esm/transpile-only ${resolve(
|
|
9
|
+
fileURLToPath(import.meta.url),
|
|
10
|
+
'../src/cli.ts',
|
|
11
|
+
)} ${process.argv.slice(2).join(' ')}`,
|
|
9
12
|
{
|
|
10
13
|
stdio: 'inherit',
|
|
11
14
|
},
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@napi-rs/cli",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.1",
|
|
4
4
|
"description": "Cli tools for napi-rs",
|
|
5
5
|
"author": "LongYinan <lynweklm@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/napi-rs/napi-rs",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"build:cjs": "node ./esbuild.mjs",
|
|
97
97
|
"test": "ava"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "5daf558ead65b27ffd6b1da318ba91467d7445c3"
|
|
100
100
|
}
|