Skip to content

Commit

Permalink
build(core,apollo): fix npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa committed Nov 16, 2023
1 parent 5bb0710 commit a42b86b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
5 changes: 3 additions & 2 deletions packages/apollo/.release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@
},
"npm": {
"publishPath": "dist/packages/apollo",
"publish": true
"publish": false
},
"github": {
"release": true,
"releaseName": "apollo ${version}"
},
"hooks": {
"after:bump": "git checkout -- package.json"
"after:bump": "git checkout -- package.json",
"before:github:release": "npm publish dist/packages/apollo"
},
"ci": true
}
5 changes: 3 additions & 2 deletions packages/core/.release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@
},
"npm": {
"publishPath": "dist/packages/core",
"publish": true
"publish": false
},
"github": {
"release": true,
"releaseName": "core ${version}"
},
"hooks": {
"after:bump": "git checkout -- package.json"
"after:bump": "git checkout -- package.json",
"before:github:release": "npm publish dist/packages/core"
},
"ci": true
}
1 change: 0 additions & 1 deletion packages/core/src/lib/decorators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ describe('resolveField', () => {
class PostResolver {
@graphql.resolveField()
async author(post: Parent<Post>): Promise<User> {
console.log(post);
return cast<User>({});
}
}
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/lib/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ class GraphQLPropertyDecorator {
// eslint-disable-next-line functional/prefer-readonly-type
middleware(...middleware: InternalMiddleware[]) {
this.t.middleware = new Set(middleware);
console.log(this);
}
}

Expand Down
6 changes: 2 additions & 4 deletions packages/core/src/lib/types-builder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ describe('TypesBuilder', () => {
}*/,
);

test('extends', () => {
test.todo('extends'/*, () => {
interface Produce {
readonly type: string;
readonly test: string;
Expand All @@ -521,7 +521,5 @@ describe('TypesBuilder', () => {
interface Vegetable extends Produce {
readonly type: 'vegetable';
}

console.log(typeOf<Vegetable>());
});
}*/);
});
1 change: 0 additions & 1 deletion packages/core/src/lib/types-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export class TypesBuilder {
return String;

default:
console.log(type);
throw new Error(`Kind ${type.kind} is not supported`);
}
}
Expand Down

0 comments on commit a42b86b

Please sign in to comment.