Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 3.61 KB
/
Copy pathpackage.json
File metadata and controls
94 lines (94 loc) · 3.61 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "js-path-resolver",
"version": "2.1.0",
"license": "MIT",
"main": "dist/index.js",
"types": "types/index.d.ts",
"description": "Resolves paths in Javascript objects, and provides tools to get, set, replace, or remove the resolved item",
"keywords": [
"path",
"dotprop",
"dotpath",
"javascript",
"object",
"field",
"array",
"resolve",
"code-evolve"
],
"author": "Steven Spungin",
"homepage": "https://code-evolve.com/resources/js-path-resolver",
"runkitExampleFilename": "demo/index.js",
"devDependencies": {
"esbuild": "^0.28.2",
"vue": "^3.5.0"
},
"scripts": {
"build": "npm run build:cjs && npm run build:esm && npm run build:global && npm run build:vuex && npm run build:plugin && npm run build:types",
"build:cjs": "esbuild src/index.js --bundle --format=cjs --platform=neutral --outfile=dist/index.js --banner:js=\"/*! js-path-resolver $npm_package_version | (c) 2018-present Steven Spungin | MIT */\"",
"build:esm": "esbuild src/index.js --bundle --format=esm --platform=neutral --outfile=dist/index.mjs --banner:js=\"/*! js-path-resolver $npm_package_version | (c) 2018-present Steven Spungin | MIT */\"",
"build:global": "esbuild src/index.js --bundle --format=iife --global-name=jsPathResolver --minify --outfile=dist/index.global.js --banner:js=\"/*! js-path-resolver $npm_package_version | (c) 2018-present Steven Spungin | MIT */\"",
"test": "node --test test/spec/*.mjs",
"prepublishOnly": "npm run build && npm test",
"build:vuex": "esbuild src/dot-path-mutations.js --bundle --format=cjs --platform=neutral --external:vue --outfile=dist/vuex.js --banner:js=\"/*! js-path-resolver $npm_package_version | (c) 2018-present Steven Spungin | MIT */\" && esbuild src/dot-path-mutations.js --bundle --format=esm --platform=neutral --external:vue --outfile=dist/vuex.mjs --banner:js=\"/*! js-path-resolver $npm_package_version | (c) 2018-present Steven Spungin | MIT */\"",
"build:plugin": "esbuild src/DotPathPlugin.js --bundle --format=cjs --platform=neutral --outfile=dist/vue-plugin.js --banner:js=\"/*! js-path-resolver $npm_package_version | (c) 2018-present Steven Spungin | MIT */\" && esbuild src/DotPathPlugin.js --bundle --format=esm --platform=neutral --outfile=dist/vue-plugin.mjs --banner:js=\"/*! js-path-resolver $npm_package_version | (c) 2018-present Steven Spungin | MIT */\"",
"build:types": "node scripts/build-types.mjs"
},
"exports": {
".": {
"import": {
"types": "./types/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*",
"./package.json": "./package.json",
"./vuex": {
"import": {
"types": "./types/vuex.d.mts",
"default": "./dist/vuex.mjs"
},
"require": {
"types": "./types/vuex.d.ts",
"default": "./dist/vuex.js"
}
},
"./vue-plugin": {
"import": {
"types": "./types/vue-plugin.d.mts",
"default": "./dist/vue-plugin.mjs"
},
"require": {
"types": "./types/vue-plugin.d.ts",
"default": "./dist/vue-plugin.js"
}
}
},
"files": [
"dist",
"types",
"demo",
"readme.md",
"changelog.md",
"LICENSE"
],
"peerDependencies": {
"vue": "^3"
},
"peerDependenciesMeta": {
"vue": {
"optional": true
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/code-evolve/js-path-resolver.git"
},
"bugs": {
"url": "https://github.com/code-evolve/js-path-resolver/issues"
}
}