-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove diff-server from the JS SDK (#120)"
This reverts commit 409d4ee.
- Loading branch information
Showing
6 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env node | ||
console.error('diff-server: Failed to install correctly'); | ||
process.exit(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
|
||
// This file is used to ensure that we are not trying to publish the downloaded | ||
// binaries. | ||
|
||
const {existsSync, statSync} = require('fs'); | ||
const {join} = require('path'); | ||
|
||
function validateFile(name) { | ||
const p = join(__dirname, '..', 'bin', name); | ||
if (!existsSync(p)) { | ||
console.error(`${name} does not exist`); | ||
process.exit(1); | ||
} | ||
|
||
// If it exists, make sure that this is not the compiled binary. | ||
const stat = statSync(p); | ||
if (stat.size > 10000) { | ||
console.error( | ||
`${name} looks too large. Has it been replaced by the binary?`, | ||
); | ||
process.exit(1); | ||
} | ||
} | ||
|
||
validateFile('diff-server'); |
c29b8f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
replicache-sdk-js – ./
replicache-sdk-js-lp6m1jg94.vercel.app
replicache-sdk-js.now.sh
js.replicache.dev
replicache-sdk-js.rocicorp.vercel.app
replicache-sdk-js-git-master.rocicorp.vercel.app
replicache-sdk-js.rocicorp.now.sh
replicache-sdk-js-git-master.rocicorp.now.sh
c29b8f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
lithtml-todo-sample-ui – ./sample/lit-todo
lithtml-todo-sample-ui-7kxubf2sj.vercel.app
replicache-lit-todo.vercel.app
lithtml-todo-sample-ui.rocicorp.vercel.app
lithtml-todo-sample-ui-git-master.rocicorp.vercel.app