Skip to content

Commit

Permalink
bundler, gql
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Jul 2, 2024
1 parent fd79dad commit 7e83aef
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build and test

on:
workflow_dispatch:
workflow_call:
push:
- '*'

env:
NODE_OPTIONS: "--max-old-space-size=4096"
Expand Down
2 changes: 1 addition & 1 deletion common/graphql/codegen-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config = {
},
generates: {
// output combined graphql schema
'schema/generated/platform.graphql': {
'common/graphql/generated/schema.graphql': {
config: {
// include AppSync directives in the generated schema
includeDirectives: true,
Expand Down
2 changes: 1 addition & 1 deletion common/src/gql.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// import this for all graphql types
export * as GQL from '../graphql/generated/gql.js';
export * as GQL from '../graphql/generated/index';
9 changes: 0 additions & 9 deletions common/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
// TODO: I don't want to export any of these from index.ts
// I want package subpath exports in package.json to work properly with TypeScript
// so that users can say `import { sleep } from 'common/util/sleep'`
// this is still quite experimental though
// https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#package-json-exports-imports-and-self-referencing
export * from './env.js';
export * from './gql.js';
export * from './util/index.js';

// change this
export const APP_NAME = 'myapp';
1 change: 0 additions & 1 deletion common/src/util/index.ts

This file was deleted.

1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"strictNullChecks": true,
"noEmit": true,
"moduleResolution": "Bundler",
"paths": {
"@common/*": ["./common/src/*"],
"@backend/*": ["./backend/src/*"]
Expand Down

0 comments on commit 7e83aef

Please sign in to comment.