Skip to content

Commit 90d6e25

Browse files
committed
Fix up package.json.
1 parent ffd32f9 commit 90d6e25

File tree

6 files changed

+56
-32
lines changed

6 files changed

+56
-32
lines changed

.github/workflows/CI.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ jobs:
4141
bun-version: "latest"
4242
- run: make setup
4343
- run: make app-template-build
44+
- run: make check-package.json

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
app-template-dev: setup
33
cd app-template && bun run dev
44

5+
.PHONY: check
6+
check: lint test build check-package.json
7+
58
.PHONY: dev
69
dev: app-template-dev
710

@@ -25,6 +28,10 @@ build: app-template-build
2528
app-template-clean:
2629
cd app-template && bun run clean
2730

31+
.PHONY: check-package.json
32+
check-package.json: build
33+
bun x --package @cubing/dev-config package.json check
34+
2835
.PHONY: clean
2936
clean: app-template-clean
3037
rm -rf ./.test/ ./dist/ ./app-template/node_modules/
@@ -42,7 +49,7 @@ publish: setup
4249
npm publish --globalconfig="${HOME}/.config/npm/cubing-publish.npmrc"
4350

4451
.PHONY: prepublishOnly
45-
prepublishOnly: clean test
52+
prepublishOnly: test check build
4653

4754
.PHONY: test
4855
test: build test-create-and-build

biome.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": ["./node_modules/@cubing/dev-config/biome/biome.json"],
34
"files": {
4-
"ignore": ["./dist", "./package.json"]
5-
},
6-
"formatter": {
7-
"indentStyle": "space",
8-
"indentWidth": 2
5+
"includes": ["**", "!dist", "!package.json"]
96
},
107
"linter": {
118
"rules": {

bun.lock

Lines changed: 26 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bunfig.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[install]
2+
auto = "disable"
3+
linker = "isolated"

package.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
{
22
"name": "create-cubing-app",
33
"version": "0.61.0",
4-
"type": "module",
5-
"bin": {
6-
"create-cubing-app": "bin/create-cubing-app.js"
4+
"description": "Create an app using `cubing.js` (https://js.cubing.net/).",
5+
"author": "The js.cubing.net team",
6+
"license": "MPL-2.0 OR GPL-3.0-or-later",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/cubing/create-cubing-app.git"
710
},
811
"engines": {
912
"node": ">=19"
1013
},
11-
"scripts": {
12-
"prepublishOnly": "make prepublishOnly"
14+
"type": "module",
15+
"bin": {
16+
"create-cubing-app": "bin/create-cubing-app.js"
1317
},
1418
"devDependencies": {
15-
"@biomejs/biome": "^1.9.4",
16-
"@cubing/dev-config": "^0.3.6",
17-
"@types/bun": "^1.1.3",
19+
"@biomejs/biome": "^2.3.10",
20+
"@cubing/dev-config": "^0.6.6",
21+
"@types/bun": "^1.3.5",
1822
"@types/validate-npm-package-name": "^4.0.2",
1923
"validate-npm-package-name": "^5.0.0"
2024
},
2125
"files": [
2226
"./app-template",
2327
"./bin"
24-
]
28+
],
29+
"scripts": {
30+
"prepublishOnly": "make prepublishOnly"
31+
}
2532
}

0 commit comments

Comments
 (0)