Skip to content

Commit 49a80d3

Browse files
authored
Merge pull request #106 from effigies/fix/pre-publish
chore: Last minute cleanups
2 parents 58c8d7b + 25a61c4 commit 49a80d3

File tree

19 files changed

+71
-60
lines changed

19 files changed

+71
-60
lines changed

deno.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@
99
"./options": "./src/setup/options.ts",
1010
"./issues": "./src/issues/datasetIssues.ts"
1111
},
12+
"exclude": [
13+
"docs/",
14+
"tools/",
15+
"web/",
16+
".*",
17+
"CITATION.cff",
18+
"Dockerfile",
19+
"build.ts",
20+
"local-run"
21+
],
1222
"publish": {
1323
"exclude": [
1424
"**/tests/",
15-
"tools/",
16-
"web/",
17-
".*",
1825
"**/*.test.ts",
19-
"Dockerfile",
20-
"build.ts",
21-
"deno.lock",
22-
"local-run"
26+
"deno.lock"
2327
]
2428
},
2529
"imports": {
@@ -47,6 +51,8 @@
4751
"semiColons": false,
4852
"singleQuote": true,
4953
"proseWrap": "preserve",
50-
"include": ["src/"]
54+
"include": [
55+
"src/"
56+
]
5157
}
5258
}

deno.lock

Lines changed: 21 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/files/deno.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { assert, assertEquals, assertRejects } from '@std/assert'
22
import { readAll, readerFromStreamReader } from '@std/io'
33
import { basename, dirname, fromFileUrl, join } from '@std/path'
44
import { EOL } from '@std/fs'
5-
import { FileTree } from '../types/filetree.ts'
5+
import type { FileTree } from '../types/filetree.ts'
66
import { BIDSFileDeno, readFileTree, UnicodeDecodeError } from './deno.ts'
77
import { requestReadPermission } from '../setup/requestPermissions.ts'
88
import { FileIgnoreRules } from './ignore.ts'

src/files/dwi.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { parseBvalBvec } from './dwi.ts'
44

55
Deno.test('Test bval/bvec parsing', async (t) => {
66
await t.step('Load 3 bvals', async () => {
7-
const bvals = parseBvalBvec('0 1 2 \n') // Typically ends with " \n"
7+
const bvals = parseBvalBvec('0 1 2 \n') // Typically ends with " \n"
88
assertEquals(bvals, [['0', '1', '2']])
99
})
1010
await t.step('Load 3 bvals - missing newline', async () => {
@@ -32,4 +32,3 @@ Deno.test('Test bval/bvec parsing', async (t) => {
3232
assertEquals(bvecs, [['0', '1', '2'], ['0', '1', '2'], ['0', '1', '2']])
3333
})
3434
})
35-

src/files/filetree.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { assert, assertEquals } from '@std/assert'
2-
import { FileIgnoreRules } from './ignore.ts'
3-
import { FileTree } from '../types/filetree.ts'
2+
import type { FileIgnoreRules } from './ignore.ts'
3+
import type { FileTree } from '../types/filetree.ts'
44
import { filesToTree, pathsToTree } from './filetree.ts'
55

66
Deno.test('FileTree generation', async (t) => {

src/files/filetree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { parse, SEPARATOR_PATTERN } from '@std/path'
22
import * as posix from '@std/path/posix'
3-
import { BIDSFile, FileTree } from '../types/filetree.ts'
3+
import { type BIDSFile, FileTree } from '../types/filetree.ts'
44

55
const nullFile = {
66
size: 0,

src/files/gzip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* GZIP
33
* Module for extracting gzip metadata from a file
44
*/
5-
import { Gzip } from '@bids/schema/context'
6-
import { BIDSFile } from '../types/filetree.ts'
5+
import type { Gzip } from '@bids/schema/context'
6+
import type { BIDSFile } from '../types/filetree.ts'
77

88
/**
99
* Parse a gzip header from a file

src/files/tiff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* TIFF
33
* Module for extracting Tiff metadata
44
*/
5-
import { Ome, Tiff } from '@bids/schema/context'
5+
import type { Ome, Tiff } from '@bids/schema/context'
66
import * as XML from '@libs/xml'
7-
import { BIDSFile } from '../types/filetree.ts'
7+
import type { BIDSFile } from '../types/filetree.ts'
88

99
function getImageDescription(
1010
dataview: DataView,

src/issues/datasetIssues.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { nonSchemaIssues } from './list.ts'
2-
import type { Issue, Severity, IssueDefinition, IssueFile } from '../types/issues.ts'
3-
export type { Issue, Severity, IssueDefinition, IssueFile }
2+
import type { Issue, IssueDefinition, IssueFile, Severity } from '../types/issues.ts'
3+
export type { Issue, IssueDefinition, IssueFile, Severity }
44

55
// Code is deprecated, return something unusual but JSON serializable
66
const CODE_DEPRECATED = Number.MIN_SAFE_INTEGER

src/issues/list.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,13 @@ export const bidsIssues: IssueDefinitionRecord = {
168168
},
169169
CITATION_CFF_VALIDATION_ERROR: {
170170
severity: 'error',
171-
reason:
172-
"The file does not pass validation using the citation.cff standard's schema." +
173-
'https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md'
171+
reason: "The file does not pass validation using the citation.cff standard's schema." +
172+
'https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md',
174173
},
175174
FILE_READ: {
176175
severity: 'error',
177-
reason: 'We were unable to read this file.'
178-
}
176+
reason: 'We were unable to read this file.',
177+
},
179178
}
180179

181180
const hedIssues: IssueDefinitionRecord = {

0 commit comments

Comments
 (0)