Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- uses: actions/checkout@v4
- run: make lint
- run: make test
- run: make dist
- run: ./scripts/ci-quality-no-uncommitted-files.sh

- run: gh config set prompt disabled
Expand All @@ -31,10 +30,6 @@ jobs:
- name: Perform Tag Release
run: |
gh release create ${{ github.ref_name }} --draft=false --title ${{ github.ref_name }} --target "$GITHUB_SHA" --generate-notes
gh release upload --clobber ${{ github.ref_name }} dist/*.zip dist/*.tar.gz
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}

- name: Publish to NPM
run: sudo npm install --global npm@latest && npm publish
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ jobs:
- uses: actions/checkout@v4
- run: make lint
- run: make test
- run: make dist
- run: ./scripts/ci-quality-no-uncommitted-files.sh
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

19 changes: 0 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,6 @@ lint: common node_modules
.PHONY: test
test: node_modules
$(TIME) $(NODE) $(JSONSCHEMA) test ./test
$(NODE) npm/cjs.test.js
$(NODE) npm/esm.test.mjs

# TODO: Add a `jsonschema pkg` command instead
.PHONY: dist
VERSION = $(shell $(JQ) --raw-output '.["x-version"]' jsonschema.json)
dist:
$(RMRF) $@
$(MKDIRP) $@
cd schemas && $(ZIP) -r ../$@/sourcemeta-std-v$(VERSION).zip * -x '*.DS_Store'
$(ZIP) $@/sourcemeta-std-v$(VERSION).zip LICENSE
$(UNZIP) -l $@/sourcemeta-std-v$(VERSION).zip
cd schemas && $(TAR) -cf ../$@/sourcemeta-std-v$(VERSION).tar --exclude '.DS_Store' *
$(TAR) -rf $@/sourcemeta-std-v$(VERSION).tar LICENSE
$(GZIP) $@/sourcemeta-std-v$(VERSION).tar
$(TAR) -tzf $@/sourcemeta-std-v$(VERSION).tar.gz
$(MKDIRP) $@/npm
$(NPM) version --no-git-tag-version --allow-same-version "$(VERSION)"
$(NPM) pack --pack-destination $@/npm

node_modules: package.json package-lock.json
$(NPM) ci
1 change: 0 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17526561.svg)](https://doi.org/10.5281/zenodo.17526561)
[![GitHub Release](https://img.shields.io/github/v/release/sourcemeta/std)](https://github.com/sourcemeta/std/releases)
[![NPM Version](https://img.shields.io/npm/v/@sourcemeta/std)](https://www.npmjs.com/package/@sourcemeta/std)

***
**Browse the schemas at [https://schemas.sourcemeta.com/sourcemeta/std](https://schemas.sourcemeta.com/sourcemeta/std)**
Expand Down
12 changes: 9 additions & 3 deletions meta/schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@
"properties": {
"$id": false,
"$comment": {
"$ref": "../schemas/2020-12/misc/single-line-text.json"
"$ref": "#/$defs/single-line-text"
},
"title": {
"$ref": "../schemas/2020-12/misc/single-line-text.json"
"$ref": "#/$defs/single-line-text"
},
"description": {
"$ref": "../schemas/2020-12/misc/single-line-text.json"
"$ref": "#/$defs/single-line-text"
}
},
"$defs": {
"single-line-text": {
"type": "string",
"pattern": "^(?!.*\\.$)(?!.*(?<!\\.)\\.\\.(?!\\.))(?!.* [.,;:!?])(?![?!])(?!.*[?!])(?!.* )(?!.*\\(\\))(?!.*\\[\\])(?!.*--)(?!.*[\\n\\r\\t])(?!.*[\\x00-\\x1F\\x7F])[^\\s](?:.*[^\\s])?$"
}
}
}
71 changes: 0 additions & 71 deletions npm/cjs.test.js

This file was deleted.

66 changes: 0 additions & 66 deletions npm/esm.test.mjs

This file was deleted.

65 changes: 0 additions & 65 deletions npm/main.js

This file was deleted.

7 changes: 0 additions & 7 deletions npm/main.mjs

This file was deleted.

52 changes: 2 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,7 @@
{
"name": "@sourcemeta/std",
"version": "0.3.1",
"description": "A growing collection of hand-crafted high-quality schemas, From RFC-compliant Email Address schemas to ISO-compliant Currency Codes",
"main": "npm/main.js",
"module": "npm/main.mjs",
"exports": {
".": {
"import": "./npm/main.mjs",
"require": "./npm/main.js"
}
},
"license": "UNLICENSED",
"homepage": "https://github.com/sourcemeta/std",
"author": {
"email": "[email protected]",
"name": "Sourcemeta",
"url": "https://www.sourcemeta.com"
},
"funding": "https://github.com/sponsors/sourcemeta",
"keywords": [
"jsonschema",
"json",
"schema",
"json-schema",
"cli",
"$ref",
"dereference",
"reference",
"resolve",
"json-pointer",
"validator",
"validation",
"bundle",
"json-schema-validator",
"json-schema-validation",
"lint",
"format",
"draft",
"library"
],
"bugs": {
"url": "https://github.com/sourcemeta/std/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sourcemeta/std.git"
},
"publishConfig": {
"provenance": true,
"access": "public"
},
"version": "0.0.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json now reports version 0.0.0, but package-lock.json still has 0.3.1; npm ci typically errors when the lockfile and manifest metadata are out of sync, which would break make test/CI.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

"private": true,
"devDependencies": {
"@sourcemeta/jsonschema": "^13.2.0"
}
Expand Down
17 changes: 0 additions & 17 deletions schemas/2020-12/misc/schema-like.json

This file was deleted.

15 changes: 0 additions & 15 deletions schemas/2020-12/misc/single-line-text.json

This file was deleted.

Loading