Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified examples/apq-subgraphs/example.tar.gz
Binary file not shown.
Binary file modified examples/extra-fields/example.tar.gz
Binary file not shown.
Binary file modified examples/federation-example/example.tar.gz
Binary file not shown.
Binary file modified examples/federation-mixed/example.tar.gz
Binary file not shown.
Binary file modified examples/federation-subscriptions-passthrough/example.tar.gz
Binary file not shown.
Binary file modified examples/file-upload/example.tar.gz
Binary file not shown.
Binary file modified examples/hmac-auth-https/example.tar.gz
Binary file not shown.
Binary file modified examples/interface-additional-resolvers/example.tar.gz
Binary file not shown.
Binary file modified examples/json-schema-subscriptions/example.tar.gz
Binary file not shown.
Binary file modified examples/openapi-additional-resolvers/example.tar.gz
Binary file not shown.
Binary file modified examples/openapi-arg-rename/example.tar.gz
Binary file not shown.
Binary file modified examples/openapi-javascript-wiki/example.tar.gz
Binary file not shown.
Binary file modified examples/openapi-subscriptions/example.tar.gz
Binary file not shown.
Binary file modified examples/operation-field-permissions/example.tar.gz
Binary file not shown.
Binary file modified examples/programmatic-batching/example.tar.gz
Binary file not shown.
Binary file modified examples/subscriptions-with-transforms/example.tar.gz
Binary file not shown.
Binary file modified examples/type-merging-batching/example.tar.gz
Binary file not shown.
17 changes: 15 additions & 2 deletions internal/examples/src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,16 +449,29 @@ export async function convertE2EToExample(config: ConvertE2EToExampleConfig) {
{
cwd: path.join(__project, 'examples'),
env: {
// remove timestamps
// remove timestamps from gzip
GZIP: '-n',
},
},
'tar',
// consistent sort of files (by default tar sorts files by order of the filesystem)
'--sort=name',
'-czf',
// set modify time to zero
'--mtime=@0',
// set default permissions and owners
'--mode=a+rwX',
'--owner=0',
'--group=0',
'--numeric-owner',
// create gzip
'-cz',
// filename
'-f',
`${config.e2e}.tar.gz`,
// skip node_modules
`--exclude=${config.e2e}/node_modules`,
// skip existing example archive
`--exclude=${config.e2e}/example.tar.gz`,
config.e2e,
);
await waitForExit;
Expand Down
Loading