From caf0f979c232991113a6e265125dd84916973886 Mon Sep 17 00:00:00 2001 From: n-shkaruba Date: Fri, 14 Jul 2023 13:22:35 +0200 Subject: [PATCH 1/2] feat: remove postinstall script, update readme.md --- README.md | 2 +- package.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8cb0790e..acc1a760 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Resources to research: 4. `src/parsing/parsers/{dialect}/jison/structure.json` specifies paths to a lexer, and to all the grammar files. 5. Parser extension (basically the autocomplete features) is specified in `src/parsing/parsers/{dialect}/parser-extension.js`. 6. `src/generator/main.js` concatenates all the jison files into a single big jison file, and runs the jison tool with the specified lexer, then wires everything up with the `parser-extension.js`, generating `src/parsing/parsers/{dialect}/{dialect}AutocompleteParser.js`. -7. The generated file is in plain javascript, so we create a convenient typescript wrapper in `src/parsing/index.ts` with all the types and functions. Our users should include this file in their own projects (for the time being they need to compile it yourself) +7. The generated file is in plain javascript, so we create a convenient typescript wrapper in `src/parsing/index.ts` with all the types and functions. Our users should include this file in their own projects. # Main scripts diff --git a/package.json b/package.json index abc38cf3..bcda12d8 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "types": "./dist/index.d.ts", "scripts": { "prepare": "husky install", - "postinstall": "cd src/generator && npm install", "test": "npm run generate && npm run test_without_generate", "test_without_generate": "jest src/parsing", "generate": "cd src/generator && node main.js generic", From 5defacb5f633306613ebdf5c67949b915de89065 Mon Sep 17 00:00:00 2001 From: n-shkaruba Date: Fri, 14 Jul 2023 13:41:11 +0200 Subject: [PATCH 2/2] fix: fix CI --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73b17571..21713e0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: node-version: '18.x' cache: 'npm' - name: Install Packages - run: npm ci + run: npm ci && cd src/generator/ && npm ci - name: Lint Files run: npm run lint @@ -39,7 +39,7 @@ jobs: node-version: '18.x' cache: 'npm' - name: Install Packages - run: npm ci + run: npm ci && cd src/generator/ && npm ci - name: Generate Parsers run: npm run generate - name: Check That Generated Files Are Unchanged @@ -59,6 +59,6 @@ jobs: node-version: '18.x' cache: 'npm' - name: Install Packages - run: npm ci + run: npm ci && cd src/generator/ && npm ci - name: Unit Tests run: npm run test