UNPKG

3.35 kBJSONView Raw
1{
2 "name": "yaml",
3 "version": "2.4.5",
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 "bin": "./bin.mjs",
22 "browser": {
23 "./dist/index.js": "./browser/index.js",
24 "./dist/util.js": "./browser/dist/util.js",
25 "./util.js": "./browser/dist/util.js"
26 },
27 "exports": {
28 ".": {
29 "types": "./dist/index.d.ts",
30 "node": "./dist/index.js",
31 "default": "./browser/index.js"
32 },
33 "./package.json": "./package.json",
34 "./util": {
35 "types": "./dist/util.d.ts",
36 "node": "./dist/util.js",
37 "default": "./browser/dist/util.js"
38 }
39 },
40 "scripts": {
41 "build": "npm run build:node && npm run build:browser",
42 "build:browser": "rollup -c config/rollup.browser-config.mjs",
43 "build:node": "rollup -c config/rollup.node-config.mjs",
44 "clean": "git clean -fdxe node_modules",
45 "lint": "eslint src/",
46 "prettier": "prettier --write .",
47 "prestart": "rollup --sourcemap -c config/rollup.node-config.mjs",
48 "start": "node --enable-source-maps -i -e 'YAML=require(\"./dist/index.js\");const{parse,parseDocument,parseAllDocuments}=YAML'",
49 "test": "jest --config config/jest.config.js",
50 "test:all": "npm test && npm run test:types && npm run test:dist && npm run test:dist:types",
51 "test:browsers": "cd playground && npm test",
52 "test:dist": "npm run build:node && jest --config config/jest.config.js",
53 "test:dist:types": "tsc --allowJs --moduleResolution node --noEmit --target es5 dist/index.js",
54 "test:types": "tsc --noEmit && tsc --noEmit -p tests/tsconfig.json",
55 "docs:install": "cd docs-slate && bundle install",
56 "predocs:deploy": "node docs/prepare-docs.mjs",
57 "docs:deploy": "cd docs-slate && ./deploy.sh",
58 "predocs": "node docs/prepare-docs.mjs",
59 "docs": "cd docs-slate && bundle exec middleman server",
60 "preversion": "npm test && npm run build",
61 "prepublishOnly": "npm run clean && npm test && npm run build"
62 },
63 "browserslist": "defaults, not ie 11",
64 "prettier": {
65 "arrowParens": "avoid",
66 "semi": false,
67 "singleQuote": true,
68 "trailingComma": "none"
69 },
70 "devDependencies": {
71 "@babel/core": "^7.12.10",
72 "@babel/plugin-transform-class-properties": "^7.23.3",
73 "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
74 "@babel/plugin-transform-typescript": "^7.12.17",
75 "@babel/preset-env": "^7.12.11",
76 "@rollup/plugin-babel": "^6.0.3",
77 "@rollup/plugin-replace": "^5.0.2",
78 "@rollup/plugin-typescript": "^11.0.0",
79 "@types/jest": "^29.2.4",
80 "@types/node": "^20.11.20",
81 "@typescript-eslint/eslint-plugin": "^7.0.2",
82 "@typescript-eslint/parser": "^7.0.2",
83 "babel-jest": "^29.0.1",
84 "cross-env": "^7.0.3",
85 "eslint": "^8.2.0",
86 "eslint-config-prettier": "^9.0.0",
87 "fast-check": "^2.12.0",
88 "jest": "^29.0.1",
89 "jest-ts-webcompat-resolver": "^1.0.0",
90 "prettier": "^3.0.2",
91 "rollup": "^4.12.0",
92 "tslib": "^2.1.0",
93 "typescript": "^5.0.3"
94 },
95 "engines": {
96 "node": ">= 14"
97 }
98}