layerbase 0.1.1 → 0.1.3
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/bin/layerbase.mjs +10 -0
- package/package.json +3 -2
- package/tsconfig.json +17 -0
package/bin/layerbase.mjs
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// No build step: tsx transpiles the TypeScript/JSX entry at runtime.
|
|
3
|
+
// Point tsx at our shipped tsconfig so it uses the automatic JSX runtime even
|
|
4
|
+
// when installed under node_modules (tsx ignores a tsconfig it finds inside
|
|
5
|
+
// node_modules during its normal walk-up, which otherwise defaults JSX to the
|
|
6
|
+
// classic runtime and crashes with "React is not defined").
|
|
7
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
8
|
+
import process from 'node:process'
|
|
3
9
|
import { tsImport } from 'tsx/esm/api'
|
|
4
10
|
|
|
11
|
+
process.env.TSX_TSCONFIG_PATH = fileURLToPath(
|
|
12
|
+
new URL('../tsconfig.json', import.meta.url),
|
|
13
|
+
)
|
|
14
|
+
|
|
5
15
|
await tsImport('../src/cli.tsx', import.meta.url)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layerbase",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Layerbase cloud CLI: connect to your managed databases without leaking the connection string into shell history.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"bin",
|
|
12
|
-
"src"
|
|
12
|
+
"src",
|
|
13
|
+
"tsconfig.json"
|
|
13
14
|
],
|
|
14
15
|
"engines": {
|
|
15
16
|
"node": ">=20"
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Bundler",
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"lib": ["ES2023"],
|
|
8
|
+
"strict": true,
|
|
9
|
+
"noUncheckedIndexedAccess": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"verbatimModuleSyntax": true,
|
|
14
|
+
"types": ["node", "react"]
|
|
15
|
+
},
|
|
16
|
+
"include": ["src", "bin"]
|
|
17
|
+
}
|