perf: target Node.js 14 for cjs bundle (main entry)

BREAKING CHANGE: main entry need Node.js>=14 to run, you can build LiquidJS by your own by using ESM entry.
This commit is contained in:
Jun Yang
2022-11-27 14:04:01 +08:00
parent 7eb621601c
commit 1f6ce7c822
3 changed files with 7 additions and 4 deletions
+3
View File
@@ -10,6 +10,9 @@
"./dist/liquid.node.esm.js": "./dist/liquid.browser.esm.js"
},
"types": "dist/liquid.d.ts",
"engines": {
"node": ">=14"
},
"scripts": {
"lint": "eslint \"**/*.mjs\" \"**/*.ts\" .",
"check": "npm run build && npm test && npm run lint && npm run perf:diff",