Skip to content

Commit

Permalink
[export] Don't filter or touch asset documents or references in raw mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored and bjoerge committed Feb 16, 2018
1 parent 0d15bea commit dbc0bba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/@sanity/export/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ exportDataset({
// Default: `true`
assets: false,

// Exports documents only, without downloading or rewriting asset references. Note that the
// `assets` option is still respected, determining whether or not to include asset documents
// Exports documents only, without downloading or rewriting asset references
raw: true
})
```
Expand Down
4 changes: 1 addition & 3 deletions packages/@sanity/export/src/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ function exportDataset(opts) {
options.outputPath === '-' ? process.stdout : fs.createWriteStream(options.outputPath)

let assetStreamHandler = assetHandler.noop
if (options.raw && !options.assets) {
assetStreamHandler = assetHandler.skipAssets
} else if (!options.raw) {
if (!options.raw) {
assetStreamHandler = options.assets ? assetHandler.rewriteAssets : assetHandler.stripAssets
}

Expand Down

0 comments on commit dbc0bba

Please sign in to comment.