mirror of
https://github.com/Warky-Devs/artemis-kit.git
synced 2025-05-19 03:37:30 +00:00
Released 1.0.3
This commit is contained in:
parent
9f5b743e15
commit
38edf8def5
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode" ,
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": "explicit"
|
||||||
},
|
}
|
||||||
}
|
}
|
@ -1,5 +1,11 @@
|
|||||||
# @warkypublic/artemis-kit
|
# @warkypublic/artemis-kit
|
||||||
|
|
||||||
|
## 1.0.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated export for object and dataqueue.
|
||||||
|
|
||||||
## 1.0.2
|
## 1.0.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
24
package.json
24
package.json
@ -1,16 +1,36 @@
|
|||||||
{
|
{
|
||||||
"name": "@warkypublic/artemis-kit",
|
"name": "@warkypublic/artemis-kit",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "A comprehensive TypeScript/JavaScript utility library focused on precision and efficiency.",
|
"description": "A comprehensive TypeScript/JavaScript utility library focused on precision and efficiency.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./src/index.ts",
|
||||||
"types": "./src/index.ts",
|
"types": "./src/index.ts",
|
||||||
|
"exports": {
|
||||||
|
".": "./src/index.ts",
|
||||||
|
"./dataqueue": "./src/dataqueue/index.ts",
|
||||||
|
"./object": "./src/object/index.ts"
|
||||||
|
},
|
||||||
|
"typesVersions": {
|
||||||
|
"*": {
|
||||||
|
"dataqueue": [
|
||||||
|
"./src/dataqueue/index.ts"
|
||||||
|
],
|
||||||
|
"object": [
|
||||||
|
"./src/object/index.ts"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts"
|
"types": "./dist/index.d.ts",
|
||||||
|
"exports": {
|
||||||
|
".": "./dist/index.ts",
|
||||||
|
"./dataqueue": "./dist/dataqueue.js",
|
||||||
|
"./object": "./dist/object.js"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
@ -3,6 +3,6 @@ export * from "./strings";
|
|||||||
export * from "./mime";
|
export * from "./mime";
|
||||||
export * from "./promise";
|
export * from "./promise";
|
||||||
export * from "./i18n";
|
export * from "./i18n";
|
||||||
export * from "./dataqueue";
|
|
||||||
//export * from './logger'
|
//export * from './logger'
|
||||||
export * from "./dom";
|
export * from "./dom";
|
||||||
|
@ -1,34 +1,44 @@
|
|||||||
import { defineConfig } from 'vite';
|
/* eslint-disable no-undef */
|
||||||
import { resolve } from 'path';
|
import { defineConfig } from "vite";
|
||||||
import dts from 'vite-plugin-dts'; // You'll need to install this
|
import { resolve } from "path";
|
||||||
|
import dts from "vite-plugin-dts"; // You'll need to install this
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
lib: {
|
lib: {
|
||||||
entry: resolve(__dirname, 'src/index.ts'),
|
entry: {
|
||||||
formats: ['es'],
|
index: resolve(__dirname, "src/index.ts"),
|
||||||
fileName: 'index'
|
object: resolve(__dirname, "src/object/index.ts"),
|
||||||
|
dataqueue: resolve(__dirname, "src/dataqueue/index.ts"),
|
||||||
|
},
|
||||||
|
formats: ["es"],
|
||||||
|
fileName: (format, entryname) => {
|
||||||
|
if (format === "es") {
|
||||||
|
return `${entryname}.js`;
|
||||||
|
}
|
||||||
|
return `${entryname}.${format}.js`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: [
|
external: [
|
||||||
'fs',
|
"fs",
|
||||||
'path',
|
"path",
|
||||||
'url',
|
"url",
|
||||||
'chalk',
|
"chalk",
|
||||||
'semver',
|
"semver",
|
||||||
'yargs',
|
"yargs",
|
||||||
'yargs/helpers'
|
"yargs/helpers",
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
target: 'node16',
|
target: "node16",
|
||||||
outDir: 'dist',
|
outDir: "dist",
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
sourcemap: true
|
sourcemap: true,
|
||||||
}, plugins: [
|
},
|
||||||
|
plugins: [
|
||||||
dts({
|
dts({
|
||||||
insertTypesEntry: true,
|
insertTypesEntry: true,
|
||||||
outDir: 'dist'
|
outDir: "dist",
|
||||||
})
|
}),
|
||||||
]
|
],
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user