diff --git a/spec/1.4/schema.json b/spec/1.4/schema.json index c2d64be..ee2552b 100644 --- a/spec/1.4/schema.json +++ b/spec/1.4/schema.json @@ -19,7 +19,7 @@ "description": "This string MUST be the [semantic version number](https://semver.org/spec/v2.0.0.html) of the [OpenRPC Specification version](#versions) that the OpenRPC document uses. The `openrpc` field SHOULD be used by tooling specifications and clients to interpret the OpenRPC document. This is *not* related to the API [`info.version`](#info-version) string.", "title": "openrpc", "type": "string", - "regex": "^1\\.4\\.\\d+$" + "pattern": "^1\\.4\\.\\d+$" }, "info": { "$ref": "#/definitions/infoObject" diff --git a/src/generate-index.ts b/src/generate-index.ts index fdc0010..3f683f9 100644 --- a/src/generate-index.ts +++ b/src/generate-index.ts @@ -85,6 +85,5 @@ pkg.exports = { pkg.files = ["dist"]; -writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n"); -// eslint-disable-next-line no-console +writeFileSync(pkgPath, JSON.stringify(pkg, null, 2)); console.log("Updated package.json exports with schema paths");