Compare commits

1 Commits
main ... cyka

Author SHA1 Message Date
b7b3b727c4 Add build.sh 2026-01-07 17:27:54 +01:00
3 changed files with 60 additions and 5 deletions

3
.npmrc
View File

@@ -1 +1,2 @@
@eveshipfit:registry=https://npm.pkg.github.com
@eveshipfit:registry=https://git.site.quack-lab.dev/api/packages/dave/npm/
//git.site.quack-lab.dev/api/packages/dave/npm/:_authToken=${NPM_TOKEN}

53
build.sh Normal file
View File

@@ -0,0 +1,53 @@
#!/bin/bash
# ============================================================================
# CONFIGURATION - Modify these for your project
# ============================================================================
# Docker registry and image name
DOCKER_REPO="docker.site.quack-lab.dev"
IMAGE_NAME="eveshipfit-data"
# ============================================================================
# INSTALL DEPENDENCIES
# ============================================================================
echo "Installing dependencies..."
bun install --frozen-lockfile
if [ $? -ne 0 ]; then
echo "Error installing dependencies"
exit 1
fi
# ============================================================================
# BUILD PACKAGE
# ============================================================================
echo "Building data package..."
bun run build
if [ $? -ne 0 ]; then
echo "Error building data package"
exit 1
fi
# ============================================================================
# CHECK AUTHENTICATION
# ============================================================================
echo "Using token from .npmrc for authentication..."
# ============================================================================
# PUBLISH PACKAGE
# ============================================================================
echo "Publishing package to registry..."
npm publish --registry https://git.site.quack-lab.dev/api/packages/dave/npm/
if [ $? -ne 0 ]; then
echo "Error publishing package"
exit 1
fi
echo "Data package published successfully!"

View File

@@ -1,9 +1,9 @@
{
"name": "@eveshipfit/data",
"publishConfig": {
"registry": "https://npm.pkg.github.com/EVEShipFit"
"registry": "https://git.site.quack-lab.dev/api/packages/dave/npm/"
},
"version": "0.0.0-git",
"version": "10.4.0",
"description": "Converted data from the EVE Online SDE",
"scripts": {
"build": "rollup -c",
@@ -12,14 +12,15 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/EVEShipFit/data.git"
"url": "https://git.site.quack-lab.dev/dave/eveship.fit.data"
},
"author": "EVEShipFit Team <info@eveship.fit>",
"license": "SEE LICENSE IN LICENSE",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"files": [
"dist"
"dist",
"esf.proto"
],
"types": "dist/index.d.ts",
"devDependencies": {