Skip to content

Commit

Permalink
build: update package.json for production
Browse files Browse the repository at this point in the history
  • Loading branch information
xikimay committed Apr 10, 2024
1 parent ad3ec29 commit d90e745
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 17 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Binsztok",
"biomejs",
"cellified",
"cellify",
"_cellify",
"deepskyblue",
"fillcolor",
"graphviz",
Expand All @@ -14,6 +14,7 @@
"orangered",
"succ",
"Uncellified",
"_uncellify",
"uncellify",
"Unsubscriber"
],
Expand All @@ -29,4 +30,4 @@
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
}
47 changes: 39 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,52 @@
{
"name": "@okcontract/cells",
"version": "0.2.3",
"description": "High-level Store",
"main": "src/index.ts",
"description": "Simplified reactive functional programming for the web",
"private": false,
"main": "dist/cells.umd.cjs",
"module": "dist/cells.js",
"type": "module",
"dependencies": {},
"exports": {
".": {
"import": "./dist/cells.js",
"require": "./dist/cells.umd.cjs",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist/",
"assets/",
"README.md",
"LICENSE"
],
"dependencies": {
"@okcontract/graph": "0.1.3"
},
"devDependencies": {
"immer": "^10.0.2"
"@biomejs/biome": "^1.5.3",
"@types/node": "^20.11.5",
"@vitest/coverage-v8": "^1.3.1",
"happy-dom": "^13.0.2",
"immer": "^10.0.4",
"terser": "^5.26.0",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"vitest": "^1.3.1"
},
"scripts": {
"build": "vite build",
"test": "vitest run --passWithNoTests --test-timeout=10000"
"build": "npm run format && vite build",
"test": "vitest run",
"coverage": "vitest run --coverage",
"definitions": "tsc --project tsconfig.build.json",
"prepublishOnly": "npm test && npm run build && npm run check && npm run definitions",
"check": "npx @biomejs/biome check src",
"format": "npx @biomejs/biome format src --write && npx @biomejs/biome check src --apply",
"formatReadme": "prettier README.md --prose-wrap always --print-width 78 -w"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hbbio/lambdascript.git"
"url": "git+https://github.com/okcontract/cells.git"
},
"author": "Henri Binsztok",
"license": "UNLICENSED"
"license": "MIT"
}
7 changes: 0 additions & 7 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ export default defineConfig({
build: {
minify: "terser",
terserOptions: {
mangle: {
toplevel: true,
module: true,
properties: {
regex: /^_/
}
},
compress: {
drop_console: true,
drop_debugger: true
Expand Down

0 comments on commit d90e745

Please sign in to comment.