UNPKG

5.21 kBJSONView Raw
1{
2 "name": "testdouble",
3 "version": "3.17.0",
4 "description": "A minimal test double library for TDD with JavaScript",
5 "homepage": "https://github.com/testdouble/testdouble.js",
6 "author": {
7 "name": "Justin Searls",
8 "email": "justin@testdouble.com",
9 "url": "http://testdouble.com"
10 },
11 "main": "lib/index.js",
12 "exports": {
13 ".": {
14 "types": "./index.d.ts",
15 "require": "./lib/index.js",
16 "import": "./lib/index.mjs"
17 },
18 "./": "./"
19 },
20 "files": [
21 "src",
22 "lib",
23 "dist",
24 "index.d.ts"
25 ],
26 "config": {
27 "build_file": "dist/testdouble.js"
28 },
29 "scripts": {
30 "clean": "rimraf dist lib coverage",
31 "clean:hard": "npm run clean && rimraf node_modules \"examples/*/node_modules\"",
32 "postclean": "mkdirp dist",
33 "compile:browser": "cross-conf-env browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p [ tsify --project tsconfig-browser.json ] -p headerify",
34 "compile:node": "tsc",
35 "compile:esm": "cp src/index.mjs lib/index.mjs",
36 "precompile": "npm run clean",
37 "compile": "run-s compile:node compile:browser compile:esm",
38 "cover": "nyc --reporter=lcov --reporter=text-summary --reporter=html npm test",
39 "cover:report": "codeclimate-test-reporter < coverage/lcov.info",
40 "cover:ci": "if test \"`node -v | awk '{print substr($1, 2, 1)}'`\" = \"8\" ; then run-s cover cover:report ; fi",
41 "style": "run-p style:js style:ts",
42 "style:js": "standard --fix",
43 "style:ts": "standard --fix --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin \"**/*.ts\"",
44 "test": "run-s test:unit test:safe test:esm test:no-loader-esm test:example",
45 "test:unit": "teenytest --helper test/helper.js \"test/unit/**/*.test.{js,ts}\"",
46 "test:safe": "teenytest --helper test/helper.js \"test/safe/**/*.test.{js,ts}\"",
47 "test:esm": "cross-env NODE_OPTIONS=\"--loader=quibble\" TS_NODE_IGNORE=\"node_modules,notypescript\" ./test/safe-esm/teenytest-proxy.js --helper test/helper.js test/safe-esm/replace.test.js",
48 "test:no-loader-esm": "cross-env TS_NODE_IGNORE=\"node_modules,notypescript\" teenytest test/helper.js './test/safe-esm/*.no-loader-test.{mjs,js}'",
49 "test:ci": "npm run compile && run-p style test && echo \"All done!\"",
50 "test:example": "run-s test:example:babel test:example:jest test:example:jest-broken test:example:node test:example:node-ava test:example:node-esm",
51 "test:example:babel": "bash ./script/run-examples babel",
52 "test:example:jest": "bash ./script/run-examples jest",
53 "test:example:jest-broken": "bash ./script/run-examples jest-broken",
54 "test:example:plain-html": "bash ./script/run-examples plain-html",
55 "test:example:node": "bash ./script/run-examples node",
56 "test:example:node-ava": "bash ./script/run-examples node-ava",
57 "test:example:node-esm": "bash ./script/run-examples node-esm",
58 "test:example:webpack": "bash ./script/run-examples webpack",
59 "version:write": "echo \"export default '$npm_package_version'\" > src/version.js",
60 "preversion": "git pull --rebase",
61 "version": "npm run version:write && npm run compile && git add src/version.js",
62 "postversion": "git push --tags && git push && npm publish",
63 "prepare": "npm run compile"
64 },
65 "browser": {
66 "./src/replace/module/index.js": "./src/replace/module/index.browser.js",
67 "./lib/replace/module/index.js": "./lib/replace/module/index.browser.js",
68 "quibble": "./src/quibble.browser.js"
69 },
70 "standard": {
71 "globals": [
72 "td",
73 "assert",
74 "ES_SUPPORT"
75 ],
76 "ignore": [
77 "index.d.ts",
78 "examples/**"
79 ]
80 },
81 "nyc": {
82 "include": [
83 "src/**/*.js"
84 ],
85 "exclude": [
86 "examples"
87 ],
88 "all": true
89 },
90 "teenytest": {
91 "plugins": [
92 "test/support/tdify-plugin.js",
93 "teenytest-promise"
94 ]
95 },
96 "dependencies": {
97 "lodash": "^4.17.21",
98 "quibble": "^0.6.17",
99 "stringify-object-es5": "^2.5.0",
100 "theredoc": "^1.0.0"
101 },
102 "devDependencies": {
103 "@types/node": "^18.13.0",
104 "@typescript-eslint/eslint-plugin": "^5.51.0",
105 "@typescript-eslint/parser": "^5.51.0",
106 "browserify": "^17.0.0",
107 "codeclimate-test-reporter": "^0.5.1",
108 "cross-conf-env": "^1.3.0",
109 "cross-env": "^7.0.3",
110 "dedent": "^0.7.0",
111 "headerify": "^1.0.1",
112 "is-number": "^7.0.0",
113 "is-promise": "^4.0.0",
114 "mkdirp": "^2.1.3",
115 "npm-run-all": "^4.1.5",
116 "nyc": "^15.1.0",
117 "rimraf": "^4.1.2",
118 "standard": "^17.0.0",
119 "teenytest": "^6.0.4",
120 "teenytest-promise": "^1.0.0",
121 "testdouble": "^3.16.8",
122 "ts-node": "^10.9.1",
123 "tsify": "^5.0.4",
124 "typescript": "^4.9.5"
125 },
126 "directories": {
127 "doc": "./docs",
128 "example": "./examples",
129 "lib": "./lib",
130 "src": "./src"
131 },
132 "typings": "./index.d.ts",
133 "keywords": [
134 "tdd",
135 "bdd",
136 "mock",
137 "stub",
138 "spy",
139 "test double",
140 "double"
141 ],
142 "bugs": {
143 "url": "https://github.com/testdouble/testdouble.js/issues"
144 },
145 "repository": {
146 "type": "git",
147 "url": "https://github.com/testdouble/testdouble.js.git"
148 },
149 "license": "MIT",
150 "engines": {
151 "node": ">= 14"
152 }
153}