mirror of
https://github.com/morten-olsen/with-ssm.git
synced 2026-02-08 00:46:23 +01:00
feat: use bundled version
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
PASSWORD=SSM:/test/hfd/rds/DB_USER
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
import '../dist/start.js';
|
import '../dist/index.js';
|
||||||
|
|||||||
15
package.json
15
package.json
@@ -6,8 +6,8 @@
|
|||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test:lint": "eslint",
|
"test:lint": "eslint",
|
||||||
"build": "tsc --build",
|
"build": "ncc build src/start.ts -o dist",
|
||||||
"build:dev": "tsc --build --watch",
|
"build:dev": "ncc build src/start.ts -o dist --watch",
|
||||||
"test:unit": "vitest --run --passWithNoTests",
|
"test:unit": "vitest --run --passWithNoTests",
|
||||||
"test": "pnpm run \"/^test:/\""
|
"test": "pnpm run \"/^test:/\""
|
||||||
},
|
},
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
"@pnpm/find-workspace-packages": "6.0.9",
|
"@pnpm/find-workspace-packages": "6.0.9",
|
||||||
"@types/node": "24.2.0",
|
"@types/node": "24.2.0",
|
||||||
"@types/yargs": "^17.0.33",
|
"@types/yargs": "^17.0.33",
|
||||||
|
"@vercel/ncc": "^0.38.3",
|
||||||
"@vitest/coverage-v8": "3.2.4",
|
"@vitest/coverage-v8": "3.2.4",
|
||||||
"eslint": "9.32.0",
|
"eslint": "9.32.0",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
@@ -29,14 +30,12 @@
|
|||||||
"prettier": "3.6.2",
|
"prettier": "3.6.2",
|
||||||
"typescript": "5.9.2",
|
"typescript": "5.9.2",
|
||||||
"typescript-eslint": "8.39.0",
|
"typescript-eslint": "8.39.0",
|
||||||
"vitest": "3.2.4"
|
"vitest": "3.2.4",
|
||||||
},
|
|
||||||
"name": "@morten-olsen/with-ssm",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"dependencies": {
|
|
||||||
"@aws-sdk/client-ssm": "^3.859.0",
|
"@aws-sdk/client-ssm": "^3.859.0",
|
||||||
"dotenv": "^17.2.1",
|
"dotenv": "^17.2.1",
|
||||||
"execa": "^9.6.0",
|
"execa": "^9.6.0",
|
||||||
"yargs": "^18.0.0"
|
"yargs": "^18.0.0"
|
||||||
}
|
},
|
||||||
|
"name": "@morten-olsen/with-ssm",
|
||||||
|
"version": "1.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
9
pnpm-lock.yaml
generated
9
pnpm-lock.yaml
generated
@@ -36,6 +36,9 @@ importers:
|
|||||||
'@types/yargs':
|
'@types/yargs':
|
||||||
specifier: ^17.0.33
|
specifier: ^17.0.33
|
||||||
version: 17.0.33
|
version: 17.0.33
|
||||||
|
'@vercel/ncc':
|
||||||
|
specifier: ^0.38.3
|
||||||
|
version: 0.38.3
|
||||||
'@vitest/coverage-v8':
|
'@vitest/coverage-v8':
|
||||||
specifier: 3.2.4
|
specifier: 3.2.4
|
||||||
version: 3.2.4(vitest@3.2.4(@types/node@24.2.0))
|
version: 3.2.4(vitest@3.2.4(@types/node@24.2.0))
|
||||||
@@ -975,6 +978,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-ldgiJ+VAhQCfIjeOgu8Kj5nSxds0ktPOSO9p4+0VDH2R2pLvQraaM5Oen2d7NxzMCm+Sn/vJT+mv2H5u6b/3fA==}
|
resolution: {integrity: sha512-ldgiJ+VAhQCfIjeOgu8Kj5nSxds0ktPOSO9p4+0VDH2R2pLvQraaM5Oen2d7NxzMCm+Sn/vJT+mv2H5u6b/3fA==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
||||||
|
'@vercel/ncc@0.38.3':
|
||||||
|
resolution: {integrity: sha512-rnK6hJBS6mwc+Bkab+PGPs9OiS0i/3kdTO+CkI8V0/VrW3vmz7O2Pxjw/owOlmo6PKEIxRSeZKv/kuL9itnpYA==}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
'@vitest/coverage-v8@3.2.4':
|
'@vitest/coverage-v8@3.2.4':
|
||||||
resolution: {integrity: sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ==}
|
resolution: {integrity: sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -3916,6 +3923,8 @@ snapshots:
|
|||||||
'@typescript-eslint/types': 8.39.0
|
'@typescript-eslint/types': 8.39.0
|
||||||
eslint-visitor-keys: 4.2.1
|
eslint-visitor-keys: 4.2.1
|
||||||
|
|
||||||
|
'@vercel/ncc@0.38.3': {}
|
||||||
|
|
||||||
'@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/node@24.2.0))':
|
'@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/node@24.2.0))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@ampproject/remapping': 2.3.0
|
'@ampproject/remapping': 2.3.0
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { exec } from './utils/exec.js';
|
|||||||
import { getEnv } from './utils/env.js';
|
import { getEnv } from './utils/env.js';
|
||||||
import { replaceParams } from './utils/ssm.js';
|
import { replaceParams } from './utils/ssm.js';
|
||||||
|
|
||||||
|
const main = async () => {
|
||||||
const argv = await yargs(hideBin(process.argv))
|
const argv = await yargs(hideBin(process.argv))
|
||||||
.usage('Usage: $0 [options] -- <command>')
|
.usage('Usage: $0 [options] -- <command>')
|
||||||
.option('region', {
|
.option('region', {
|
||||||
@@ -43,3 +44,9 @@ exec({
|
|||||||
env,
|
env,
|
||||||
args: commandArgs,
|
args: commandArgs,
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
main().catch((err) => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
"noEmit": true,
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user