Skip to content

Commit

Permalink
chore: remove map AST
Browse files Browse the repository at this point in the history
  • Loading branch information
freaz committed Jul 19, 2023
1 parent f25297e commit 9208fd0
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2,999 deletions.
8 changes: 0 additions & 8 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,13 @@
GENERATED=0
#Hack: stat is different for OSX
if [[ "$OSTYPE" == "darwin"* ]]; then
MAP_AST_CHANGED=$((`stat -f "%c" src/interfaces/ast/map-ast.ts` - `stat -f "%c" src/interfaces/ast/map-ast.schema.json`))
PROFILE_AST_CHANGED=$((`stat -f "%c" src/interfaces/ast/profile-ast.ts` - `stat -f "%c" src/interfaces/ast/profile-ast.schema.json`))
PROVIDERJSON_AST_CHANGED=$((`stat -f "%c" src/interfaces/providerjson/providerjson.ts` - `stat -f "%c" src/interfaces/providerjson/providerjson.schema.json`))
else
MAP_AST_CHANGED=$((`stat --format="%Y" src/interfaces/ast/map-ast.ts` - `stat --format="%Y" src/interfaces/ast/map-ast.schema.json`))
PROFILE_AST_CHANGED=$((`stat --format="%Y" src/interfaces/ast/profile-ast.ts` - `stat --format="%Y" src/interfaces/ast/profile-ast.schema.json`))
PROVIDERJSON_AST_CHANGED=$((`stat --format="%Y" src/interfaces/providerjson/providerjson.ts` - `stat --format="%Y" src/interfaces/providerjson/providerjson.schema.json`))
fi


if [ $MAP_AST_CHANGED -gt 0 ]; then
yarn run --silent generate_map_schema
GENERATED=1
fi

if [ $PROFILE_AST_CHANGED -gt 0 ]; then
yarn run --silent generate_profile_schema
GENERATED=1
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Removed
- **BREAKING CHANGE**: Removed `DigestSecurityScheme`
- **BREAKING CHANGE**: Removed superjson schema
- **BREAKING CHANGE**: Removed map AST schema

### Fixed
- Profile AST JSON Schema regenerated
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
"format:fix": "prettier --write src/",
"generate_schema": "typescript-json-schema --noExtraProps --required --strictNullChecks --tsNodeRegister --topRef",
"generate_profile_schema": "yarn run generate_schema src/interfaces/ast/profile-ast.ts ProfileDocumentNode -o src/interfaces/ast/profile-ast.schema.json",
"generate_map_schema": "yarn run generate_schema src/interfaces/ast/map-ast.ts MapDocumentNode -o src/interfaces/ast/map-ast.schema.json",
"generate_providerjson_schema": "yarn run generate_schema src/interfaces/providerjson/providerjson.ts ProviderJson -o src/interfaces/providerjson/providerjson.schema.json",
"generate_schemas": "yarn run generate_profile_schema && yarn run generate_map_schema && yarn run generate_providerjson_schema",
"generate_schemas": "yarn run generate_profile_schema && yarn run generate_providerjson_schema",
"prepare": "husky install"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 9208fd0

Please sign in to comment.