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 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",