Skip to content

Commit

Permalink
Revert other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Nov 3, 2023
1 parent 50b7a7b commit 7218615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/realm-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"start:drafts:root": "NODE_NO_WARNINGS=1 ts-node --transpileOnly main --port=4204 --path='../drafts-realm/' --toUrl='/' --fromUrl='https://cardstack.com/base/' --toUrl='http://localhost:4201/base/'",
"start:all": "NODE_NO_WARNINGS=1 start-server-and-test 'run-p start:development start:base:root' 'http-get://localhost:4201/base/fields/boolean-field?acceptHeader=application%2Fvnd.card%2Bjson|http-get://localhost:4203/fields/boolean-field?acceptHeader=application%2Fvnd.card%2Bjson|http-get://localhost:4201/drafts/index?acceptHeader=application%2Fvnd.card%2Bjson' 'run-p start:test-realms start:test-container start:matrix start:smtp' 'http-get://localhost:4202/node-test/person-1?acceptHeader=application%2Fvnd.card%2Bjson|http-get://127.0.0.1:4205|http://localhost:8008|http://localhost:5001' 'wait'",
"start:without-matrix": "NODE_NO_WARNINGS=1 start-server-and-test 'run-p start:development start:base:root' 'http-get://localhost:4201/base/fields/boolean-field?acceptHeader=application%2Fvnd.card%2Bjson|http-get://localhost:4203/fields/boolean-field?acceptHeader=application%2Fvnd.card%2Bjson|http-get://localhost:4201/drafts/index?acceptHeader=application%2Fvnd.card%2Bjson' 'run-p start:test-realms start:test-container' 'http-get://localhost:4202/node-test/person-1?acceptHeader=application%2Fvnd.card%2Bjson|http-get://127.0.0.1:4205' 'wait'",
"start:staging": "pnpm setup:base-in-deployment && pnpm setup:drafts-in-deployment && pnpm setup:published-in-deployment && NODE_NO_WARNINGS=1 LOG_LEVELS='*=debug' ts-node --transpileOnly main --port=3000 --path='/persistent/base' --fromUrl='https://cardstack.com/base/' --toUrl='https://realms-staging.stack.cards/base/' --distURL='https://boxel-host-staging.stack.cards' --path='/persistent/drafts' --fromUrl='https://realms-staging.stack.cards/drafts/' --toUrl='https://realms-staging.stack.cards/drafts/' --path='/persistent/published' --fromUrl='https://realms-staging.stack.cards/published/' --toUrl='https://realms-staging.stack.cards/published/' --fromUrl='https://cardstack.com/base/' --toUrl='https://realms-staging.stack.cards/base/' --fromUrl='https://realms-staging.stack.card/base/' --toUrl='https://realms-staging.stack.cards/base/'",
"start:staging": "pnpm setup:base-in-deployment && pnpm setup:drafts-in-deployment && pnpm setup:published-in-deployment && NODE_NO_WARNINGS=1 LOG_LEVELS='*=info' ts-node --transpileOnly main --port=3000 --path='/persistent/base' --fromUrl='https://cardstack.com/base/' --toUrl='https://realms-staging.stack.cards/base/' --distURL='https://boxel-host-staging.stack.cards' --path='/persistent/drafts' --fromUrl='https://realms-staging.stack.cards/drafts/' --toUrl='https://realms-staging.stack.cards/drafts/' --path='/persistent/published' --fromUrl='https://realms-staging.stack.cards/published/' --toUrl='https://realms-staging.stack.cards/published/' --fromUrl='https://cardstack.com/base/' --toUrl='https://realms-staging.stack.cards/base/' --fromUrl='https://realms-staging.stack.card/base/' --toUrl='https://realms-staging.stack.cards/base/'",
"start:development": "pnpm setup:base-assets && NODE_NO_WARNINGS=1 LOG_LEVELS='*=info' ts-node --transpileOnly main --port=4201 --path='../base' --fromUrl='https://cardstack.com/base/' --toUrl='http://localhost:4201/base/' --path='../drafts-realm' --fromUrl='http://localhost:4201/drafts/' --toUrl='http://localhost:4201/drafts/' --path='../published-realm' --fromUrl='http://localhost:4201/published/' --toUrl='http://localhost:4201/published/'",
"start:production": "pnpm setup:base-in-deployment && pnpm setup:drafts-in-deployment && pnpm setup:published-in-deployment && NODE_NO_WARNINGS=1 LOG_LEVELS='*=info' ts-node --transpileOnly main --port=3000 --distURL='https://boxel-host.cardstack.com' --path='/persistent/base' --fromUrl='https://cardstack.com/base/' --toUrl='https://realms.cardstack.com/base/' --path='/persistent/drafts' --fromUrl='https://realms.cardstack.com/drafts/' --toUrl='https://realms.cardstack.com/drafts/' --path='/persistent/published' --fromUrl='https://realms.cardstack.com/published/' --toUrl='https://realms.cardstack.com/published/' --fromUrl='https://cardstack.com/base/' --toUrl='https://realms.cardstack.com/base/' --fromUrl='https://realms.cardstack.com/base/' --toUrl='https://realms.cardstack.com/base/'",
"wait": "sleep 10000000",
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-common/code-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function isBaseDef(cardOrField: any): cardOrField is typeof BaseDef {
}

export function isCardDef(card: any): card is typeof CardDef {
return !('isFieldDef' in card) && isBaseDef(card);
return !('isFieldDef' in card) && 'isCardDef' in card && isBaseDef(card);
}

export function isFieldDef(field: any): field is typeof FieldDef {
Expand Down

0 comments on commit 7218615

Please sign in to comment.