Skip to content

Commit

Permalink
update WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tttp committed Sep 14, 2024
1 parent 6d594ef commit db8d1ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
{
"version": "5.2.3",
"version": "5.2.4",
"license": "AGPL-3.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist"
],
"scripts": {
"_build": "cross-env NODE_ENV=production tsup-node",
"build": "node src/esbuild.mjs",
"build": "cross-env NODE_ENV=production tsup-node",
"esbuild": "node src/esbuild.mjs",
"build:dev": " cross-env NODE_ENV=development tsup-node",
"coverage": "vitest run --coverage",
"dev": "node-dev dist/main.js",
Expand All @@ -34,14 +42,9 @@
},
"name": "@proca/queue",
"author": "Marcin Koziej",
"module": "dist/queue.esm.js",
"size-limit": [
{
"path": "dist/queue.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/queue.esm.js",
"path": "dist/index.mjs",
"limit": "10 KB"
}
],
Expand Down
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const tsup: Options = {
bundle: true,
skipNodeModulesBundle: true,
entryPoints: ["src/index.ts"],
outExtension: ({ format }) => ({ js: format === 'cjs' ? '.cjs' : '.mjs' }),
watch: env === "development",
target: "node16",
};

0 comments on commit db8d1ad

Please sign in to comment.