Compare commits
6 Commits
c8d2de9f9d
...
1.0.3
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ba341203d | |||
| 54d466fb27 | |||
| 07d30f7e83 | |||
| cd806b7d17 | |||
| 7daf542961 | |||
| f911224847 |
@@ -22,8 +22,9 @@ jobs:
|
||||
|
||||
- name: Build TypeScript
|
||||
run: npm run build
|
||||
|
||||
- name: Add NPM token
|
||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
||||
|
||||
- name: Publish to NPM
|
||||
run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: npm publish --access public
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -13,4 +13,5 @@ yarn-error.log*
|
||||
.DS_Store
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
!.env.example
|
||||
/dist
|
||||
6
README.md
Normal file
6
README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# Chatenium SDK For TypeScript
|
||||
A library for interacting with the Chatenium API.
|
||||
## Quick Start
|
||||
```aiignore
|
||||
npm install @chatenium/chatenium-sdk
|
||||
```
|
||||
24
package.json
24
package.json
@@ -1,8 +1,28 @@
|
||||
{
|
||||
"name": "chatenium-sdk",
|
||||
"version": "1.0.0",
|
||||
"name": "@chatenium/chatenium-sdk",
|
||||
"version": "1.0.3",
|
||||
"description": "A library for interacting with the Chatenium API",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./core/*": "./dist/core/*.js",
|
||||
"./services/*": "./dist/services/*.js",
|
||||
"./domain/*": "./dist/domain/*.js",
|
||||
"./mocks/*": "./dist/mocks/*.js",
|
||||
"./storage/*": "./dist/storage/*.js"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"test": "vitest run",
|
||||
|
||||
@@ -4,6 +4,9 @@ export interface SDKConfig {
|
||||
wsUrl: string;
|
||||
}
|
||||
|
||||
declare const process: any;
|
||||
declare const require: any;
|
||||
|
||||
const isNode =
|
||||
typeof process !== 'undefined' &&
|
||||
typeof process.versions !== 'undefined' &&
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"declaration": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"outDir": "dist"
|
||||
|
||||
Reference in New Issue
Block a user