Skip to content

Commit

Permalink
Fixup prettier scripts and issues
Browse files Browse the repository at this point in the history
It seems like the prettier API has changed and it is no longer possible to combine --list-different and --write.
  • Loading branch information
arturmuller committed Jun 20, 2024
1 parent 701b67f commit bac322b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
"clean": "rm -rf ./{dist,node_modules}",
"fix": "npm run fix:eslint && npm run fix:prettier",
"fix:eslint": "npm run lint:eslint --fix",
"fix:prettier": "npm run lint:prettier --write",
"fix:prettier": "prettier '**/*.{js,json,ts}' --write",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:eslint": "eslint '{src,test}/*.{js,ts}'",
"lint:prettier": "prettier --list-different '**/*.{js,json,ts}'",
"lint:prettier": "prettier '**/*.{js,json,ts}' --check",
"release": "npm run build && npm run lint && np",
"test": "npm run build && npm run test:types && npm run test:vitest",
"test:types": "tsc --noEmit && tsc --project ./test/tsconfig.json --noEmit",
Expand Down
7 changes: 6 additions & 1 deletion src/structs/utilities.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Context, Struct, Validator } from '../struct.js'
import { Assign, ObjectSchema, ObjectType, PartialObjectSchema } from '../utils.js'
import {
Assign,
ObjectSchema,
ObjectType,
PartialObjectSchema,
} from '../utils.js'
import { object, optional, type } from './types.js'

/**
Expand Down

0 comments on commit bac322b

Please sign in to comment.