Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
anicioalexandre committed Oct 1, 2024
1 parent b408d57 commit 890b1cb
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 72 deletions.
8 changes: 4 additions & 4 deletions packages/authentication/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { defineConfig } from 'tsup'
export default defineConfig({
name: '@baseapp-frontend/authentication',
entry: ['index.ts'],
format: ['esm', 'cjs'],
treeshake: true,
splitting: true,
dts: false,
format: ['cjs', 'esm'],
clean: true,
minify: true,
bundle: false,
splitting: false,
sourcemap: true,
external: ['react', 'react-dom'],
})
18 changes: 0 additions & 18 deletions packages/utils/client.ts

This file was deleted.

28 changes: 0 additions & 28 deletions packages/utils/index.ts

This file was deleted.

27 changes: 16 additions & 11 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@
"description": "Util functions, constants and types.",
"version": "2.5.6",
"sideEffects": false,
"main": "./dist/index.ts",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc --build",
"dev": "tsc --watch",
"build": "tsup",
"dev": "parcel watch",
"test": "jest --config ./jest.config.ts",
"lint": "eslint . --ext .tsx --ext .ts && tsc --noEmit",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
},
"exports": {
".": "./dist/index.ts",
"./client": "./dist/client.ts"
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"prepare": "pnpm build"
},
"dependencies": {
"axios": "^1.7.2",
Expand Down Expand Up @@ -75,5 +69,16 @@
"publishConfig": {
"access": "public"
},
"readme": "https://github.com/silverlogic/baseapp-frontend/blob/master/packages/utils/README.md"
"readme": "https://github.com/silverlogic/baseapp-frontend/blob/master/packages/utils/README.md",
"exports": {
"./constants/cookie": "./dist/cookie.js",
"./constants/date": "./dist/date.js",
"./constants/django": "./dist/django.js",
"./constants/events": "./dist/events.js",
"./constants/fetch": "./dist/fetch.js",
"./constants/languages": "./dist/languages.js",
"./constants/regex": "./dist/regex.js",
"./constants/token": "./dist/token.js",
"./constants/zod": "./dist/zod.js"
}
}
38 changes: 32 additions & 6 deletions packages/utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
{
"extends": "@baseapp-frontend/tsconfig/lib.json",
"compilerOptions": {
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": false,
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"declaration": true,
"composite": false,
"sourceMap": true,
"declarationMap": true,
"module": "preserve",
"noEmit": true,
"lib": ["es2022", "dom", "dom.iterable"],
"jsx": "react-jsx",
"outDir": "dist",
"types": ["node", "jest"],
"baseUrl": ".",
"paths": {
"react": ["./node_modules/@types/react"],
"react-dom": ["./node_modules/@types/react-dom"]
}
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.d.ts",
".eslintrc.js",
"*.js",
"*.jsx",
"index.d.ts",
"index.ts",
"client.ts"
"*.ts",
"*.tsx",
"*.d.ts",
"jest.config.ts"
],
"exclude": ["node_modules"]
}
20 changes: 15 additions & 5 deletions packages/utils/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@ import { defineConfig } from 'tsup'

export default defineConfig({
name: '@baseapp-frontend/utils',
entry: ['index.ts', 'client.ts'],
format: ['esm', 'cjs'],
treeshake: true,
splitting: true,
entry: {
cookie: 'constants/cookie.ts',
date: 'constants/date.ts',
django: 'constants/django.ts',
events: 'constants/events.ts',
fetch: 'constants/fetch.ts',
languages: 'constants/languages.ts',
regex: 'constants/regex.ts',
token: 'constants/token.ts',
zod: 'constants/zod.ts',
},
dts: true,
format: ['cjs', 'esm'],
clean: true,
minify: true,
bundle: false,
splitting: false,
sourcemap: true,
external: ['react', 'react-dom'],
})

0 comments on commit 890b1cb

Please sign in to comment.