Skip to content

Commit

Permalink
build: move to type module on package json
Browse files Browse the repository at this point in the history
  • Loading branch information
jlopezcur committed Dec 28, 2023
1 parent 5adf77f commit 1f95fb0
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "genesys-ui",
"version": "1.8.0",
"description": "",
"main": "index.js",
"type": "module",
"private": true,
"scripts": {
"compile": "npm run compile -ws --if-present",
Expand Down
9 changes: 5 additions & 4 deletions packages/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "@devoinc/genesys-ui-code",
"version": "1.8.0",
"description": "",
"type": "module",
"types": "./dist/types/src/index.d.ts",
"main": "./dist/index.umd.js",
"module": "./dist/index.mjs",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.umd.js"
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
},
"./style.css": {
"import": "./dist/style.css",
Expand Down
2 changes: 0 additions & 2 deletions packages/code/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';
// Used from @storybook/react-vite dependencies
import react from '@vitejs/plugin-react';

/** @type {import('vite').UserConfig} */
export default defineConfig({
build: {
sourcemap: true,
Expand Down
9 changes: 5 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "@devoinc/genesys-ui",
"version": "1.8.0",
"description": "",
"type": "module",
"types": "./dist/types/src/index.d.ts",
"main": "./dist/index.umd.js",
"module": "./dist/index.mjs",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.umd.js"
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
},
"files": [
Expand Down
2 changes: 0 additions & 2 deletions packages/core/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';
// Used from @storybook/react-vite dependencies
import react from '@vitejs/plugin-react';

/** @type {import('vite').UserConfig} */
export default defineConfig({
build: {
sourcemap: true,
Expand Down
9 changes: 5 additions & 4 deletions packages/datetime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@devoinc/genesys-ui-datetime",
"version": "1.8.0",
"description": "",
"type": "module",
"scripts": {
"compile": "tsc --project tsconfig.json",
"compile:watch": "npm run compile -- --watch",
Expand All @@ -10,13 +11,13 @@
"depcruise": ". ../../depcruise.sh",
"stryker": "npx stryker run"
},
"main": "./dist/index.umd.js",
"module": "./dist/index.mjs",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"types": "./dist/types/src/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.umd.js"
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
},
"files": [
Expand Down
2 changes: 0 additions & 2 deletions packages/datetime/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';
// Used from @storybook/react-vite dependencies
import react from '@vitejs/plugin-react';

/** @type {import('vite').UserConfig} */
export default defineConfig({
build: {
sourcemap: true,
Expand Down
9 changes: 5 additions & 4 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@devoinc/genesys-ui-form",
"version": "1.8.0",
"description": "",
"type": "module",
"scripts": {
"compile": "tsc --project tsconfig.json",
"compile:watch": "npm run compile -- --watch",
Expand All @@ -10,13 +11,13 @@
"depcruise": ". ../../depcruise.sh",
"stryker": "npx stryker run"
},
"main": "./dist/index.umd.js",
"module": "./dist/index.mjs",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"types": "./dist/types/src/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.umd.js"
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
},
"files": [
Expand Down
2 changes: 0 additions & 2 deletions packages/form/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';
// Used from @storybook/react-vite dependencies
import react from '@vitejs/plugin-react';

/** @type {import('vite').UserConfig} */
export default defineConfig({
build: {
sourcemap: true,
Expand Down
1 change: 0 additions & 1 deletion packages/table/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';
// Used from @storybook/react-vite dependencies
import react from '@vitejs/plugin-react';

export default defineConfig({
Expand Down

0 comments on commit 1f95fb0

Please sign in to comment.