|
| 1 | +{ |
| 2 | + "name": "{{.module}}", |
| 3 | + "version": "{{.version}}", |
| 4 | + "description": "{{.description}}", |
| 5 | + "keywords": [ |
| 6 | + "widl", |
| 7 | + "codegen" |
| 8 | + ], |
| 9 | + "engines": { |
| 10 | + "node": ">=8.5" |
| 11 | + }, |
| 12 | + "main": "./dist/cjs/index.js", |
| 13 | + "module": "./dist/esm/index.js", |
| 14 | + "types": "./dist/types/index.d.ts", |
| 15 | + "browser": "./dist/standalone.js", |
| 16 | + "browser-min": "./dist/standalone.min.js", |
| 17 | + "exports": { |
| 18 | + ".": "./dist/cjs/index.js", |
| 19 | + "./assemblyscript": "./dist/cjs/assemblyscript/index.js", |
| 20 | + "./go": "./dist/cjs/go/index.js", |
| 21 | + "./rust": "./dist/cjs/rust/index.js", |
| 22 | + "./tinygo": "./dist/cjs/tinygo/index.js", |
| 23 | + "./utils": "./dist/cjs/utils/index.js" |
| 24 | + }, |
| 25 | + "files": [ |
| 26 | + "templates", |
| 27 | + "dist", |
| 28 | + "README.md", |
| 29 | + "test", |
| 30 | + "src", |
| 31 | + "docs" |
| 32 | + ], |
| 33 | + "sideEffects": false, |
| 34 | + "scripts": { |
| 35 | + "prebuild": "npm run clean", |
| 36 | + "build": "npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:umd:min", |
| 37 | + "build:esm": "tsc --module es2015 --outDir dist/esm", |
| 38 | + "build:cjs": "tsc --declaration --declarationMap --declarationDir dist/types ", |
| 39 | + "build:umd": "rollup --config config/rollup.config.js", |
| 40 | + "build:umd:min": "cd dist && uglifyjs --compress --mangle --source-map --comments --output standalone.min.js -- standalone.js", |
| 41 | + "watch": "tsc -w", |
| 42 | + "clean": "shx rm -rf dist", |
| 43 | + "docs": "typedoc --theme minimal --exclude \"**/src/**/__tests__/*.*\" --out docs src/", |
| 44 | + "test": "jest -c ./config/jest.config.js --passWithNoTests", |
| 45 | + "test:watch": "npm t -- --watch", |
| 46 | + "test:coverage": "npm t -- --coverage", |
| 47 | + "test:ci": "npm t -- --ci", |
| 48 | + "style": "npm run format -- --list-different && npm run lint", |
| 49 | + "style:fix": "npm run format:fix && npm run lint:fix", |
| 50 | + "format": "prettier \"src/**/*.{ts,tsx,js,jsx,css,scss,sass,less,md}\"", |
| 51 | + "format:fix": "npm run format -- --write", |
| 52 | + "lint": "eslint -c ./config/.eslintrc.json src --ext .ts", |
| 53 | + "lint:fix": "npm run lint -- --fix", |
| 54 | + "prerelease": "npm run build", |
| 55 | + "release": "standard-version", |
| 56 | + "release:github": "git push --no-verify --follow-tags origin master", |
| 57 | + "release:npm": "npm publish --access public", |
| 58 | + "release:preflight": "npm pack --dry-run" |
| 59 | + }, |
| 60 | + "dependencies": { |
| 61 | + "@wapc/widl": "^0.0.6" |
| 62 | + }, |
| 63 | + "devDependencies": { |
| 64 | + "@rollup/plugin-commonjs": "^17.1.0", |
| 65 | + "@rollup/plugin-node-resolve": "^11.2.0", |
| 66 | + "@types/jest": "23.3.10", |
| 67 | + "@typescript-eslint/eslint-plugin": "^4.22.0", |
| 68 | + "@typescript-eslint/parser": "^4.22.0", |
| 69 | + "eslint": "^7.22.0", |
| 70 | + "jest": "26.6.3", |
| 71 | + "jest-watch-typeahead": "^0.6.1", |
| 72 | + "prettier": "^2.2.1", |
| 73 | + "rollup": "2.41.3", |
| 74 | + "shx": "0.3.3", |
| 75 | + "standard-version": "4.4.0", |
| 76 | + "ts-jest": "26.5.3", |
| 77 | + "tslib": "^2.1.0", |
| 78 | + "typedoc": "0.20.32", |
| 79 | + "typescript": "4.1.3", |
| 80 | + "uglify-js": "^3.13.1", |
| 81 | + "webpack-config-utils": "2.3.1" |
| 82 | + } |
| 83 | +} |
0 commit comments