@ossy/deployment-tools 0.0.36 → 0.0.37

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 CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@ossy/deployment-tools",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "Collection of scripts and tools to aid deployment of containers and static files",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "build": "npx --yes @vercel/ncc build src/index.ts --source-map --out dist --license licenses.txt",
10
- "build:esbuild": "npx --yes esbuild src/index.ts --platform=node --bundle --outfile=dist/index.js"
9
+ "build": "npm run build:public-exports && npm run build:cli",
10
+ "build:public-exports": "npx --yes @vercel/ncc build src/index.ts --source-map --out dist --license licenses.txt --minify",
11
+ "build:cli": "npx --yes @vercel/ncc build src/index.cli.ts --source-map --out bin --license licenses.txt --minify"
11
12
  },
12
13
  "author": "Ossy",
13
14
  "license": "ISC",
14
- "bin": "dist/index.js",
15
+ "bin": "bin/index.js",
15
16
  "dependencies": {
16
17
  "@actions/core": "^1.10.0",
17
18
  "@aws-sdk/client-sqs": "^3.186.0",
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { runCliCommand } from './cli-commands/index'
3
+
4
+ //eslint-disable-next-line no-unused-vars
5
+ const [_, __, command, ...restArgs] = process.argv
6
+
7
+ runCliCommand({ name: command, args: restArgs })
package/src/index.ts CHANGED
@@ -1,7 +1,2 @@
1
- #!/usr/bin/env node
2
- import { runCliCommand } from './cli-commands/index'
3
-
4
- //eslint-disable-next-line no-unused-vars
5
- const [_, __, command, ...restArgs] = process.argv
6
-
7
- runCliCommand({ name: command, args: restArgs })
1
+ export { DeploymentPlatformClient } from 'deployment-platform-client'
2
+ export * from 'types'