Skip to content

Commit

Permalink
Use package-name-fixer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklehamster committed Jan 30, 2024
1 parent 435cdec commit 0ecc6c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 103 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion make-repo-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ $CURRENT_URL == https://* ]]; then
REPO_NAME=$(basename "$CURRENT_URL" ".git")

# Update the Git remote URL to use SSH
NEW_URL="git@github.com:$(basename $(dirname "$CURRENT_URL"))/${REPO_NAME}.git"
NEW_URL="git+ssh://git@github.com:$(basename $(dirname "$CURRENT_URL"))/${REPO_NAME}.git"
git remote set-url origin "$NEW_URL"

# Verify the changes
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
"tsc": "tsc",
"start": "bun run index.ts",
"test": "bun test",
"build": "bun i && bun scripts/update-package.ts && rm *.tsbuildinfo && rm -rf dist/*.* && bun run bundler/bundler.ts && bun run test && bun run build:declaration",
"build": "bun i && bun run fix-package-name && rm *.tsbuildinfo && rm -rf dist/*.* && bun run bundler/bundler.ts && bun run test && bun run build:declaration",
"build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json",
"build:example": "cd example && bun i && bun run build && cd ..",
"list": "bun run samples/list-scripts.tsx",
"example": "cd example && bun start && cd ..",
"fileSample": "bun run samples/file.tsx && cat samples/data/test.json",
"httpSample": "bun run samples/server.tsx",
"make-repo-ssh": "./make-repo-ssh.sh",
"fix-package-name": "npm start --prefix node_modules/package-name-fixer",
"autocommit": "npm explore @dobuki/autocommit -- bun run autocommit \"$(pwd)\"",
"np": "bun run build && bun run build:example && bun run make-repo-ssh && bun run autocommit && np"
},
Expand All @@ -60,14 +61,13 @@
"bun-types": "^1.0.2",
"jest": "^29.7.0",
"np": "^9.2.0",
"png-to-ico": "^2.1.8",
"package-name-fixer": "^1.0.2",
"prettier": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.3.3"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {}
}
}
98 changes: 0 additions & 98 deletions scripts/update-package.ts

This file was deleted.

0 comments on commit 0ecc6c5

Please sign in to comment.