Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
williamgrosset committed May 23, 2024
1 parent 9b7b96a commit 1db8e65
Show file tree
Hide file tree
Showing 8 changed files with 2,971 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
- name: Build package
run: pnpm run build
- name: Verify build output
run: ls -la dist
8 changes: 8 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"preset": "ts-jest/presets/default-esm",
"testEnvironment": "node",
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"extensionsToTreatAsEsm": [".ts"]
}
46 changes: 46 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "@pubware/npm",
"version": "0.0.0",
"description": "npm plugin",
"author": "William Grosset (https://williamgrosset.com)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pubware/npm"
},
"keywords": [
"package",
"publisher",
"release",
"cli",
"npm",
"plugin"
],
"type": "module",
"engines": {
"node": ">=18"
},
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsc",
"clean": "rm -rf dist",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.25",
"@types/semver": "^7.5.8",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"typescript": "^5.4.2"
},
"dependencies": {
"@pubware/plugin": "1.0.0-alpha.2",
"semver": "^7.6.2"
}
}
Loading

0 comments on commit 1db8e65

Please sign in to comment.