-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
65 lines (65 loc) · 2.7 KB
/
package.json
File metadata and controls
65 lines (65 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"name": "serialize-function",
"version": "1.0.10",
"description": "Serializes javascript functions to a JSON-friendly format",
"author": "Evan Kaufman <evan@evanskaufman.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/EvanK/npm-serialize-function.git"
},
"bugs": {
"url": "https://github.com/EvanK/npm-serialize-function/issues"
},
"homepage": "https://github.com/EvanK/npm-serialize-function",
"keywords": [
"function",
"serialize",
"json"
],
"files": [
"dist/*",
"lib/*"
],
"exports": {
"import": "./dist/import.mjs",
"require": "./dist/main.js"
},
"browser": "./lib/main.js",
"scripts": {
"concat-browser": "cat src/001-digest-browser.mjs src/002-hasher.mjs src/003-main.mjs > build-main-browser.mjs",
"concat-node": "cat src/001-digest-node.mjs src/002-hasher.mjs src/003-main.mjs > build-main-node.mjs",
"transpile-browser": "babel build-main-browser.mjs --no-babelrc --out-file lib/main.js --config-file ./.babelrc.esm.json",
"transpile-node": "babel build-main-node.mjs --no-babelrc --out-file dist/main.js --config-file ./.babelrc.cjs.json",
"build-browser-dev": "npm run concat-browser && npm run transpile-browser",
"build-node-dev": "npm run concat-node && npm run transpile-node && cp src/import.mjs dist/",
"build-browser": "npm run concat-browser && npm run transpile-browser -- --minified --no-comments",
"build-node": "npm run concat-node && npm run transpile-node -- --minified --no-comments && cp src/import.mjs dist/",
"dist-dev": "npm run build-browser-dev && npm run build-node-dev",
"dist": "npm run build-browser && npm run build-node",
"lint": "eslint .",
"prepare-test-browser": "sed '/TEST_SPEC_END/e cat tests/general.spec.js' tests/003-browser.test.html > ./003-browser.test.html",
"test-browser": "node ./tests/003-puppeteer.script.mjs",
"prepare-test-node": "cat tests/001-general.test.template.cjs tests/general.spec.js > tests/001-general.ignore.test.cjs",
"test-node": "mocha ./tests/**.test.*js",
"test": "npm run prepare-test-browser && npm run test-browser && npm run prepare-test-node && npm run test-node"
},
"devDependencies": {
"@babel/cli": "^7.28.6",
"@babel/core": "^7.29.0",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6",
"@babel/preset-env": "^7.29.0",
"@eslint/js": "^10.0.1",
"@fastify/static": "^9.0.0",
"@stylistic/eslint-plugin": "^5.10.0",
"chai": "^6.2.2",
"eslint": "^10.0.3",
"eslint-plugin-mocha": "^11.2.0",
"fastify": "^5.8.2",
"globals": "^17.4.0",
"mocha": "^11.7.5",
"proxyquire": "^2.1.3",
"puppeteer": "^24.38.0",
"sinon": "^21.0.2"
}
}