Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.1.5 fix publish issue #206

Merged
merged 5 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs-md/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ id: changelog

# Changelog

##### 4.1.5

- TODO: Switch to pnpm
- Fix issue not publishing correctly resulting to incorrect imports
- Switch build to tsup

##### 4.1.4

- Moved all deps to devdeps
Expand Down
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "common-utils-pkg",
"version": "4.1.4",
"version": "4.1.5",
"description": "A package of commonly used JavaScript utilities.",
"keywords": [
"utilities",
Expand All @@ -20,16 +20,17 @@
},
"license": "ISC",
"author": "iamdevlinph",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/",
"!dist/**/*.test.*",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsc --noEmit false",
"build": "rm -rf dist/; tsup",
"docu:md:docusaurus": "node scripts/md-generate.mjs",
"docu:create": "node_modules/documentation/bin/documentation.js build src/index.ts --pe ts --re ts --re d.ts -f json > docs/source.json && node scripts/documentation.js",
"docu:serve": "yarn docu:create && node_modules/http-server/bin/http-server docs/ -o",
Expand All @@ -49,7 +50,9 @@
"docusaurus:write-translations": "docusaurus write-translations",
"docusaurus:write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {},
"dependencies": {
"lz-string": "1.4.4"
},
"devDependencies": {
"@docusaurus/core": "3.1.1",
"@docusaurus/module-type-aliases": "3.1.1",
Expand All @@ -63,23 +66,23 @@
"@typescript-eslint/parser": "7.3.1",
"clsx": "2.0.0",
"documentation": "13.2.5",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-simple-import-sort": "8.0.0",
"eslint": "8.57.0",
"http-server": "14.1.1",
"husky": "8.0.1",
"jest": "^29.0.3",
"lint-staged": "13.0.3",
"lz-string": "1.4.4",
"mock-local-storage": "1.1.23",
"prettier": "3.2.5",
"prism-react-renderer": "2.3.0",
"react-dom": "18.0.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"shell-quote": "1.7.3",
"ts-jest": "^29.1.2",
"typescript": "5.2.2"
"tsup": "^8.3.5",
"typescript": "5.7.2"
},
"browserslist": {
"production": [
Expand Down
10 changes: 10 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'], // Build for commonJS and ESmodules
dts: true, // Generate declaration file (.d.ts)
splitting: false,
sourcemap: true,
clean: true,
});
Loading
Loading