Skip to content
Open
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
22 changes: 13 additions & 9 deletions packages/auth-foundation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@okta/auth-foundation",
"version": "0.7.2",
"type": "module",
"main": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"author": "jared.perreault@okta.com",
Expand All @@ -20,27 +20,31 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js"
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./core" : {
"types": "./dist/types/core.d.ts",
"import": "./dist/esm/core.js"
"import": "./dist/esm/core.js",
"require": "./dist/cjs/core.js"
},
"./internal": {
"types": "./dist/types/internal.d.ts",
"import": "./dist/esm/internal.js"
"import": "./dist/esm/internal.js",
"require": "./dist/cjs/internal.js"
},
"./package.json": "./package.json"
},
"sideEffects": [
"./src/oktaUserAgent.ts"
"./dist/cjs/oktaUserAgent.js",
"./dist/esm/oktaUserAgent.js"
],
"scripts": {
"lint": "eslint --ext .js,.ts,.jsx .",
"build": "yarn build:esm && yarn build:types",
"build:watch": "rollup -c --watch & tsc --watch",
"build:esm": "rollup -c",
"build:types": "tsc",
"build": "yarn build:lib && yarn build:types",
"build:watch": "yarn build:lib --watch & yarn build:types --watch",
"build:lib": "rollup -c",
"build:types": "tsc --outDir ./dist/types",
"test": "yarn test:unit",
"test:unit": "jest",
"test:watch": "jest --watchAll",
Expand Down
1 change: 0 additions & 1 deletion packages/auth-foundation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"baseUrl": "./",
"outDir": "./dist/types",
},
"lib": [
"dom"
Expand Down
18 changes: 13 additions & 5 deletions packages/oauth2-flows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@okta/oauth2-flows",
"version": "0.7.2",
"type": "module",
"main": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"author": "jared.perreault@okta.com",
Expand All @@ -17,12 +17,20 @@
"engines": {
"node": ">=20.11.0"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"lint": "eslint --ext .js,.ts,.jsx .",
"build": "yarn build:esm && yarn build:types",
"build:watch": "rollup -c --watch & tsc --watch",
"build:esm": "rollup -c",
"build:types": "tsc",
"build": "yarn build:lib && yarn build:types",
"build:watch": "yarn build:lib --watch & yarn build:types --watch",
"build:lib": "rollup -c",
"build:types": "tsc --outDir ./dist/types",
"test": "yarn test:unit",
"test:unit": "jest",
"test:watch": "jest --watchAll",
Expand Down
3 changes: 1 addition & 2 deletions packages/oauth2-flows/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "@repo/typescript-config/base.json",
"compilerOptions": {
"rootDir": "./src",
"baseUrl": "./",
"outDir": "./dist/types"
"baseUrl": "./"
},
"lib": [
"dom"
Expand Down
16 changes: 9 additions & 7 deletions packages/spa-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@okta/spa-platform",
"version": "0.7.2",
"type": "module",
"main": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
Expand All @@ -16,20 +16,22 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js"
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./flows" : {
"types": "./dist/types/flows.d.ts",
"import": "./dist/esm/flows.js"
"import": "./dist/esm/flows.js",
"require": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"lint": "eslint --ext .js,.ts,.jsx .",
"build": "yarn build:esm && yarn build:types",
"build:watch": "yarn build:esm --watch & yarn build:types --watch",
"build:esm": "rollup -c",
"build:types": "tsc",
"build": "yarn build:lib && yarn build:types",
"build:watch": "yarn build:lib --watch & yarn build:types --watch",
"build:lib": "rollup -c",
"build:types": "tsc --outDir ./dist/types",
"test": "yarn test:unit",
"test:watch": "jest --watchAll",
"test:unit": "jest"
Expand Down
1 change: 0 additions & 1 deletion packages/spa-platform/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"baseUrl": "./",
"outDir": "./dist/types"
},
"lib": [
"dom"
Expand Down
27 changes: 18 additions & 9 deletions tooling/rollup-config/sdk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,24 @@ const __dirname = path.dirname(__filename);
export default function (tsModule, packageJson) {
return {
input: 'src/index.ts',
output: {
dir: 'dist/esm',
format: 'es',
exports: 'named',
sourcemap: true,
preserveModules: true,
preserveModulesRoot: 'src',
},
output: [
{
dir: 'dist/esm',
format: 'es',
exports: 'named',
sourcemap: true,
preserveModules: true,
preserveModulesRoot: 'src',
},
{
dir: 'dist/cjs',
format: 'cjs',
exports: 'named',
sourcemap: true,
preserveModules: true,
preserveModulesRoot: 'src',
},
],
plugins: [
replace({
__PKG_NAME__: JSON.stringify(packageJson.name),
Expand All @@ -35,7 +45,6 @@ export default function (tsModule, packageJson) {
emitDeclarationOnly: false,
module: 'nodenext',
moduleResolution: 'nodenext',
outDir: 'dist/esm',
}
}),
cleanup({
Expand Down