-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): allow filenames with multiple dots
Fixes #4
- Loading branch information
Showing
7 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/fixtures/build-sanity/dotted-filename-part-sanity-json/lib/my.schema.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
test/fixtures/build-sanity/dotted-filename-part-sanity-json/lib/my.schema.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
test/fixtures/build-sanity/dotted-filename-part-sanity-json/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "sanity-plugin-unprefixed-part-sanity-json", | ||
"version": "1.0.0", | ||
"private": true, | ||
"main": "./lib/my.schema.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"sanity", | ||
"sanity-plugin" | ||
], | ||
"author": "Some person", | ||
"license": "MIT" | ||
} |
13 changes: 13 additions & 0 deletions
13
test/fixtures/build-sanity/dotted-filename-part-sanity-json/sanity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"paths": { | ||
"source": "./src", | ||
"compiled": "./lib" | ||
}, | ||
|
||
"parts": [ | ||
{ | ||
"implements": "part:@sanity/base/schema-type", | ||
"path": "my.schema" | ||
} | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
test/fixtures/build-sanity/dotted-filename-part-sanity-json/src/my.schema.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
name: 'myThing', | ||
type: 'document', | ||
field: [{name: 'title', type: 'string'}], | ||
} |