Skip to content

Commit

Permalink
Merge pull request #21 from fortanix/release/1.0.0-beta-20241115
Browse files Browse the repository at this point in the history
Release v1.0.0-beta-20241115
  • Loading branch information
mkrause authored Nov 15, 2024
2 parents c5bef80 + a2482f4 commit 7b73e4f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 17 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"//": "NOTE: This is a generated file. Do not edit this file directly, use package.json.js instead.",
"name": "@fortanix/baklava",
"version": "1.0.0-beta-20241114",
"version": "1.0.0-beta-20241115",
"license": "MPL-2.0",
"author": "Fortanix",
"description": "Fortanix Baklava design system",
"repository": {
"type": "git",
"url": "git+https://github.com/fortanix/baklava.git"
},
"sideEffects": [
"*.css"
],
"type": "module",
"files": [
"src",
"app",
Expand All @@ -21,6 +17,16 @@
"CHANGELOG.md",
"README.md"
],
"sideEffects": [
"*.css"
],
"type": "module",
"exports": {
".": {
"types": "dist/baklava.d.ts",
"default": "dist/baklava.js"
}
},
"scripts": {
"gen-package": "node package.json.js",
"install-project": "npm run gen-package && npm install --force",
Expand Down Expand Up @@ -84,8 +90,8 @@
"date-fns": "^4.1.0",
"message-tag": "^0.10.0",
"classnames": "^2.5.1",
"react": "^19.0.0-rc-0751fac7-20241002",
"react-dom": "^19.0.0-rc-0751fac7-20241002",
"react": "^19.0.0-rc.1",
"react-dom": "^19.0.0-rc.1",
"react-error-boundary": "^4.0.13",
"@floating-ui/react": "^0.26.24",
"react-toastify": "^10.0.5",
Expand Down
18 changes: 12 additions & 6 deletions package.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ import * as fs from 'node:fs';

const packageConfig = {
name: '@fortanix/baklava',
version: '1.0.0-beta-20241114',
version: '1.0.0-beta-20241115',
license: 'MPL-2.0',
author: 'Fortanix',
description: 'Fortanix Baklava design system',
repository: { type: 'git', url: 'git+https://github.com/fortanix/baklava.git' },

sideEffects: ['*.css'],

type: 'module',
files: [
'src',
'app',
Expand All @@ -25,6 +22,15 @@ const packageConfig = {
'CHANGELOG.md',
'README.md',
],
sideEffects: ['*.css'],
type: 'module',
exports: {
'.': {
'types': 'dist/baklava.d.ts',
//'require': 'dist/baklava.cjs',
'default': 'dist/baklava.js',
}
},

scripts: {
// Utilities
Expand Down Expand Up @@ -137,8 +143,8 @@ const packageConfig = {

// React
'classnames': '^2.5.1',
'react': '^19.0.0-rc-0751fac7-20241002',
'react-dom': '^19.0.0-rc-0751fac7-20241002',
'react': '^19.0.0-rc.1',
'react-dom': '^19.0.0-rc.1',
'react-error-boundary': '^4.0.13',

'@floating-ui/react': '^0.26.24',
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ export default defineConfig({

// Generate `.d.ts` files
dts({
// https://github.com/qmhc/vite-plugin-dts/issues/275#issuecomment-1963123685
outDir: 'dist', // dts.root + 'dist' => where we need to rollup.
root: '../', //vite.root + ../ = ./ = (dts.root)
staticImport: true,
insertTypesEntry: true,
rollupTypes: true,

//include: [path.resolve(__dirname, 'app')],
tsconfigPath: path.resolve(__dirname, 'tsconfig.json'),
}),
Expand Down

0 comments on commit 7b73e4f

Please sign in to comment.