Skip to content

Commit

Permalink
fix(sdk): fixing build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rallieon committed Aug 26, 2021
1 parent 244568e commit 2ecbdd0
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/models/.releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"branches": [{ "name": "main" }, { "name": "next", "channel": "beta", "prerelease": true }],
"plugins": [
[
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/git",
{
"assets": ["package.json"],
Expand Down
3 changes: 3 additions & 0 deletions packages/models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"type": "git",
"url": "git+https://github.com/playhaste/haste-sdk.git"
},
"files": [
"dist"
],
"scripts": {
"clean": "rm -f *.tsbuildinfo && rimraf -rf ./dist ./coverage",
"build": "tsc -b",
Expand Down
2 changes: 2 additions & 0 deletions packages/models/src/models/arcade.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export class Arcade {
id: string;
name: string;
description: string;

constructor(id: string) {
this.id = id;
this.name = '';
}
}
2 changes: 2 additions & 0 deletions packages/server/.releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"branches": [{ "name": "main" }, { "name": "next", "channel": "beta", "prerelease": true }],
"plugins": [
[
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/git",
{
"assets": ["package.json"],
Expand Down
3 changes: 3 additions & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"type": "git",
"url": "git+https://github.com/playhaste/haste-sdk.git"
},
"files": [
"dist"
],
"scripts": {
"clean": "rm -f *.tsbuildinfo && rimraf -rf ./dist ./coverage",
"build": "tsc -b",
Expand Down
2 changes: 2 additions & 0 deletions packages/web/.releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"branches": [{ "name": "main" }, { "name": "next", "channel": "beta", "prerelease": true }],
"plugins": [
[
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/git",
{
"assets": ["package.json"],
Expand Down
3 changes: 3 additions & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"type": "git",
"url": "git+https://github.com/playhaste/haste-sdk.git"
},
"files": [
"dist"
],
"scripts": {
"clean": "rm -f *.tsbuildinfo && rimraf -rf ./dist ./coverage",
"build": "tsc -b",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/api/hasteClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class HasteClient {
}

public static async build(clientId: string, domain = 'haste-development.us.auth0.com') {
if (!isBrowser()) throw new Error(`Haste client build may only be called from a browser based environment.`);
if (!isBrowser()) throw new Error(`Haste client build may only be called from a browser based environment please.`);

const auth0 = await createAuth0Client({
domain: domain,
Expand Down

0 comments on commit 2ecbdd0

Please sign in to comment.