Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion packages/sst/build.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import esbuild from "esbuild";
import fs from "fs";
import path from "path";

const pkg = JSON.parse(fs.readFileSync("package.json"));

Expand Down Expand Up @@ -172,4 +173,27 @@ await Promise.all(
)
);

console.log("Built");
const distPkg = {
name: pkg.name,
version: pkg.version,
description: pkg.description,
license: pkg.license,
main: pkg.main || "dist/index.js",
bin: pkg.bin,
type: "module",
dependencies: pkg.dependencies,
peerDependencies: pkg.peerDependencies,
exports: pkg.exports,
repository: pkg.repository,
keywords: pkg.keywords,
author: pkg.author,
};

fs.writeFileSync(
path.resolve("dist/package.json"),
JSON.stringify(distPkg, null, 2) + "\n",
"utf-8"
);
console.log("→ dist/package.json written with version", pkg.version);

console.log("Built");
109 changes: 30 additions & 79 deletions packages/sst/dist/package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,18 @@
{
"name": "sst",
"version": "2.40.8",
"bin": {
"sst": "cli/sst.js"
},
"version": "2.48.5",
"description": "A CLI to help deploy SST apps.",
"type": "module",
"license": "MIT",
"scripts": {
"prepare": "",
"build": "node build.mjs && tsc",
"test": "vitest run",
"dev": "tsc -w"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sst/v2.git",
"directory": "packages/cli"
},
"exports": {
"./constructs/deprecated": "./constructs/deprecated/index.js",
"./constructs/future": "./constructs/future/index.js",
"./constructs": "./constructs/index.js",
"./context": "./context/index.js",
"./node/future/*": "./node/future/*/index.js",
"./node/*": "./node/*/index.js",
".": "./index.js",
"./*": "./*"
"main": "dist/index.js",
"bin": {
"sst": "dist/cli/sst.js"
},
"homepage": "https://sst.dev",
"type": "module",
"dependencies": {
"@aws-cdk/aws-lambda-python-alpha": "2.132.1-alpha.0",
"@aws-cdk/cloud-assembly-schema": "2.132.1",
"@aws-cdk/cloudformation-diff": "2.132.1",
"@aws-cdk/cx-api": "2.132.1",
"@aws-cdk/aws-lambda-python-alpha": "2.179.0-alpha.0",
"@aws-cdk/cloud-assembly-schema": "39.2.20",
"@aws-cdk/cloudformation-diff": "2.179.0",
"@aws-cdk/cx-api": "2.179.0",
"@aws-crypto/sha256-js": "^5.2.0",
"@aws-sdk/client-cloudformation": "^3.454.0",
"@aws-sdk/client-ecs": "^3.454.0",
Expand All @@ -57,92 +36,64 @@
"@babel/plugin-syntax-typescript": "^7.21.4",
"@smithy/signature-v4": "^2.0.16",
"@trpc/server": "9.16.0",
"adm-zip": "^0.5.10",
"aws-cdk-lib": "2.132.1",
"adm-zip": "0.5.14",
"aws-cdk-lib": "2.179.0",
"aws-iot-device-sdk": "^2.2.13",
"aws-sdk": "^2.1501.0",
"builtin-modules": "3.2.0",
"cdk-assets": "2.132.1",
"cdk-assets": "3.0.0-rc.143",
"chalk": "^5.2.0",
"chokidar": "^3.5.3",
"ci-info": "^3.7.0",
"colorette": "^2.0.19",
"colorette": "^2.0.20",
"conf": "^10.2.0",
"constructs": "10.3.0",
"cross-spawn": "^7.0.3",
"dendriform-immer-patch-optimiser": "^2.1.0",
"dotenv": "^16.0.3",
"esbuild": "0.18.13",
"express": "^4.18.2",
"fast-jwt": "^3.1.1",
"fast-jwt": "^3.3.3",
"get-port": "^6.1.2",
"glob": "^10.0.0",
"graphql": "*",
"graphql-yoga": "^3.9.0",
"immer": "9",
"ink": "^4.0.0",
"ink-spinner": "^5.0.0",
"kysely": "^0.25.0",
"kysely": "^0.27.4",
"kysely-codegen": "^0.10.1",
"kysely-data-api": "^0.2.1",
"kysely-data-api": "^1.0.1",
"minimatch": "^6.1.6",
"openid-client": "^5.1.8",
"ora": "^6.1.2",
"react": "^18.0.0",
"remeda": "^1.3.0",
"sst-aws-cdk": "2.132.1",
"sst-aws-cdk": "2.179.0-3",
"tree-kill": "^1.2.2",
"undici": "^5.12.0",
"uuid": "^9.0.0",
"ws": "^8.11.0",
"yargs": "^17.6.2",
"zod": "^3.21.4"
},
"devDependencies": {
"@aws-sdk/client-api-gateway": "^3.454.0",
"@aws-sdk/client-cloudfront": "^3.454.0",
"@aws-sdk/client-codebuild": "^3.454.0",
"@aws-sdk/client-sqs": "^3.454.0",
"@aws-sdk/types": "^3.451.0",
"@graphql-tools/merge": "^8.3.16",
"@sls-next/lambda-at-edge": "^3.7.0",
"@smithy/types": "^2.6.0",
"@tsconfig/node16": "^1.0.3",
"@tsconfig/node18": "^18.2.2",
"@types/adm-zip": "^0.5.0",
"@types/async": "^3.2.24",
"@types/aws-iot-device-sdk": "^2.2.8",
"@types/aws-lambda": "^8.10.128",
"@types/babel__core": "^7.1.20",
"@types/babel__generator": "^7.6.4",
"@types/cross-spawn": "^6.0.2",
"@types/express": "^4.17.14",
"@types/node": "^18.11.9",
"@types/react": "^18.0.28",
"@types/uuid": "^8.3.4",
"@types/ws": "^8.5.3",
"@types/yargs": "^17.0.13",
"archiver": "^5.3.1",
"astro-sst": "2.40.8",
"async": "^3.2.4",
"tsx": "^3.12.1",
"typescript": "^5.2.2",
"vitest": "^0.33.0"
},
"peerDependencies": {
"@sls-next/lambda-at-edge": "^3.7.0"
},
"peerDependenciesMeta": {
"@sls-next/lambda-at-edge": {
"optional": true
}
},
"bugs": {
"url": "https://github.com/sst/v2/issues"
"exports": {
"./constructs/deprecated": "./dist/constructs/deprecated/index.js",
"./constructs/future": "./dist/constructs/future/index.js",
"./constructs": "./dist/constructs/index.js",
"./context": "./dist/context/index.js",
"./node/future/*": "./dist/node/future/*/index.js",
"./node/*": "./dist/node/*/index.js",
".": "./dist/index.js",
"./*": "./dist/*"
},
"main": "index.js",
"directories": {
"test": "test"
"repository": {
"type": "git",
"url": "git+https://github.com/sst/v2.git",
"directory": "packages/cli"
},
"keywords": [],
"author": ""
Expand Down
32 changes: 16 additions & 16 deletions packages/sst/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"sideEffects": false,
"name": "sst",
"version": "2.48.5",
"main": "dist/index.js",
"bin": {
"sst": "cli/sst.js"
"sst": "dist/cli/sst.js"
},
"description": "A CLI to help deploy SST apps.",
"type": "module",
Expand All @@ -23,16 +24,16 @@
"url": "git+https://github.com/sst/v2.git",
"directory": "packages/cli"
},
"exports": {
"./constructs/deprecated": "./constructs/deprecated/index.js",
"./constructs/future": "./constructs/future/index.js",
"./constructs": "./constructs/index.js",
"./context": "./context/index.js",
"./node/future/*": "./node/future/*/index.js",
"./node/*": "./node/*/index.js",
".": "./index.js",
"./*": "./*"
},
"exports": {
"./constructs/deprecated": "./dist/constructs/deprecated/index.js",
"./constructs/future": "./dist/constructs/future/index.js",
"./constructs": "./dist/constructs/index.js",
"./context": "./dist/context/index.js",
"./node/future/*": "./dist/node/future/*/index.js",
"./node/*": "./dist/node/*/index.js",
".": "./dist/index.js",
"./*": "./dist/*"
},
"homepage": "https://sst.dev",
"dependencies": {
"@aws-cdk/aws-lambda-python-alpha": "2.179.0-alpha.0",
Expand Down Expand Up @@ -71,25 +72,25 @@
"chalk": "^5.2.0",
"chokidar": "^3.5.3",
"ci-info": "^3.7.0",
"colorette": "^2.0.19",
"colorette": "^2.0.20",
"conf": "^10.2.0",
"constructs": "10.3.0",
"cross-spawn": "^7.0.3",
"dendriform-immer-patch-optimiser": "^2.1.0",
"dotenv": "^16.0.3",
"esbuild": "0.18.13",
"express": "^4.18.2",
"fast-jwt": "^5.0.5",
"fast-jwt": "^3.3.3",
"get-port": "^6.1.2",
"glob": "^10.0.0",
"graphql": "*",
"graphql-yoga": "^3.9.0",
"immer": "9",
"ink": "^4.0.0",
"ink-spinner": "^5.0.0",
"kysely": "^0.25.0",
"kysely": "^0.27.4",
"kysely-codegen": "^0.10.1",
"kysely-data-api": "^0.2.1",
"kysely-data-api": "^1.0.1",
"minimatch": "^6.1.6",
"openid-client": "^5.1.8",
"ora": "^6.1.2",
Expand Down Expand Up @@ -145,7 +146,6 @@
"bugs": {
"url": "https://github.com/sst/v2/issues"
},
"main": "index.js",
"directories": {
"test": "test"
},
Expand Down
Loading