diff --git a/package.json b/package.json index 1113cb5e79a084b5dac7b2f1701866bab2f21505..990a59da02270aeaf0bd8d0379c3409d6c7f8ce8 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "clean": "rimraf lib", "coverage": "nyc -e .ts -x \"**/*.test.ts\" npm run test", "coverage-lcov": "nyc -r lcov -e .ts -x \"**/*.test.ts\" npm run test", - "prepublishOnly": "npm run build", + "prepare": "npm run build", "prettier": "prettier --write 'src/**/*.ts' 'tests/**/*.test.ts'", "test": "NODE_ICU_DATA=node_modules/full-icu mocha --timeout 10000 --require ts-node/register --ui qunit '**/*.test.ts'", "test:iter_load": "npx babel-node --extensions '.ts' -- src/scripts/test_iter_load.ts", @@ -147,7 +147,6 @@ "@types/jsdom": "^21.1.7", "@types/mocha": "^10.0.0", "@types/node": "^22.7.6", - "@types/readable-stream": "^4.0.18", "@types/rewire": "^2.5.28", "@types/temp": "^0.9.0", "@types/unzipper": "^0.10.3", @@ -161,8 +160,6 @@ "mocha": "^10.0.0", "nyc": "^17.0.0", "prettier": "^3.0.0", - "quicktype": "^23.0.170", - "quicktype-core": "^23.0.7", "regenerator-runtime": "^0.14.1", "rewire": "^7.0.0", "rimraf": "^6.0.1", diff --git a/src/scripts/raw_types_from_amendements.ts b/src/scripts/raw_types_from_amendements.ts index 6b2a4aa82c5587a1eaafe8c0b8e4de712d765f7f..bb646a057308f1ee1cba4cd7038c9ff422e85b69 100644 --- a/src/scripts/raw_types_from_amendements.ts +++ b/src/scripts/raw_types_from_amendements.ts @@ -1,3 +1,4 @@ +/* import commandLineArgs from "command-line-args" import fs from "fs-extra" import path from "path" @@ -129,3 +130,4 @@ generateRawTypesFromAmendements(options.dataDir) console.error(error) process.exit(1) }) +*/ \ No newline at end of file diff --git a/src/types/README.md b/src/types/README.md index 861a18bdc19f9538120ac6bfbff50ec7d36e3778..d6cb5dbdf5f44f6b202a7bb775a4a91b49488024 100644 --- a/src/types/README.md +++ b/src/types/README.md @@ -3,6 +3,10 @@ ### Initial generation of TypeScript & JSON schema files from JSON data +```bash +npm install -g quicktype @types/readable-stream +``` + ```bash npx quicktype --acronym-style=camel -o src/raw_types/acteurs_et_organes.ts ../assemblee-data/AMO{10,20,30,40,50}_*.json ```