Skip to content

Commit

Permalink
fix: update patters package with exports field
Browse files Browse the repository at this point in the history
  • Loading branch information
becomevocal committed Jul 14, 2024
1 parent 0c34a96 commit 98446f8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
12 changes: 9 additions & 3 deletions packages/patterns/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bigcommerce-design-patterns",
"description": "Sandbox for Patterns",
"version": "0.5.3",
"version": "0.5.4",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -12,8 +12,14 @@
"build": "pnpm run build:cjs && pnpm run build:es && pnpm run build:dt",
"build:cjs": "NODE_ENV=production BABEL_ENV=cjs babel --extensions \".ts,.tsx\" ./src --out-dir ./dist/cjs",
"build:es": "NODE_ENV=production BABEL_ENV=es babel --extensions \".ts,.tsx\" ./src --out-dir ./dist/es",
"build:dt": "tsc -p tsconfig.declarations.json --emitDeclarationOnly",
"tsc-trace": "tsc --traceResolution"
"build:dt": "tsc -p tsconfig.declarations.json --emitDeclarationOnly"
},
"exports": {
".": {
"import": "./dist/es/index.js",
"require": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public",
Expand Down
38 changes: 19 additions & 19 deletions packages/patterns/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"compilerOptions": {
"outDir": "./dist",
"module": "ESNext",
"lib": ["dom", "ES2015"],
"target": "ES5",
"declaration": true,
"declarationDir": "./dist",
"jsx": "react-jsx",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true
},
"include": ["src"]
}
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"lib": ["dom", "es2021"],
"outDir": "./dist",
"declaration": true,
"declarationDir": "./dist",
"jsx": "react-jsx",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"strict": true,

"resolveJsonModule": true,
"isolatedModules": true
},
"include": ["src"]
}

0 comments on commit 98446f8

Please sign in to comment.