@3rg0n/breakout404-vue 0.6.0
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/LICENSE +21 -0
- package/dist/index.d.mts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +130 -0
- package/dist/index.mjs +106 -0
- package/package.json +47 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ergon Copeland
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { Breakout404Theme, Breakout404Logger } from '@3rg0n/breakout404-core';
|
|
4
|
+
export { Ball, Block, Breakout404Logger, Breakout404Options, Breakout404Theme, DIFFICULTY_SETTINGS, DifficultySettings, GameEvent, GameEventType, GameState, MAX_CANVAS_DIM, Paddle, TARGET_FRAME_MS, countActiveBlocks, createInitialState, defaultTheme, isValidRedirectUrl, mergeTheme, startOrRestart, step } from '@3rg0n/breakout404-core';
|
|
5
|
+
|
|
6
|
+
declare const Breakout404: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
7
|
+
theme: {
|
|
8
|
+
type: PropType<Partial<Breakout404Theme>>;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
difficulty: {
|
|
12
|
+
type: PropType<"easy" | "medium" | "hard">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
showScore: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
redirectUrl: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
redirectDelay: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
logger: {
|
|
28
|
+
type: PropType<Breakout404Logger>;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("complete" | "blockDestroyed")[], "complete" | "blockDestroyed", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
34
|
+
theme: {
|
|
35
|
+
type: PropType<Partial<Breakout404Theme>>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
difficulty: {
|
|
39
|
+
type: PropType<"easy" | "medium" | "hard">;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
showScore: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
redirectUrl: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
redirectDelay: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
logger: {
|
|
55
|
+
type: PropType<Breakout404Logger>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{
|
|
59
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
onBlockDestroyed?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
theme: Partial<Breakout404Theme>;
|
|
63
|
+
difficulty: "easy" | "medium" | "hard";
|
|
64
|
+
showScore: boolean;
|
|
65
|
+
redirectUrl: string;
|
|
66
|
+
redirectDelay: number;
|
|
67
|
+
logger: Breakout404Logger;
|
|
68
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
69
|
+
|
|
70
|
+
export { Breakout404, Breakout404 as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { Breakout404Theme, Breakout404Logger } from '@3rg0n/breakout404-core';
|
|
4
|
+
export { Ball, Block, Breakout404Logger, Breakout404Options, Breakout404Theme, DIFFICULTY_SETTINGS, DifficultySettings, GameEvent, GameEventType, GameState, MAX_CANVAS_DIM, Paddle, TARGET_FRAME_MS, countActiveBlocks, createInitialState, defaultTheme, isValidRedirectUrl, mergeTheme, startOrRestart, step } from '@3rg0n/breakout404-core';
|
|
5
|
+
|
|
6
|
+
declare const Breakout404: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
7
|
+
theme: {
|
|
8
|
+
type: PropType<Partial<Breakout404Theme>>;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
difficulty: {
|
|
12
|
+
type: PropType<"easy" | "medium" | "hard">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
showScore: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
redirectUrl: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
redirectDelay: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
logger: {
|
|
28
|
+
type: PropType<Breakout404Logger>;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("complete" | "blockDestroyed")[], "complete" | "blockDestroyed", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
34
|
+
theme: {
|
|
35
|
+
type: PropType<Partial<Breakout404Theme>>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
difficulty: {
|
|
39
|
+
type: PropType<"easy" | "medium" | "hard">;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
showScore: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
redirectUrl: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
redirectDelay: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
logger: {
|
|
55
|
+
type: PropType<Breakout404Logger>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{
|
|
59
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
onBlockDestroyed?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
theme: Partial<Breakout404Theme>;
|
|
63
|
+
difficulty: "easy" | "medium" | "hard";
|
|
64
|
+
showScore: boolean;
|
|
65
|
+
redirectUrl: string;
|
|
66
|
+
redirectDelay: number;
|
|
67
|
+
logger: Breakout404Logger;
|
|
68
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
69
|
+
|
|
70
|
+
export { Breakout404, Breakout404 as default };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
Breakout404: () => Breakout404,
|
|
24
|
+
DIFFICULTY_SETTINGS: () => import_breakout404_core2.DIFFICULTY_SETTINGS,
|
|
25
|
+
MAX_CANVAS_DIM: () => import_breakout404_core2.MAX_CANVAS_DIM,
|
|
26
|
+
TARGET_FRAME_MS: () => import_breakout404_core2.TARGET_FRAME_MS,
|
|
27
|
+
countActiveBlocks: () => import_breakout404_core2.countActiveBlocks,
|
|
28
|
+
createInitialState: () => import_breakout404_core2.createInitialState,
|
|
29
|
+
default: () => index_default,
|
|
30
|
+
defaultTheme: () => import_breakout404_core2.defaultTheme,
|
|
31
|
+
isValidRedirectUrl: () => import_breakout404_core2.isValidRedirectUrl,
|
|
32
|
+
mergeTheme: () => import_breakout404_core2.mergeTheme,
|
|
33
|
+
startOrRestart: () => import_breakout404_core2.startOrRestart,
|
|
34
|
+
step: () => import_breakout404_core2.step
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
|
37
|
+
|
|
38
|
+
// src/Breakout404.ts
|
|
39
|
+
var import_vue = require("vue");
|
|
40
|
+
var import_breakout404_core = require("@3rg0n/breakout404-core");
|
|
41
|
+
var Breakout404 = (0, import_vue.defineComponent)({
|
|
42
|
+
name: "Breakout404",
|
|
43
|
+
props: {
|
|
44
|
+
theme: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default: void 0
|
|
47
|
+
},
|
|
48
|
+
difficulty: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "medium"
|
|
51
|
+
},
|
|
52
|
+
showScore: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: true
|
|
55
|
+
},
|
|
56
|
+
redirectUrl: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: void 0
|
|
59
|
+
},
|
|
60
|
+
redirectDelay: {
|
|
61
|
+
type: Number,
|
|
62
|
+
default: 2e3
|
|
63
|
+
},
|
|
64
|
+
logger: {
|
|
65
|
+
type: Object,
|
|
66
|
+
default: void 0
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
emits: ["complete", "blockDestroyed"],
|
|
70
|
+
setup(props, { emit }) {
|
|
71
|
+
const containerRef = (0, import_vue.ref)(null);
|
|
72
|
+
let game = null;
|
|
73
|
+
const buildOptions = () => ({
|
|
74
|
+
theme: props.theme,
|
|
75
|
+
difficulty: props.difficulty,
|
|
76
|
+
showScore: props.showScore,
|
|
77
|
+
redirectUrl: props.redirectUrl,
|
|
78
|
+
redirectDelay: props.redirectDelay,
|
|
79
|
+
logger: props.logger,
|
|
80
|
+
onComplete: () => emit("complete"),
|
|
81
|
+
onBlockDestroyed: (remaining) => emit("blockDestroyed", remaining)
|
|
82
|
+
});
|
|
83
|
+
(0, import_vue.onMounted)(() => {
|
|
84
|
+
if (!containerRef.value) return;
|
|
85
|
+
game = new import_breakout404_core.Breakout404Game(containerRef.value, buildOptions());
|
|
86
|
+
});
|
|
87
|
+
(0, import_vue.onUnmounted)(() => {
|
|
88
|
+
game?.destroy();
|
|
89
|
+
});
|
|
90
|
+
(0, import_vue.watch)(
|
|
91
|
+
() => [props.difficulty, props.showScore, props.redirectUrl, props.redirectDelay],
|
|
92
|
+
() => game?.updateOptions(buildOptions())
|
|
93
|
+
);
|
|
94
|
+
(0, import_vue.watch)(
|
|
95
|
+
() => props.theme,
|
|
96
|
+
() => game?.updateOptions(buildOptions()),
|
|
97
|
+
{ deep: true }
|
|
98
|
+
);
|
|
99
|
+
(0, import_vue.watch)(
|
|
100
|
+
() => props.logger,
|
|
101
|
+
() => game?.updateOptions(buildOptions())
|
|
102
|
+
);
|
|
103
|
+
return () => (0, import_vue.h)("div", {
|
|
104
|
+
ref: containerRef,
|
|
105
|
+
style: {
|
|
106
|
+
width: "100%",
|
|
107
|
+
height: "100%",
|
|
108
|
+
minHeight: "400px"
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// src/index.ts
|
|
115
|
+
var import_breakout404_core2 = require("@3rg0n/breakout404-core");
|
|
116
|
+
var index_default = Breakout404;
|
|
117
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
+
0 && (module.exports = {
|
|
119
|
+
Breakout404,
|
|
120
|
+
DIFFICULTY_SETTINGS,
|
|
121
|
+
MAX_CANVAS_DIM,
|
|
122
|
+
TARGET_FRAME_MS,
|
|
123
|
+
countActiveBlocks,
|
|
124
|
+
createInitialState,
|
|
125
|
+
defaultTheme,
|
|
126
|
+
isValidRedirectUrl,
|
|
127
|
+
mergeTheme,
|
|
128
|
+
startOrRestart,
|
|
129
|
+
step
|
|
130
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// src/Breakout404.ts
|
|
2
|
+
import { defineComponent, ref, onMounted, onUnmounted, h, watch } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
Breakout404Game
|
|
5
|
+
} from "@3rg0n/breakout404-core";
|
|
6
|
+
var Breakout404 = defineComponent({
|
|
7
|
+
name: "Breakout404",
|
|
8
|
+
props: {
|
|
9
|
+
theme: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: void 0
|
|
12
|
+
},
|
|
13
|
+
difficulty: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "medium"
|
|
16
|
+
},
|
|
17
|
+
showScore: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true
|
|
20
|
+
},
|
|
21
|
+
redirectUrl: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: void 0
|
|
24
|
+
},
|
|
25
|
+
redirectDelay: {
|
|
26
|
+
type: Number,
|
|
27
|
+
default: 2e3
|
|
28
|
+
},
|
|
29
|
+
logger: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: void 0
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["complete", "blockDestroyed"],
|
|
35
|
+
setup(props, { emit }) {
|
|
36
|
+
const containerRef = ref(null);
|
|
37
|
+
let game = null;
|
|
38
|
+
const buildOptions = () => ({
|
|
39
|
+
theme: props.theme,
|
|
40
|
+
difficulty: props.difficulty,
|
|
41
|
+
showScore: props.showScore,
|
|
42
|
+
redirectUrl: props.redirectUrl,
|
|
43
|
+
redirectDelay: props.redirectDelay,
|
|
44
|
+
logger: props.logger,
|
|
45
|
+
onComplete: () => emit("complete"),
|
|
46
|
+
onBlockDestroyed: (remaining) => emit("blockDestroyed", remaining)
|
|
47
|
+
});
|
|
48
|
+
onMounted(() => {
|
|
49
|
+
if (!containerRef.value) return;
|
|
50
|
+
game = new Breakout404Game(containerRef.value, buildOptions());
|
|
51
|
+
});
|
|
52
|
+
onUnmounted(() => {
|
|
53
|
+
game?.destroy();
|
|
54
|
+
});
|
|
55
|
+
watch(
|
|
56
|
+
() => [props.difficulty, props.showScore, props.redirectUrl, props.redirectDelay],
|
|
57
|
+
() => game?.updateOptions(buildOptions())
|
|
58
|
+
);
|
|
59
|
+
watch(
|
|
60
|
+
() => props.theme,
|
|
61
|
+
() => game?.updateOptions(buildOptions()),
|
|
62
|
+
{ deep: true }
|
|
63
|
+
);
|
|
64
|
+
watch(
|
|
65
|
+
() => props.logger,
|
|
66
|
+
() => game?.updateOptions(buildOptions())
|
|
67
|
+
);
|
|
68
|
+
return () => h("div", {
|
|
69
|
+
ref: containerRef,
|
|
70
|
+
style: {
|
|
71
|
+
width: "100%",
|
|
72
|
+
height: "100%",
|
|
73
|
+
minHeight: "400px"
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// src/index.ts
|
|
80
|
+
import {
|
|
81
|
+
defaultTheme,
|
|
82
|
+
mergeTheme,
|
|
83
|
+
isValidRedirectUrl,
|
|
84
|
+
DIFFICULTY_SETTINGS,
|
|
85
|
+
MAX_CANVAS_DIM,
|
|
86
|
+
TARGET_FRAME_MS,
|
|
87
|
+
createInitialState,
|
|
88
|
+
startOrRestart,
|
|
89
|
+
step,
|
|
90
|
+
countActiveBlocks
|
|
91
|
+
} from "@3rg0n/breakout404-core";
|
|
92
|
+
var index_default = Breakout404;
|
|
93
|
+
export {
|
|
94
|
+
Breakout404,
|
|
95
|
+
DIFFICULTY_SETTINGS,
|
|
96
|
+
MAX_CANVAS_DIM,
|
|
97
|
+
TARGET_FRAME_MS,
|
|
98
|
+
countActiveBlocks,
|
|
99
|
+
createInitialState,
|
|
100
|
+
index_default as default,
|
|
101
|
+
defaultTheme,
|
|
102
|
+
isValidRedirectUrl,
|
|
103
|
+
mergeTheme,
|
|
104
|
+
startOrRestart,
|
|
105
|
+
step
|
|
106
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@3rg0n/breakout404-vue",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Vue component for Breakout404 - a Breakout-style 404 page game",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"404",
|
|
20
|
+
"breakout",
|
|
21
|
+
"game",
|
|
22
|
+
"vue",
|
|
23
|
+
"nuxt"
|
|
24
|
+
],
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org/"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"vue": ">=3.0.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@3rg0n/breakout404-core": "0.6.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"rimraf": "^5.0.10",
|
|
38
|
+
"tsup": "^8.5.1",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"vue": "^3.5.32"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
44
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
45
|
+
"clean": "rimraf dist"
|
|
46
|
+
}
|
|
47
|
+
}
|