Skip to content

Commit

Permalink
Merge branch 'dev' into chore/SOF-7209
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Jun 4, 2024
2 parents afa7b58 + 2dfcc19 commit 8411857
Show file tree
Hide file tree
Showing 25 changed files with 32,993 additions and 37,317 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["@exabyte-io/eslint-config"],
"ignorePatterns": ["dist/js/**/*.js", "dist/js/**/*.ts"],
"ignorePatterns": ["dist/js/**/*.js", "dist/js/**/*.ts", "src/js/types.ts"],
"settings": {
"import/resolver": {
"node": {
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ schema.js

# Static assets, if any
site

src/js/types.ts
2 changes: 1 addition & 1 deletion compile_ts.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import compileTS from "./src/js/scripts/compileTs";

compileTS("./dist/js/schema", `./dist/js/types.ts`);
compileTS("./dist/js/schema", `./src/js/types.ts`);
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"enum": [
"us",
"nc",
"nc-fr",
"paw",
"coulomb"
]
Expand Down
1 change: 1 addition & 0 deletions dist/js/schema/methods_category/physical/qm/wf/psp.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"enum": [
"us",
"nc",
"nc-fr",
"paw",
"coulomb"
],
Expand Down
2 changes: 2 additions & 0 deletions dist/js/schema/methods_directory/physical/psp.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"enum": [
"us",
"nc",
"nc-fr",
"paw",
"coulomb"
],
Expand Down Expand Up @@ -218,6 +219,7 @@
"enum": [
"us",
"nc",
"nc-fr",
"paw",
"coulomb"
]
Expand Down
1 change: 1 addition & 0 deletions dist/js/schema/methods_directory/physical/psp/file.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"enum": [
"us",
"nc",
"nc-fr",
"paw",
"coulomb"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"enum": [
"us",
"nc",
"nc-fr",
"paw",
"coulomb"
]
Expand Down
2 changes: 1 addition & 1 deletion dist/js/schemas.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/scripts/compileTs.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ async function compileTS(schemaPath, savePath) {
const compiledSchema = await (0, json_schema_to_typescript_1.compile)(schema, schema.title || "", {
unreachableDefinitions: true,
additionalProperties: false,
enableConstEnums: false,
bannerComment: `/** Schema ${filePath} */`,
});
await fs_1.default.promises.appendFile(savePath, `${compiledSchema} \n`, { flag: "a+" });
Expand Down
Loading

0 comments on commit 8411857

Please sign in to comment.