Skip to content

Commit

Permalink
Merge pull request #146 from tjholm/bundle-sdk
Browse files Browse the repository at this point in the history
build: Use tsup to bundle the SDK.
  • Loading branch information
tjholm authored Nov 17, 2022
2 parents 0fc6db0 + 9fda8ab commit c1cb94a
Show file tree
Hide file tree
Showing 6 changed files with 421 additions and 32 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"types": "lib/index.d.ts",
"scripts": {
"bump": "standard-version",
"build": "tsc --project tsconfig.build.json",
"build": "tsup src/index.ts --dts --outDir lib",
"test": "jest",
"test:coverage": "jest --coverage",
"coverage:upload": "yarn run test:coverage && codecov",
Expand Down Expand Up @@ -61,7 +61,8 @@
"ts-jest": "^26.4.3",
"ts-node": "^10.9.1",
"ts-protoc-gen": "^0.15.0",
"typescript": "^3.3"
"tsup": "^6.5.0",
"typescript": "^4.4"
},
"license-check-config": {
"src": [
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ export * from './api';
// Nitric Node FaaS library
export * as faas from './faas';
export * from './resources';
export * from './types';
11 changes: 0 additions & 11 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,6 @@ export interface Task {
payload?: Record<string, any>;
}

export interface PublishOptions {
/**
* The name of the topic to publish to.
*/
topicName: string;
/**
* The event to publish.
*/
event: NitricEvent;
}

export type WhereQueryOperator =
| '<'
| '<='
Expand Down
4 changes: 0 additions & 4 deletions tsconfig.build.json

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"types": ["node", "jest"],
"resolveJsonModule": true,
"importHelpers": true,
"baseUrl": "./",
"baseUrl": ".",
"paths": {
"@nitric/sdk": ["src"],
"@nitric/sdk/*": ["src/*"],
Expand Down
Loading

0 comments on commit c1cb94a

Please sign in to comment.