UNPKG

pursfmt

Version:

Configurable syntax formatter for PureScript.

57 lines (56 loc) 2.01 kB
{ "name": "pursfmt", "version": "0.16.0", "type": "module", "description": "Configurable syntax formatter for PureScript.", "bin": { "pursfmt": "bin/index.js" }, "directories": { "test": "test" }, "files": [ "bin/index.js", "bundle/**/*.js" ], "scripts": { "version": "echo 'export const version = \"v'$npm_package_version'\";' > ./bin/src/Bin/Version.js && git add ./bin/src/Bin/Version.js", "postversion": "echo '⚠️ Update version in spago.yaml and `git commit --amend` changes'", "build": "spago build --quiet", "bundle": "npm run build && purs-backend-es build --int-tags && npm run bundle:main && npm run bundle:worker", "bundle:main": "purs-backend-es bundle-module --platform node --to \"./bundle/Main/index.js\" --no-build --minify", "bundle:worker": "purs-backend-es bundle-app --platform node --to \"./bundle/Bin.Worker/index.js\" --main Bin.Worker --no-build --minify", "test": "spago test", "generate-default-operators": "spago run -p pursfmt-script -m GenerateDefaultOperatorsModule", "format-self": "npm run build && node ./bin/index.js format-in-place src bin script test-snapshots", "check-self": "node ./bin/index.js check src 'test/*.purs' src bin script test-snapshots", "prepublishOnly": "rm -rf output bundle && npm run bundle" }, "repository": { "type": "git", "url": "git+https://github.com/ad-si/pursfmt.git" }, "keywords": [ "PureScript", "formatter", "format" ], "contributors": [ "Adrian Sieber <npm@ad-si.com> (https://github.com/ad-si/)", "Nathan Faubion <nathan@n-son.com> (https://github.com/natefaubion/)" ], "license": "MIT", "bugs": { "url": "https://github.com/ad-si/pursfmt/issues" }, "homepage": "https://github.com/ad-si/pursfmt#readme", "devDependencies": { "esbuild": "^0.25.9", "purescript": "^0.15.15", "purs-backend-es": "^1.4.3", "spago": "^0.93.43" }, "dependencies": { "js-yaml": "^4.1.0" } }