Skip to content

Commit

Permalink
fix: use .js extension for esm bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Aug 6, 2022
1 parent f6ec7dc commit a43204d
Show file tree
Hide file tree
Showing 42 changed files with 498 additions and 219 deletions.
8 changes: 4 additions & 4 deletions packages/saas-ui-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./services/supabase": {
"require": "./dist/supabase.js",
"import": "./dist/supabase.modern.mjs"
"import": "./dist/supabase.modern.js"
},
"./services/magic-link": {
"require": "./dist/magic-link.js",
"import": "./dist/magic-link.modern.mjs"
"import": "./dist/magic-link.modern.js"
},
"./src": {
"default": "./src/index.ts"
Expand All @@ -27,7 +27,7 @@
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/saas-ui-auth/services/magic-link/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"main": "dist/magic-link.js",
"module": "dist/magic-link.modern.mjs"
"module": "dist/magic-link.modern.js"
}
2 changes: 1 addition & 1 deletion packages/saas-ui-auth/services/supabase/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"main": "dist/supabase.js",
"module": "dist/supabase.modern.mjs"
"module": "dist/supabase.modern.js"
}
4 changes: 2 additions & 2 deletions packages/saas-ui-banner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-clerk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"source": "src/index.ts",
"exports": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-collapse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"default": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-data-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
13 changes: 11 additions & 2 deletions packages/saas-ui-forms/ajv/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
{
"name": "ajv",
"name": "ajv-resolver",
"description": "Saas UI Forms field resolver: ajv",
"version": "1.0.0",
"private": true,
"exports": {
".": {
"require": "./../dist/ajv/index.js",
"import": "./../dist/ajv/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"source": "./src/index.ts",
"main": "../dist/ajv/index.js",
"module": "../dist/ajv/index.modern.mjs",
"module": "../dist/ajv/index.modern.js",
"types": "../dist/ajv/index.d.ts",
"author": "Eelco Wiersma <eelco@appulse.nl>",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions packages/saas-ui-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
},
"./yup": {
"require": "./dist/yup/index.js",
"import": "./dist/yup/index.modern.mjs"
"import": "./dist/yup/index.modern.js"
},
"./yup/src": {
"default": "./yup/src/index.ts"
},
"./zod": {
"require": "./dist/zod/index.js",
"import": "./dist/zod/index.modern.mjs"
"import": "./dist/zod/index.modern.js"
},
"./zod/src": {
"default": "./zod/src/index.ts"
},
"./ajv": {
"require": "./dist/ajv/index.js",
"import": "./dist/ajv/index.modern.mjs"
"import": "./dist/ajv/index.modern.js"
},
"./ajv/src": {
"default": "./ajv/src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
13 changes: 11 additions & 2 deletions packages/saas-ui-forms/yup/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
{
"name": "yup",
"name": "yup-resolver",
"description": "Saas UI Forms field resolver: yup",
"version": "1.0.0",
"private": true,
"exports": {
".": {
"require": "./../dist/yup/index.js",
"import": "./../dist/yup/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"source": "./src/index.ts",
"main": "../dist/yup/index.js",
"module": "../dist/yup/index.modern.mjs",
"module": "../dist/yup/index.modern.js",
"types": "../dist/yup/index.d.ts",
"author": "Eelco Wiersma <eelco@appulse.nl>",
"license": "MIT",
Expand Down
13 changes: 11 additions & 2 deletions packages/saas-ui-forms/zod/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
{
"name": "zod",
"name": "zod-resolver",
"description": "Saas UI Forms field resolver: zod",
"version": "1.0.0",
"private": true,
"exports": {
".": {
"require": "./../dist/zod/index.js",
"import": "./../dist/zod/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"source": "./src/index.ts",
"main": "../dist/zod/index.js",
"module": "../dist/zod/index.modern.mjs",
"module": "../dist/zod/index.modern.js",
"types": "../dist/zod/index.d.ts",
"author": "Eelco Wiersma <eelco@appulse.nl>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-hotkeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-input-right-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-modals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/saas-ui-nprogress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs"
"import": "./dist/index.modern.js"
},
"./src": {
"default": "./src/index.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.modern.mjs",
"module": "./dist/index.modern.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf --no-glob ./dist",
Expand Down
Loading

0 comments on commit a43204d

Please sign in to comment.