Skip to content

Commit 1012068

Browse files
committed
Replace types with newly generated types
1 parent 9846b90 commit 1012068

File tree

11 files changed

+298
-785
lines changed

11 files changed

+298
-785
lines changed

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ towards-features.md
1717
/docs
1818
!/docs/publishing.md
1919
/features/draft
20-
/schemas/data.schema.json
2120
/scripts/caniuse.ts
2221
/scripts/schema.ts
2322
/scripts/specs.ts

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'path';
44
import { Temporal } from '@js-temporal/polyfill';
55
import { fdir } from 'fdir';
66
import YAML from 'yaml';
7-
import { FeatureData, GroupData, SnapshotData, WebFeaturesData } from './newtypes';
7+
import { FeatureData, GroupData, SnapshotData, WebFeaturesData } from './types';
88

99
import { toString as hastTreeToString } from 'hast-util-to-string';
1010
import rehypeStringify from 'rehype-stringify';

newtypes.ts

Lines changed: 0 additions & 63 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@
2222
"undist": "tsx scripts/undist.ts",
2323
"feature-init": "tsx scripts/feature-init.ts",
2424
"format": "npx prettier --write .",
25-
"schema:write": "npm run schema -- --out ./schemas/data.schema.json",
26-
"schema": "ts-json-schema-generator --tsconfig ./tsconfig.json --path ./types.ts --type=WebFeaturesData",
27-
"schematypes": "sh -c \"npx quicktype --lang='typescript' --src-lang schema --src ./schemas/new.schema.json --just-types='yes' --prefer-unions='yes' --prefer-const-values='yes' --top-level=WebFeaturesData | prettier --stdin-filepath ./new.quicktype.ts\"",
28-
"schematypes:write": "npm run --silent schematypes > ./new.quicktype.ts",
25+
"schematypes": "sh -c \"npx quicktype --lang='typescript' --src-lang schema --src ./schemas/data.schema.json --just-types='yes' --prefer-unions='yes' --prefer-const-values='yes' --top-level=WebFeaturesData | prettier --stdin-filepath ./types.quicktype.ts\"",
26+
"schematypes:write": "npm run --silent schematypes > ./types.quicktype.ts",
2927
"test:caniuse": "tsx scripts/caniuse.ts",
3028
"test:coverage": "npm run --workspaces test:coverage",
3129
"test:dist": "tsx scripts/dist.ts --check",
3230
"test:format": "prettier --check .",
3331
"test:lint": "npx eslint .",
34-
"test:schema": "tsx scripts/schema.ts",
32+
"test:schematypes": "tsx scripts/schema.ts",
3533
"test:specs": "tsx scripts/specs.ts",
3634
"test:types": "npm run --workspaces test:types && tsc",
37-
"test": "npm run test:caniuse -- --quiet && npm run test:schema && npm run test:specs && npm run test:types && npm run test:format && npm run test:dist && npm run test --workspaces && npm run test:lint",
35+
"test": "npm run test:caniuse -- --quiet && npm run test:schematypes && npm run test:specs && npm run test:types && npm run test:format && npm run test:dist && npm run test --workspaces && npm run test:lint",
3836
"update-drafts": "tsx scripts/update-drafts.ts",
3937
"remove-tagged-compat-features": "tsx scripts/remove-tagged-compat-features.ts && npm run format"
4038
},

0 commit comments

Comments
 (0)