[d24f17c] | 1 | {
|
---|
| 2 | "name": "yaml",
|
---|
| 3 | "version": "2.3.4",
|
---|
| 4 | "license": "ISC",
|
---|
| 5 | "author": "Eemeli Aro <eemeli@gmail.com>",
|
---|
| 6 | "repository": "github:eemeli/yaml",
|
---|
| 7 | "description": "JavaScript parser and stringifier for YAML",
|
---|
| 8 | "keywords": [
|
---|
| 9 | "YAML",
|
---|
| 10 | "parser",
|
---|
| 11 | "stringifier"
|
---|
| 12 | ],
|
---|
| 13 | "homepage": "https://eemeli.org/yaml/",
|
---|
| 14 | "files": [
|
---|
| 15 | "browser/",
|
---|
| 16 | "dist/",
|
---|
| 17 | "util.js"
|
---|
| 18 | ],
|
---|
| 19 | "type": "commonjs",
|
---|
| 20 | "main": "./dist/index.js",
|
---|
| 21 | "browser": {
|
---|
| 22 | "./dist/index.js": "./browser/index.js",
|
---|
| 23 | "./dist/util.js": "./browser/dist/util.js",
|
---|
| 24 | "./util.js": "./browser/dist/util.js"
|
---|
| 25 | },
|
---|
| 26 | "exports": {
|
---|
| 27 | ".": {
|
---|
| 28 | "types": "./dist/index.d.ts",
|
---|
| 29 | "node": "./dist/index.js",
|
---|
| 30 | "default": "./browser/index.js"
|
---|
| 31 | },
|
---|
| 32 | "./package.json": "./package.json",
|
---|
| 33 | "./util": {
|
---|
| 34 | "types": "./dist/util.d.ts",
|
---|
| 35 | "node": "./dist/util.js",
|
---|
| 36 | "default": "./browser/dist/util.js"
|
---|
| 37 | }
|
---|
| 38 | },
|
---|
| 39 | "scripts": {
|
---|
| 40 | "build": "npm run build:node && npm run build:browser",
|
---|
| 41 | "build:browser": "rollup -c config/rollup.browser-config.mjs",
|
---|
| 42 | "build:node": "rollup -c config/rollup.node-config.mjs",
|
---|
| 43 | "clean": "git clean -fdxe node_modules",
|
---|
| 44 | "lint": "eslint src/",
|
---|
| 45 | "prettier": "prettier --write .",
|
---|
| 46 | "prestart": "npm run build:node",
|
---|
| 47 | "start": "node -i -e 'YAML=require(\"./dist/index.js\")'",
|
---|
| 48 | "test": "jest --config config/jest.config.js",
|
---|
| 49 | "test:all": "npm test && npm run test:types && npm run test:dist && npm run test:dist:types",
|
---|
| 50 | "test:browsers": "cd playground && npm test",
|
---|
| 51 | "test:dist": "npm run build:node && jest --config config/jest.config.js",
|
---|
| 52 | "test:dist:types": "tsc --allowJs --moduleResolution node --noEmit --target es5 dist/index.js",
|
---|
| 53 | "test:types": "tsc --noEmit && tsc --noEmit -p tests/tsconfig.json",
|
---|
| 54 | "docs:install": "cd docs-slate && bundle install",
|
---|
| 55 | "docs:deploy": "cd docs-slate && ./deploy.sh",
|
---|
| 56 | "docs": "cd docs-slate && bundle exec middleman server",
|
---|
| 57 | "preversion": "npm test && npm run build",
|
---|
| 58 | "prepublishOnly": "npm run clean && npm test && npm run build"
|
---|
| 59 | },
|
---|
| 60 | "browserslist": "defaults, not ie 11",
|
---|
| 61 | "prettier": {
|
---|
| 62 | "arrowParens": "avoid",
|
---|
| 63 | "semi": false,
|
---|
| 64 | "singleQuote": true,
|
---|
| 65 | "trailingComma": "none"
|
---|
| 66 | },
|
---|
| 67 | "devDependencies": {
|
---|
| 68 | "@babel/core": "^7.12.10",
|
---|
| 69 | "@babel/plugin-proposal-class-properties": "^7.12.1",
|
---|
| 70 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
|
---|
| 71 | "@babel/plugin-transform-typescript": "^7.12.17",
|
---|
| 72 | "@babel/preset-env": "^7.12.11",
|
---|
| 73 | "@rollup/plugin-babel": "^6.0.3",
|
---|
| 74 | "@rollup/plugin-replace": "^5.0.2",
|
---|
| 75 | "@rollup/plugin-typescript": "^11.0.0",
|
---|
| 76 | "@types/jest": "^29.2.4",
|
---|
| 77 | "@types/node": "^14.18.35",
|
---|
| 78 | "@typescript-eslint/eslint-plugin": "^6.4.1",
|
---|
| 79 | "@typescript-eslint/parser": "^6.4.1",
|
---|
| 80 | "babel-jest": "^29.0.1",
|
---|
| 81 | "cross-env": "^7.0.3",
|
---|
| 82 | "eslint": "^8.2.0",
|
---|
| 83 | "eslint-config-prettier": "^9.0.0",
|
---|
| 84 | "fast-check": "^2.12.0",
|
---|
| 85 | "jest": "^29.0.1",
|
---|
| 86 | "jest-ts-webcompat-resolver": "^1.0.0",
|
---|
| 87 | "prettier": "^3.0.2",
|
---|
| 88 | "rollup": "^3.7.5",
|
---|
| 89 | "tslib": "^2.1.0",
|
---|
| 90 | "typescript": "^5.0.3"
|
---|
| 91 | },
|
---|
| 92 | "engines": {
|
---|
| 93 | "node": ">= 14"
|
---|
| 94 | }
|
---|
| 95 | }
|
---|