Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Merge pull request #1836 from AndrewBastin/refactor/js-sandbox

Andrew Bastin1aa94a12c0df
diff --cc packages/hoppscotch-js-sandbox/package.json
index 000000000,f69d4004f..8122d774e
mode 000000,100644..100644
--- a/packages/hoppscotch-js-sandbox/package.json
+++ b/packages/hoppscotch-js-sandbox/package.json
@@@ -1,0 -1,59 +1,60 @@@
+ {
+ "name": "@hoppscotch/js-sandbox",
+ "version": "1.0.0",
+ "description": "JavaScript sandboxes for running external scripts used by Hoppscotch clients",
+ "main": "./lib/index.js",
+ "types": "./lib/",
+ "type": "module",
+ "engines": {
+ "node": ">=14",
+ "pnpm": ">=3"
+ },
+ "scripts": {
+ "demo": "esrun src/demo.ts",
+ "lint": "eslint --ext .ts,.js --ignore-path .gitignore",
+ "test": "npx jest",
+ "build": "npx tsc",
+ "clean": "npx tsc --build --clean",
- "prepublish": "npm run build",
++ "prepublish": "pnpm run build",
+ "do-lintfix": "pnpm run lint",
++ "do-build-prod": "pnpm run build",
+ "do-test": "pnpm run test"
+ },
+ "keywords": [
+ "hoppscotch",
+ "sandbox",
+ "js-sandbox",
+ "apis",
+ "test-runner"
+ ],
+ "author": "The Hoppscotch Team <[email protected]> (https://hoppscotch.com/)",
+ "license": "MIT",
+ "dependencies": {
+ "fp-ts": "^2.11.3",
+ "lodash": "^4.17.21",
+ "quickjs-emscripten": "^0.13.0"
+ },
+ "devDependencies": {
+ "@digitak/esrun": "^1.2.4",
+ "@relmify/jest-fp-ts": "^1.1.1",
+ "@types/jest": "^26.0.23",
+ "@types/lodash": "^4.14.173",
+ "@types/node": "^15.12.5",
+ "@typescript-eslint/eslint-plugin": "^4.28.1",
+ "@typescript-eslint/parser": "^4.28.1",
+ "eslint": "^7.29.0",
+ "eslint-config-prettier": "^8.3.0",
+ "eslint-plugin-prettier": "^3.4.0",
+ "io-ts": "^2.2.16",
+ "jest": "^27.0.6",
+ "prettier": "^2.3.2",
+ "pretty-quick": "^3.1.1",
+ "ts-jest": "^27.0.3",
+ "typescript": "^4.3.5"
+ },
+ "jest": {
+ "setupFilesAfterEnv": [
+ "@relmify/jest-fp-ts"
+ ]
+ }
+ }