Released 1.0.3

This commit is contained in:
Warky 2025-01-13 22:03:33 +02:00
parent 9f5b743e15
commit 38edf8def5
5 changed files with 69 additions and 33 deletions

View File

@ -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"
}, }
} }

View File

@ -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

View File

@ -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",

View File

@ -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";

View File

@ -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",
}) }),
] ],
}); });