Skip to content

Commit

Permalink
chore: use swiftlet to build
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinBirkhoff committed Mar 31, 2024
1 parent c2062cd commit 372fb5e
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 48 deletions.
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "storetify",
"version": "1.0.0",
"version": "1.1.0",
"description": "Better localStorage, subscribable localStorage, expirable localStorage",
"main": "./lib/storetify.cjs.js",
"module": "./lib/storetify.esm.js",
"browser": "./lib/storetify.min.js",
"unpkg": "./lib/storetify.min.js",
"types": "./lib/storetify.d.ts",
"main": "./dist/storetify.cjs.js",
"module": "./dist/storetify.esm.js",
"browser": "./dist/storetify.min.js",
"unpkg": "./dist/storetify.min.js",
"types": "./dist/storetify.d.ts",
"scripts": {
"init": "npm install && npm run build",
"lint": "eslint src --ext .js,.ts",
"test": "jest --no-cache",
"build": "npm run build:es & npm run build:lib",
"build": "swiftlet build",
"build:old": "npm run build:es & npm run build:lib",
"build:es": "rm -rf ./dist/* && rm -rf ./types/* && tsc",
"build:lib": "rm -rf ./lib/* && rollup -c",
"prepublishOnly": "npm run test && npm run build",
Expand All @@ -21,13 +22,12 @@
"localStorage",
"store",
"subscribe",
"listener"
"listener",
"storetify"
],
"files": [
"lib",
"types",
"README.md",
"LICENSE"
"dist",
"README.zh-CN.md"
],
"author": "Gavin Birkhoff <gavinbirkhoff@gmail.com>",
"license": "MIT",
Expand Down Expand Up @@ -56,6 +56,7 @@
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^8.3.3",
"@types/jest": "^28.1.3",
"@types/node": "^20.12.2",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"eslint": "^8.18.0",
Expand All @@ -73,6 +74,7 @@
"rollup-plugin-filesize": "^9.1.2",
"rollup-plugin-license": "^2.8.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"swiftlet": "1.0.0-Alpha.4",
"ts-jest": "^28.0.5",
"tslib": "^1.14.1",
"typescript": "^4.7.4"
Expand Down
Loading

0 comments on commit 372fb5e

Please sign in to comment.