svg-path-commander 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +169 -163
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/util.d.ts +23 -19
- package/dist/util.js +168 -162
- package/dist/util.js.map +1 -1
- package/package.json +23 -16
- package/tsdown.config.ts +0 -75
package/package.json
CHANGED
|
@@ -2,18 +2,11 @@
|
|
|
2
2
|
"name": "svg-path-commander",
|
|
3
3
|
"author": "thednp",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.2.
|
|
5
|
+
"version": "2.2.1",
|
|
6
6
|
"description": "🛹 Modern TypeScript tools for SVG",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"type": "module",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": "./dist/index.js",
|
|
15
|
-
"./util": "./dist/util.js",
|
|
16
|
-
"./package.json": "./package.json"
|
|
7
|
+
"homepage": "http://thednp.github.io/svg-path-commander",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/thednp/svg-path-commander/issues"
|
|
17
10
|
},
|
|
18
11
|
"repository": {
|
|
19
12
|
"type": "git",
|
|
@@ -27,6 +20,7 @@
|
|
|
27
20
|
"normalize",
|
|
28
21
|
"optimize",
|
|
29
22
|
"reverse",
|
|
23
|
+
"intersect",
|
|
30
24
|
"convert",
|
|
31
25
|
"absolute",
|
|
32
26
|
"relative",
|
|
@@ -34,10 +28,25 @@
|
|
|
34
28
|
"transform3d",
|
|
35
29
|
"typescript"
|
|
36
30
|
],
|
|
37
|
-
"
|
|
38
|
-
"
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"package.json",
|
|
34
|
+
"README.md",
|
|
35
|
+
"AGENTS.md",
|
|
36
|
+
"CHANGELOG.md",
|
|
37
|
+
"LICENSE"
|
|
38
|
+
],
|
|
39
|
+
"main": "./dist/index.js",
|
|
40
|
+
"browser": "./dist/index.min.js",
|
|
41
|
+
"module": "./dist/index.js",
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"type": "module",
|
|
45
|
+
"exports": {
|
|
46
|
+
".": "./dist/index.js",
|
|
47
|
+
"./util": "./dist/util.js",
|
|
48
|
+
"./package.json": "./package.json"
|
|
39
49
|
},
|
|
40
|
-
"homepage": "http://thednp.github.io/svg-path-commander",
|
|
41
50
|
"devDependencies": {
|
|
42
51
|
"@types/node": "^25.5.2",
|
|
43
52
|
"@vitest/browser": "^4.1.2",
|
|
@@ -72,9 +81,7 @@
|
|
|
72
81
|
"fix:ts": "deno lint --fix src",
|
|
73
82
|
"lint:ts": "deno lint src",
|
|
74
83
|
"check:ts": "tsc --noEmit",
|
|
75
|
-
"build_": "tsdown && pnpm build-iife && pnpm copy-docs",
|
|
76
84
|
"build": "tsdown && pnpm copy-docs",
|
|
77
|
-
"build-iife": "vite build --config vite.config.ts",
|
|
78
85
|
"copy-docs": "cp dist/index.min.js docs/index.min.js && cp dist/index.min.js.map docs/index.min.js.map"
|
|
79
86
|
}
|
|
80
87
|
}
|
package/tsdown.config.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { defineConfig, type UserConfig } from "tsdown";
|
|
2
|
-
import stripComments from "vite-plugin-strip-comments";
|
|
3
|
-
const pkg = await import("./package.json", { with: { type: "json" } }).then(
|
|
4
|
-
(m) => m.default,
|
|
5
|
-
);
|
|
6
|
-
|
|
7
|
-
const year = new Date().getFullYear();
|
|
8
|
-
const banner = `/*!
|
|
9
|
-
* SVGPathCommander v${pkg.version} (${pkg.homepage})
|
|
10
|
-
* Copyright ${year} © ${pkg.author}
|
|
11
|
-
* Licensed under MIT (https://github.com/thednp/svg-path-commander/blob/master/LICENSE)
|
|
12
|
-
*/`;
|
|
13
|
-
const miniBanner = `/*! SVGPathCommander $package v${pkg.version} | ${pkg.author} © ${year} | ${pkg.license}-License */`;
|
|
14
|
-
|
|
15
|
-
const config: UserConfig = {
|
|
16
|
-
exports: true,
|
|
17
|
-
dts: true,
|
|
18
|
-
clean: true,
|
|
19
|
-
sourcemap: true,
|
|
20
|
-
// skipNodeModulesBundle: true,
|
|
21
|
-
// outDir: "dist"
|
|
22
|
-
// plugins: [stripComments({ type: "keep-jsdoc" })],
|
|
23
|
-
globalName: "SVGPathCommander",
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default defineConfig([
|
|
27
|
-
{ // UMD
|
|
28
|
-
...config,
|
|
29
|
-
entry: "src/index.ts",
|
|
30
|
-
format: "umd",
|
|
31
|
-
minify: true,
|
|
32
|
-
target: "esnext",
|
|
33
|
-
platform: "browser",
|
|
34
|
-
banner: miniBanner.replace("$package", "UMD"),
|
|
35
|
-
plugins: [stripComments({ type: "none" })],
|
|
36
|
-
deps: {
|
|
37
|
-
alwaysBundle: ["@thednp/dommatrix"],
|
|
38
|
-
},
|
|
39
|
-
outputOptions: {
|
|
40
|
-
file: "dist/index.min.js",
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
{ // ESM
|
|
44
|
-
...config,
|
|
45
|
-
entry: "src/index.ts",
|
|
46
|
-
target: "esnext",
|
|
47
|
-
platform: "neutral",
|
|
48
|
-
treeshake: true,
|
|
49
|
-
format: ["esm"],
|
|
50
|
-
plugins: [stripComments({ type: "keep-jsdoc" })],
|
|
51
|
-
banner: banner.replace("$package", "ESM"),
|
|
52
|
-
deps: {
|
|
53
|
-
skipNodeModulesBundle: true,
|
|
54
|
-
neverBundle: ["@thednp/dommatrix"],
|
|
55
|
-
},
|
|
56
|
-
outputOptions: {
|
|
57
|
-
dir: "dist",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{ // UTIL
|
|
61
|
-
...config,
|
|
62
|
-
entry: {
|
|
63
|
-
util: "src/util.ts",
|
|
64
|
-
},
|
|
65
|
-
format: "esm",
|
|
66
|
-
platform: "neutral",
|
|
67
|
-
target: "esnext",
|
|
68
|
-
treeshake: true,
|
|
69
|
-
plugins: [stripComments({ type: "keep-jsdoc" })],
|
|
70
|
-
banner: banner.replace("$package", "UTIL"),
|
|
71
|
-
outputOptions: {
|
|
72
|
-
dir: "dist",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
]);
|