Skip to content

Commit

Permalink
feat: ✨ add cjs esm interop for ag-grid (#549)
Browse files Browse the repository at this point in the history
* feat: ✨ add cjs esm interop for ag-grid

* feat:

* chore:

* chore:

* chore:

* chore:

* chore:

* chore:
  • Loading branch information
Gustav-Eikaas authored Dec 5, 2023
1 parent d82043f commit 04209ea
Show file tree
Hide file tree
Showing 23 changed files with 847 additions and 342 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@typescript-eslint/eslint-plugin": "~5.24.0",
"@typescript-eslint/parser": "~5.24.0",
"prettier": "^2.6.2",
"tsup": "^8.0.1",
"turbo": "^1.9.3",
"typescript": "~5.0.2",
"typescript-plugin-styled-components": "^2.0.0"
Expand Down
35 changes: 16 additions & 19 deletions packages/ag-grid/package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
{
"name": "@equinor/workspace-ag-grid",
"version": "2.0.4",
"version": "2.0.5",
"type": "module",
"private": false,
"sideEffects": false,
"license": "MIT",
"scripts": {
"build": "tsc -b",
"build:prod": "tsc -b",
"lint": "eslint --ext .ts,.tsx"
"build": "tsup ./src/index.ts ./src/modules/index.ts --format cjs,esm --dts --clean",
"build:prod": "tsup ./src/index.ts ./src/modules/index.ts --format cjs,esm --dts --clean"
},
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"typesVersions": {
">=4.2": {
".": [
"dist/types/index"
],
"modules": [
"dist/types/modules/index"
]
}
},
"exports": {
".": "./dist/esm/index.js",
"./modules": "./dist/esm/modules/index.js"
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./modules": {
"require": "./dist/modules/index.cjs",
"import": "./dist/modules/index.js",
"types": "./dist/modules/index.d.ts"
}
},
"dependencies": {
"@ag-grid-community/client-side-row-model": "30.2.1",
Expand Down
41 changes: 18 additions & 23 deletions packages/ag-grid/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"outDir": "dist/esm",
"rootDir": "src",
"baseUrl": "src",
"declarationDir": "./dist/types",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"rootDir": "src",
"baseUrl": "src",
"allowJs": false,
"declaration": true,
"emitDeclarationOnly": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": false,
"moduleResolution": "Bundler",
"module": "ESNext"
}
}
4 changes: 0 additions & 4 deletions packages/ag-grid/tsconfig.lib.json

This file was deleted.

20 changes: 13 additions & 7 deletions packages/filter/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
"name": "@equinor/workspace-filter",
"version": "3.0.7",
"version": "3.0.8",
"type": "module",
"sideEffects": false,
"license": "MIT",
"scripts": {
"build": "tsc -b",
"build:prod": "tsc -b",
"lint": "eslint --ext .ts,.tsx"
"build": "tsup ./src/index.ts --format cjs,esm --dts --clean",
"build:prod": "tsup ./src/index.ts --format cjs,esm --dts --clean"
},
"publishConfig": {
"access": "public"
},
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist"
],
Expand Down
39 changes: 18 additions & 21 deletions packages/filter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx",
"outDir": "dist/esm",
"rootDir": "src",
"declarationDir": "./dist/types",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"rootDir": "src",
"baseUrl": "src",
"allowJs": false,
"declaration": true,
"emitDeclarationOnly": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": false,
"moduleResolution": "Bundler",
"module": "ESNext"
}
}
4 changes: 0 additions & 4 deletions packages/filter/tsconfig.lib.json

This file was deleted.

20 changes: 13 additions & 7 deletions packages/garden/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
"name": "@equinor/workspace-garden",
"version": "6.0.2",
"version": "6.0.3",
"type": "module",
"sideEffects": false,
"license": "MIT",
"scripts": {
"build": "tsc -b",
"build:prod": "tsc -b",
"lint": "eslint --ext .ts,.tsx"
"build": "tsup ./src/index.ts --format cjs,esm --dts --clean",
"build:prod": "tsup ./src/index.ts --format cjs,esm --dts --clean"
},
"publishConfig": {
"access": "public"
},
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist"
],
Expand Down
39 changes: 18 additions & 21 deletions packages/garden/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx",
"outDir": "dist/esm",
"rootDir": "src",
"declarationDir": "./dist/types",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"rootDir": "src",
"baseUrl": "src",
"allowJs": false,
"declaration": true,
"emitDeclarationOnly": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": false,
"moduleResolution": "Bundler",
"module": "ESNext"
}
}
4 changes: 0 additions & 4 deletions packages/garden/tsconfig.lib.json

This file was deleted.

20 changes: 13 additions & 7 deletions packages/power-bi/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
"name": "@equinor/workspace-powerbi",
"version": "1.0.11",
"version": "1.0.12",
"type": "module",
"sideEffects": false,
"license": "MIT",
"scripts": {
"build": "tsc -b",
"build:prod": "tsc -b",
"lint": "eslint --ext .ts,.tsx"
"build": "tsup ./src/index.ts --format cjs,esm --dts --clean",
"build:prod": "tsup ./src/index.ts --format cjs,esm --dts --clean"
},
"publishConfig": {
"access": "public"
},
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist"
],
Expand Down
41 changes: 18 additions & 23 deletions packages/power-bi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"outDir": "dist/esm",
"rootDir": "src",
"baseUrl": "src",
"declarationDir": "./dist/types",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"rootDir": "src",
"baseUrl": "src",
"allowJs": false,
"declaration": true,
"emitDeclarationOnly": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": false,
"moduleResolution": "Bundler",
"module": "ESNext"
}
}
4 changes: 0 additions & 4 deletions packages/power-bi/tsconfig.lib.json

This file was deleted.

Loading

0 comments on commit 04209ea

Please sign in to comment.