Skip to content

Commit

Permalink
fix(clerk-sdk-node): Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosdouvlis committed Dec 13, 2022
1 parent 6a6a4cf commit d2685e3
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/sdk-node/cjs/instance.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from '../dist/cjs/instance';
export { default } from '../dist/cjs/instance';
export * from '../dist/types/instance';
export { default } from '../dist/types/instance';
2 changes: 1 addition & 1 deletion packages/sdk-node/cjs/instance.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('../dist/cjs/instance');
module.exports = require('./../dist/instance');
3 changes: 1 addition & 2 deletions packages/sdk-node/esm/instance.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from '../dist/esm/instance';
export { default } from '../dist/esm/instance';
export * from '../dist/types/instance';
3 changes: 2 additions & 1 deletion packages/sdk-node/esm/instance.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
module.exports = require('../dist/esm/instance');
export * from './../dist/instance.mjs';
// export { default } from './../dist/instance';
2 changes: 2 additions & 0 deletions packages/sdk-node/instance/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from '../dist/types/instance';
// export { default } from '../dist/types/instance';
23 changes: 20 additions & 3 deletions packages/sdk-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,34 @@
"type": "commonjs",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/index.js",
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"module": "./dist/index.mjs"
},
"./instance": {
"types": "./dist/types/instance.d.ts",
"require": "./dist/instance.js",
"import": "./dist/instance.mjs",
"module": "./dist/instance.mjs"
},
"./esm/instance": {
"types": "./dist/types/instance.d.ts",
"default": "./dist/instance.mjs"
},
"./cjs/instance": {
"types": "./dist/types/instance.d.ts",
"default": "./dist/instance.js"
}
},
"files": [
"dist"
"dist",
"esm",
"cjs",
"instance"
],
"engines": {
"node": ">=14"
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk-node/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export default defineConfig(overrideOptions => {

return {
entry: ['src/index.ts', 'src/instance.ts'],
// onSuccess: 'tsc',
onSuccess: 'tsc',
clean: true,
minify: isProd,
// minify: isProd,
minify: false,
sourcemap: true,
dts: true,
format: ['cjs', 'esm'],
define: {
PACKAGE_NAME: `"${name}"`,
Expand Down

0 comments on commit d2685e3

Please sign in to comment.