Skip to content

Commit

Permalink
change target for esm to lib-esm
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Apr 16, 2024
1 parent d21d8b0 commit 6e87a26
Show file tree
Hide file tree
Showing 31 changed files with 86 additions and 85 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ build/
/packages/*/i18n/
tmp/
lib/
lib-esm/
storybook-static/
dist/
eslint-report.json
Expand Down
6 changes: 3 additions & 3 deletions fork/json-schema-form-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "1.2.4",
"description": "JSON-Schema and JSON-UI-Schema utilities for form generation.",
"main": "dist/index.js",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion fork/json-schema-form-core/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
6 changes: 3 additions & 3 deletions fork/react-bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"homepage": "https://react-bootstrap.github.io/",
"sideEffects": false,
"main": "lib/index.js",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion fork/react-bootstrap/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
6 changes: 3 additions & 3 deletions packages/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"mainSrc": "src/index.js",
"license": "Apache-2.0",
"types": "./lib/index.d.ts",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/a11y/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
6 changes: 3 additions & 3 deletions packages/assets-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"description": "A set of API designed to access assets using CDN",
"types": "lib/index.d.ts",
"main": "lib/index.js",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/assets-api/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"declaration": true,
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
6 changes: 3 additions & 3 deletions packages/cmf-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "6.1.2",
"description": "",
"main": "lib/index.js",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/cmf-router/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
6 changes: 3 additions & 3 deletions packages/cmf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"main": "lib/index.js",
"mainSrc": "src/index.js",
"license": "Apache-2.0",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/cmf/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
12 changes: 6 additions & 6 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "@talend/react-components",
"description": "Set of react components.",
"main": "lib/index.js",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
"./lib/*": {
"import": {
"types": "./lib/esm/*/index.d.ts",
"default": "./lib/esm/*/index.js"
"types": "./lib-esm/*/index.d.ts",
"default": "./lib-esm/*/index.js"
},
"require": {
"types": "./lib/*/index.d.ts",
Expand All @@ -17,8 +17,8 @@
},
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand All @@ -32,7 +32,7 @@
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
"build:lib": "talend-scripts build && yarn run tsc",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib/esm --verbose",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib-esm --verbose",
"watch": "talend-scripts build --watch",
"tsc": "tsc --emitDeclarationOnly --project ./tsconfig.json --outDir ./types",
"test": "cross-env TZ=UTC talend-scripts test",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.json",
"exclude": ["node_modules", "src/**/*.stories.*", "src/**/*.test.*"],
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
12 changes: 6 additions & 6 deletions packages/containers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"description": "Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
"./lib/*": {
"import": {
"types": "./lib/esm/*/index.d.ts",
"default": "./lib/esm/*/index.js"
"types": "./lib-esm/*/index.d.ts",
"default": "./lib-esm/*/index.js"
},
"require": {
"types": "./lib/*/index.d.ts",
Expand All @@ -18,8 +18,8 @@
},
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand All @@ -33,7 +33,7 @@
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
"build:lib": "talend-scripts build",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib/esm --verbose",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib-esm --verbose",
"start": "talend-scripts start-storybook -p 6007",
"test": "talend-scripts test",
"test:watch": "talend-scripts test --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/containers/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"include": ["src/**/*"],
"compilerOptions": {
"declaration": true,
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
8 changes: 4 additions & 4 deletions packages/dataviz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"description": "Talend charts and visualization components",
"main": "lib/index.js",
"types": "./lib/index.d.ts",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand All @@ -24,7 +24,7 @@
"build:umd:dev": "talend-scripts build --umd --dev",
"build:umd:prod": "talend-scripts build --umd",
"build:lib": "talend-scripts build",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib/esm --verbose",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib-esm --verbose",
"build-storybook": "talend-scripts build-storybook",
"extract-i18n": "i18next-scanner --config i18next-scanner.config.js",
"lint": "talend-scripts lint",
Expand Down
2 changes: 1 addition & 1 deletion packages/dataviz/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
},
"exclude": ["src/**/*.test.*", "src/**/*.stories.*", "src/**/*.cy.*"]
Expand Down
12 changes: 6 additions & 6 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"description": "Talend Design System",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
"./lib/*": {
"import": {
"types": "./lib/esm/*/index.d.ts",
"default": "./lib/esm/*/index.js"
"types": "./lib-esm/*/index.d.ts",
"default": "./lib-esm/*/index.js"
},
"require": {
"types": "./lib/*/index.d.ts",
Expand All @@ -19,8 +19,8 @@
},
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand All @@ -32,7 +32,7 @@
"build:lib": "talend-scripts build",
"build:lib:umd": "talend-scripts build --umd --dev",
"build:lib:umd:min": "talend-scripts build --umd --prod",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib/esm --verbose",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib-esm --verbose",
"pre-release": "npm run build:lib:umd && npm run build:lib:umd:min",
"watch": "talend-scripts build --watch",
"test": "talend-scripts test",
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"src/stories/**/*"
],
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
16 changes: 8 additions & 8 deletions packages/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
"description": "Talend Design Tokens",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "./lib/esm/index.js",
"module": "./lib-esm/index.js",
"exports": {
"./package.json": "./package.json",
"./lib/tokens": {
"import": "./lib/esm/_tokens.scss",
"import": "./lib-esm/_tokens.scss",
"require": "./lib/_tokens.scss"
},
"./lib/_tokens": {
"import": "./lib/esm/_tokens.scss",
"import": "./lib-esm/_tokens.scss",
"require": "./lib/_tokens.scss"
},
"./lib/*": {
"import": "./lib/esm/*",
"import": "./lib-esm/*",
"require": "./lib/*"
},
"./dist/*": {
"import": "./lib/esm/dist/*",
"import": "./lib-esm/dist/*",
"require": "./dist/*"
},
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
"types": "./lib-esm/index.d.ts",
"default": "./lib-esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
Expand All @@ -39,7 +39,7 @@
"build:umd:dev": "talend-scripts build --umd --dev",
"build:umd:prod": "talend-scripts build --umd",
"build:lib": "talend-scripts build && yarn build:umd:dev && yarn build:umd:prod && yarn test:umd",
"build:lib:esm": "yarn build:lib && tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib/esm --verbose && cpx 'dist/*' lib/esm/dist --verbose",
"build:lib:esm": "yarn build:lib && tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib-esm --verbose && cpx 'dist/*' lib/esm/dist --verbose",
"test": "echo no test for @talend/design-tokens",
"test:cov": "echo no test for @talend/design-tokens",
"test:umd": "jest scripts/umd.test.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"outDir": "lib-esm",
"module": "ESNext"
}
}
Loading

0 comments on commit 6e87a26

Please sign in to comment.