-
Notifications
You must be signed in to change notification settings - Fork 21
/
package.json
148 lines (148 loc) · 4.08 KB
/
package.json
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"name": "@imgix/js-core",
"description": "A JavaScript client library for generating image URLs with imgix",
"version": "3.8.0",
"repository": "https://github.com/imgix/js-core",
"license": "BSD-2-Clause",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"dependencies": {
"js-base64": "~3.7.0",
"md5": "^2.2.1",
"ufo": "^1.0.0"
},
"devDependencies": {
"@babel/core": "7.22.5",
"@babel/preset-env": "7.22.5",
"@babel/register": "7.22.5",
"@google/semantic-release-replace-plugin": "1.2.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "9.0.2",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "8.1.0",
"@semantic-release/npm": "9.0.2",
"@semantic-release/release-notes-generator": "10.0.3",
"benchmark": "2.1.4",
"esm": "3.2.25",
"mocha": "8.4.0",
"prettier": "2.8.8",
"rollup": "3.26.2",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-commonjs": "10.1.0",
"@rollup/plugin-node-resolve": "15.1.0",
"rollup-plugin-uglify": "6.0.4",
"sinon": "15.1.0",
"tsd": "0.28.1",
"typescript": "5.1.3",
"uglify-js": "3.17.4"
},
"scripts": {
"assert_version": "node assert_version.cjs",
"build": "rollup -c --bundleConfigAsCjs",
"compile": "cp ./types/index.d.ts ./dist/index.d.ts && tsc",
"dev": "rollup -c -w",
"prepare": "npm run build && npm run compile && npm run assert_version",
"prepublishOnly": "npm run build && npm run compile && npm run assert_version",
"pretest": "npm run build",
"pretty": "prettier --write '{src,test,types}/**/*.{js,ts}'",
"test": "mocha --require esm --recursive ./test/*.js && npm run tsd",
"test:watch": "mocha --require esm --recursive ./test/*.js --watch",
"test:performance": "mocha --require esm --recursive test/performance/*.js",
"tsd": "echo Running tsd; tsd",
"release:dryRun": "npx node-env-run --exec 'semantic-release --dryRun'",
"release:publish": "semantic-release"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"README.md",
"src"
],
"tsd": {
"directory": "types"
},
"release": {
"branches": [
"main",
{
"name": "next",
"prerelease": "rc"
},
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@google/semantic-release-replace-plugin",
{
"replacements": [
{
"files": [
"src/constants.js"
],
"from": "const VERSION = '.*'",
"to": "const VERSION = '${nextRelease.version}'",
"results": [
{
"file": "src/constants.js",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
}
]
}
],
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"src/**",
"dist/**",
"package.json",
"changelog.md"
],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes} [skip ci]"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/imgix-js-core.umd.js",
"label": "Standalone UMD build"
},
{
"path": "dist/index.cjs.js",
"label": "Standalone CJS build"
},
{
"path": "dist/index.esm.js",
"label": "Standalone ESM build"
},
{
"path": "dist/index.d.ts",
"label": "Type declarations file"
}
]
}
]
]
}
}