@substrate-system/button 0.0.28 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@substrate-system/button",
3
- "version": "0.0.28",
3
+ "version": "0.0.35",
4
4
  "description": "A button component with a visual \"loading\" state",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,47 +28,47 @@
28
28
  },
29
29
  "scripts": {
30
30
  "lint": "eslint \"./**/*.{ts,js}\"",
31
- "test": "npm run build && npm run build-tests && npm run test-tape-run",
32
- "test-tape-run": "cat test/index.html | tape-run --input=html --static=test | tap-spec",
33
- "build-tests": "esbuild test/index.ts --target=es2020 --bundle --keep-names > test/test-bundle.js",
34
- "build-css": "postcss src/index.css --use postcss-nesting > dist/index.css",
35
- "build-css:min": "postcss src/index.css --use cssnano postcss-nesting > dist/index.min.css",
31
+ "test": "npm run build && esbuild test/index.ts --bundle | tapout",
32
+ "build-css": "npx lightningcss --nesting --targets '>= 0.25%' src/index.css -o dist/index.css",
33
+ "build-css:min": "npx lightningcss --nesting --minify --targets '>= 0.25%' src/index.css -o dist/index.min.css",
36
34
  "build-cjs": "esbuild src/*.ts --format=cjs --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --out-extension:.js=.cjs --sourcemap",
35
+ "build-cjs:min": "esbuild src/*.ts --format=cjs --minify --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --out-extension:.js=.min.cjs --sourcemap",
37
36
  "build-esm": "esbuild src/*.ts --format=esm --metafile=dist/meta.json --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --sourcemap && tsc --emitDeclarationOnly --project tsconfig.build.json --outDir dist",
38
37
  "build-esm:min": "esbuild ./src/*.ts --format=esm --keep-names --bundle --tsconfig=tsconfig.build.json --minify --out-extension:.js=.min.js --outdir=./dist --sourcemap",
39
38
  "build-example": "mkdir -p ./public && rm -rf ./public/* && VITE_DEBUG_MODE=staging vite --mode staging --base=\"/button\" build",
40
- "build-docs": "typedoc --tsconfig tsconfig.build.json ./src/index.ts",
41
- "build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm && npm run build-esm:min && npm run build-css && npm run build-css:min",
39
+ "build-docs": "typedoc ./src/index.ts",
40
+ "build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm && npm run build-esm:min && npm run build-cjs:min && npm run build-css && npm run build-css:min",
42
41
  "start": "vite",
43
42
  "toc": "markdown-toc --maxdepth 3 -i README.md",
44
- "preversion": "npm run lint && stylelint src/*.css",
43
+ "preversion": "npm run lint",
45
44
  "version": "npm run toc && auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md README.md",
46
- "postversion": "git push --follow-tags && export $(cat .env | xargs) && npm publish",
45
+ "postversion": "git push --follow-tags && npm publish",
47
46
  "prepublishOnly": "npm run build"
48
47
  },
49
- "dependencies": {},
48
+ "dependencies": {
49
+ "@substrate-system/web-component": "^0.0.46"
50
+ },
50
51
  "devDependencies": {
51
- "@substrate-system/dom": "^0.1.7",
52
- "@substrate-system/debug": "^0.9.0",
53
- "@substrate-system/tapzero": "^0.10.13",
52
+ "@substrate-system/debug": "^0.9.52",
53
+ "@substrate-system/tapout": "^0.0.35",
54
+ "@substrate-system/dom": "^0.1.13",
55
+ "@substrate-system/tapzero": "^0.10.16",
54
56
  "@typescript-eslint/eslint-plugin": "^8.7.0",
55
57
  "@typescript-eslint/parser": "^8.7.0",
56
58
  "auto-changelog": "^2.4.0",
57
- "cssnano": "^7.0.3",
58
- "esbuild": "^0.25.0",
59
+ "esbuild": "^0.27.0",
59
60
  "eslint": "^8.57.0",
60
61
  "eslint-config-standard": "^17.1.0",
62
+ "lightningcss": "^1.31.1",
63
+ "lightningcss-cli": "^1.31.1",
61
64
  "markdown-toc": "^1.2.0",
62
- "postcss": "^8.5.1",
63
- "postcss-cli": "^11.0.0",
64
- "postcss-nesting": "^13.0.1",
65
- "stylelint": "^16.9.0",
66
- "stylelint-config-standard": "^39.0.0",
65
+ "stylelint": "^17.3.0",
66
+ "stylelint-config-standard": "^40.0.0",
67
67
  "tap-spec": "^5.0.0",
68
68
  "tape-run": "^11.0.0",
69
69
  "typedoc": "^0.28.1",
70
- "typescript": "^5.7.3",
71
- "vite": "^7.0.2"
70
+ "typescript": "^5.9.3",
71
+ "vite": "^7.3.1"
72
72
  },
73
73
  "author": "nichoth <nichoth@nichoth.com> (https://nichoth.com)",
74
74
  "license": "SEE LICENSE IN LICENSE",