UNPKG

5.74 kBJSONView Raw
1{
2 "name": "testdouble",
3 "version": "3.20.2",
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 "./package.json": "./package.json"
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 test/safe-esm/list.test.js",
48 "test:esm-auto-loader": "node test/esm-lib/supports-auto-load.js not || TS_NODE_IGNORE=\"node_modules,notypescript\" ./test/safe-esm/teenytest-proxy.js --helper test/helper.js test/safe-esm/replace.test.js",
49 "test:no-loader-esm": "node test/esm-lib/supports-auto-load.js || cross-env TS_NODE_IGNORE=\"node_modules,notypescript\" teenytest test/helper.js './test/safe-esm/*.no-loader-test.{mjs,js}'",
50 "test:ci": "npm run compile && run-p style test && echo \"All done!\"",
51 "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",
52 "test:example-esm-auto-loader": "node test/esm-lib/supports-auto-load.js not || npm run test:example:node-esm-auto-loader",
53 "test:example:babel": "bash ./script/run-examples babel",
54 "test:example:jest": "bash ./script/run-examples jest",
55 "test:example:jest-broken": "bash ./script/run-examples jest-broken",
56 "test:example:plain-html": "bash ./script/run-examples plain-html",
57 "test:example:node": "bash ./script/run-examples node",
58 "test:example:node-ava": "bash ./script/run-examples node-ava",
59 "test:example:node-esm": "bash ./script/run-examples node-esm",
60 "test:example:node-esm-auto-loader": "bash ./script/run-examples node-esm-auto-loader",
61 "test:example:webpack": "bash ./script/run-examples webpack",
62 "version:write": "echo \"export default '$npm_package_version'\" > src/version.js",
63 "preversion": "git pull --rebase",
64 "version": "npm run version:write && npm run compile && git add src/version.js",
65 "postversion": "git push --tags && git push && npm publish",
66 "prepare": "npm run compile"
67 },
68 "browser": {
69 "./src/replace/module/index.js": "./src/replace/module/index.browser.js",
70 "./lib/replace/module/index.js": "./lib/replace/module/index.browser.js",
71 "quibble": "./src/quibble.browser.js"
72 },
73 "standard": {
74 "globals": [
75 "td",
76 "assert",
77 "ES_SUPPORT"
78 ],
79 "ignore": [
80 "index.d.ts",
81 "examples/**"
82 ]
83 },
84 "nyc": {
85 "include": [
86 "src/**/*.js"
87 ],
88 "exclude": [
89 "examples"
90 ],
91 "all": true
92 },
93 "teenytest": {
94 "plugins": [
95 "test/support/tdify-plugin.js",
96 "teenytest-promise"
97 ]
98 },
99 "dependencies": {
100 "lodash": "^4.17.21",
101 "quibble": "^0.9.2",
102 "stringify-object-es5": "^2.5.0",
103 "theredoc": "^1.0.0"
104 },
105 "devDependencies": {
106 "@types/node": "^20.9.0",
107 "@typescript-eslint/eslint-plugin": "^6.10.0",
108 "@typescript-eslint/parser": "^6.10.0",
109 "browserify": "^17.0.0",
110 "codeclimate-test-reporter": "^0.5.1",
111 "cross-conf-env": "^1.3.0",
112 "cross-env": "^7.0.3",
113 "dedent": "^1.5.1",
114 "headerify": "^1.0.1",
115 "is-number": "^7.0.0",
116 "is-promise": "^4.0.0",
117 "mkdirp": "^3.0.1",
118 "npm-run-all": "^4.1.5",
119 "nyc": "^15.1.0",
120 "rimraf": "^5.0.5",
121 "standard": "^17.1.0",
122 "teenytest": "^6.0.5",
123 "teenytest-promise": "^1.0.0",
124 "testdouble": "^3.20.0",
125 "ts-node": "^10.9.1",
126 "tsify": "^5.0.4",
127 "typescript": "^5.2.2"
128 },
129 "directories": {
130 "doc": "./docs",
131 "example": "./examples",
132 "lib": "./lib",
133 "src": "./src"
134 },
135 "typings": "./index.d.ts",
136 "keywords": [
137 "tdd",
138 "bdd",
139 "mock",
140 "stub",
141 "spy",
142 "test double",
143 "double"
144 ],
145 "bugs": {
146 "url": "https://github.com/testdouble/testdouble.js/issues"
147 },
148 "repository": {
149 "type": "git",
150 "url": "https://github.com/testdouble/testdouble.js.git"
151 },
152 "license": "MIT",
153 "engines": {
154 "node": ">= 16"
155 }
156}