From a713efbe0d1867e9d6e95825886b9fe88c49fa48 Mon Sep 17 00:00:00 2001 From: mkrause Date: Thu, 14 Nov 2024 12:24:02 +0100 Subject: [PATCH 1/2] Release v1.0.0-beta-20241114 --- package-lock.json | 4 ++-- package.json | 2 +- package.json.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index f3235f1..c240885 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fortanix/baklava", - "version": "1.0.0-pre", + "version": "1.0.0-beta-20241114", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@fortanix/baklava", - "version": "1.0.0-pre", + "version": "1.0.0-beta-20241114", "license": "MPL-2.0", "dependencies": { "@effect/schema": "^0.74.1", diff --git a/package.json b/package.json index b690e34..1203451 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "//": "NOTE: This is a generated file. Do not edit this file directly, use package.json.js instead.", "name": "@fortanix/baklava", - "version": "1.0.0-pre", + "version": "1.0.0-beta-20241114", "license": "MPL-2.0", "author": "Fortanix", "description": "Fortanix Baklava design system", diff --git a/package.json.js b/package.json.js index a1bdedb..82ce7c6 100644 --- a/package.json.js +++ b/package.json.js @@ -8,7 +8,7 @@ import * as fs from 'node:fs'; const packageConfig = { name: '@fortanix/baklava', - version: '1.0.0-pre', + version: '1.0.0-beta-20241114', license: 'MPL-2.0', author: 'Fortanix', description: 'Fortanix Baklava design system', From 24aec5e08d03caf00541d3997b04cde972e676ca Mon Sep 17 00:00:00 2001 From: mkrause Date: Thu, 14 Nov 2024 15:43:57 +0100 Subject: [PATCH 2/2] Update package.json --- package.json | 18 +++++++++++++++--- package.json.js | 17 +++++++++++++++-- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 1203451..5688ad4 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,22 @@ "license": "MPL-2.0", "author": "Fortanix", "description": "Fortanix Baklava design system", - "repository": "https://github.com/fortanix/baklava", + "repository": { + "type": "git", + "url": "git+https://github.com/fortanix/baklava.git" + }, "sideEffects": [ "*.css" ], "type": "module", + "files": [ + "src", + "app", + "dist", + "LICENSE", + "CHANGELOG.md", + "README.md" + ], "scripts": { "gen-package": "node package.json.js", "install-project": "npm run gen-package && npm install --force", @@ -18,7 +29,7 @@ "plop": "NODE_OPTIONS=\"--import tsx\" plop", "import": "tsx scripts/import.ts", "serve:dev": "vite --config=./vite.config.ts serve", - "build:prod": "vite --config=./vite.config.ts --emptyOutDir build && cp src/types/vite-env.d.ts dist && echo '{\"name\": \"@fortanix/baklava\",\"main\": \"./baklava.js\"}' > dist/package.json", + "build": "vite --config=./vite.config.ts --emptyOutDir build", "storybook:serve": "storybook dev -p 6006", "storybook:build": "storybook build --docs", "check-types": "tsc --noEmit", @@ -28,7 +39,8 @@ "test": "vitest run --root=.", "test-ui": "vitest --ui", "coverage": "vitest run --coverage", - "start": "npm run storybook:serve" + "start": "npm run storybook:serve", + "prepare": "npm run build" }, "devDependencies": { "plop": "^4.0.1", diff --git a/package.json.js b/package.json.js index 82ce7c6..5db96b2 100644 --- a/package.json.js +++ b/package.json.js @@ -12,11 +12,20 @@ const packageConfig = { license: 'MPL-2.0', author: 'Fortanix', description: 'Fortanix Baklava design system', - repository: 'https://github.com/fortanix/baklava', + repository: { type: 'git', url: 'git+https://github.com/fortanix/baklava.git' }, sideEffects: ['*.css'], type: 'module', + files: [ + 'src', + 'app', + 'dist', + 'LICENSE', + 'CHANGELOG.md', + 'README.md', + ], + scripts: { // Utilities 'gen-package': 'node package.json.js', // Update `package.json` @@ -33,7 +42,8 @@ const packageConfig = { // App 'serve:dev': 'vite --config=./vite.config.ts serve', - 'build:prod': 'vite --config=./vite.config.ts --emptyOutDir build && cp src/types/vite-env.d.ts dist && echo \'{"name": "@fortanix/baklava","main": "./baklava.js"}\' > dist/package.json', + //'build': 'vite --config=./vite.config.ts --emptyOutDir build && cp src/types/vite-env.d.ts dist && echo \'{"name": "@fortanix/baklava","main": "./baklava.js"}\' > dist/package.json', + 'build': 'vite --config=./vite.config.ts --emptyOutDir build', // Storybook 'storybook:serve': 'storybook dev -p 6006', @@ -53,6 +63,9 @@ const packageConfig = { // Shorthands 'start': 'npm run storybook:serve', + + // Hooks + 'prepare': 'npm run build', }, // Dev dependencies (only needed when building, or making changes to the code)