Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit a95c705

Browse files
committed
🐛 fix(cli): command renamed to shorter version
CLI renamed to shorter version, updated release package BREAKING CHANGE: renamed cli command
1 parent 704fe02 commit a95c705

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ This library uses Cloudfront, S3, ApiGateway and Lambdas to deploy easily in sec
1010
## TL;DR
1111
- In your NextJS project, set output to standalone.
1212
- Run `next build` (will generate standalone next folder).
13-
- Run `npx --package @sladg/nextjs-lambda next-utils pack` (will create ZIPs).
14-
- Run `npx --package @sladg/nextjs-lambda next-utils deploy` (will deploy to AWS).
13+
- Run `npx --package @sladg/nextjs-lambda utils pack` (will create ZIPs).
14+
- Run `npx --package @sladg/nextjs-lambda utils deploy` (will deploy to AWS).
1515
- Profit 🎉
1616

1717
```
@@ -86,7 +86,7 @@ Frontend environment variables are automatically resolved during build time! You
8686
### Via CDK
8787

8888
See `NextStandaloneStack` construct in `lib/cdk-app.ts`.
89-
Or just use `next-utils deploy` command so you don't have to manage CDK yourself. See CLI help command for all congiruation, notably, it's possible to set Timeout and Memory for lambda from CLI. It is advised to always use custom `--stackName` in `deploy` command as it will affect names of all resources and will help you distinguish between different environments/applications.
89+
Or just use `utils deploy` command so you don't have to manage CDK yourself. See CLI help command for all congiruation, notably, it's possible to set Timeout and Memory for lambda from CLI. It is advised to always use custom `--stackName` in `deploy` command as it will affect names of all resources and will help you distinguish between different environments/applications.
9090

9191
## Packaging
9292

Diff for: lib/cli.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import { Command } from 'commander'
24
import path from 'path'
35
import packageJson from '../package.json'

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"exports": "./dist/lib/index.js",
1212
"types": "./dist/lib/index.d.ts",
1313
"bin": {
14-
"next-utils": "./dist/cli.js"
14+
"utils": "./dist/cli.js"
1515
},
1616
"files": [
1717
"dist"
@@ -24,7 +24,7 @@
2424
"build:main": "tsup lib/index.ts --dts lib/index.ts",
2525
"build:handler": "tsup lib/server-handler/index.ts --out-dir dist/server-handler && bestzip dist/server-handler.zip dist/server-handler && rm -r dist/server-handler",
2626
"commit": "npx --package cz-emoji-conventional --package commitizen -- cz",
27-
"release": "npx --package @sladg/release-utils run shipit --gitUser @sladg --gitEmail [email protected] --changelog"
27+
"release": "npx --package @sladg/release-utils utils shipit --gitUser @sladg --gitEmail [email protected] --changelog"
2828
},
2929
"dependencies": {
3030
"@sladg/imaginex-lambda": "^0.2.4",

0 commit comments

Comments
 (0)