Skip to content

Fix ejs builds #2632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"format-js": "prettier --write README.md CONTRIBUTING.md CODE_OF_CONDUCT.md USAGE.md ./src/**/*.{ts,tsx} ./apps/**/*.{ts,tsx}",
"jest": "jest",
"lint": "eslint --ext .ts,.tsx src",
"peg": "pegjs -o src/lib/extract/transform.js ./src/lib/extract/transform.peg && peggy -o src/filter-image/extract/extractFiltersString.js src/filter-image/extract/extractFiltersString.pegjs && peggy -o src/lib/extract/transformToRn.js src/lib/extract/transformToRn.pegjs",
"peg": "peggy --format es ./src/lib/extract/transform.peg && peggy --format es src/filter-image/extract/extractFiltersString.pegjs && peggy --format es src/lib/extract/transformToRn.pegjs",
"prepare": "npm run bob && husky install",
"release": "npm login && release-it",
"test": "npm run lint && npm run tsc",
Expand Down Expand Up @@ -104,7 +104,6 @@
"jest-html-reporters": "^3.1.7",
"lint-staged": "^13.0.3",
"peggy": "4.0.3",
"pegjs": "^0.10.0",
"pixelmatch": "5.3.0",
"pngjs": "^7.0.0",
"prettier": "3.0.1",
Expand Down
9 changes: 9 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
packages = with pkgs; [
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file just declares packages needed to work on the project. It's common to upstream this for other users of the nix packet manager. If you don't want it included, I can just remove it. LMK

nodejs
eslint_d
prettierd
yarn
];
}
14 changes: 8 additions & 6 deletions src/filter-image/extract/extractFiltersString.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
//
// https://peggyjs.org/

"use strict";



function buildDropShadow(offsetX, offsetY, blurRadius, color) {
Expand Down Expand Up @@ -2035,8 +2033,12 @@ function peg$parse(input, options) {
}
}

module.exports = {
StartRules: ["start"],
SyntaxError: peg$SyntaxError,
parse: peg$parse
const peg$allowedStartRules = [
"start"
];

export {
peg$allowedStartRules as StartRules,
peg$SyntaxError as SyntaxError,
peg$parse as parse
};
Loading