Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add js-pytorch w/ npm auto-update #1858

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions packages/j/js-pytorch.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file does not match the expected schema for a cdnjs library JSON file. Please take a look at the documentation + existing library configs (and merged PRs) for reference.

Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{

Check failure on line 1 in packages/j/js-pytorch.json

View workflow job for this annotation

GitHub Actions / robotcdnjs

failed to parse packages/j/js-pytorch.json: invalid character '"' after object key:value pair
"name": "js-pytorch",
"version": "0.5.0",
"description": "A JavaScript library like PyTorch, built from scratch.",
"type": "module",
"directories": {
"test": "tests"
},
"exports": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "pkgroll && copyfiles -u 1 ./dist/*.mjs",
"format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"lint": "eslint . --ext .ts",
"watch": "pkgroll --watch",
"prepack": "npm run build",
"test": "jest",
"bench": "tsx tests/benchmarks/runBenchmarks.ts",
"bench:update": "tsx tests/benchmarks/runBenchmarks.ts --save"
},
"release": {
"branches": [
"main"
]
},
"publishConfig": {
"access": "public"
},
"keywords": [
"deep-learning",
"machine-learning",
"PyTorch"
],
"autoupdate": {
"source": "npm",
"target": "js-pytorch",
"fileMap": [
{
"basePath": "dist",
"files": [
"*.js"
]
}
]
}
"repository": {
"type": "git",
"url": "https://github.com/eduardoleao052/js-torch.git"
},
"author": "Eduardo Leitao da Cunha Opice Leao",
"license": "MIT",
"bugs": {
"url": "https://github.com/eduardoleao052/js-torch/issues"
},
"homepage": "https://github.com/eduardoleao052/js-torch#readme",
"dependencies": {
"@eduardoleao052/gpu": "2.19.0"
},
"devDependencies": {
"@babel/core": "^7.24.3",
"@babel/preset-env": "^7.24.3",
"@babel/preset-typescript": "^7.24.1",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"babel-jest": "^29.7.0",
"copyfiles": "^2.4.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"pkgroll": "^2.0.2",
"prettier": "^3.2.5",
"tinybench": "^2.6.0",
"ts-jest": "^29.1.2",
"tsx": "^4.7.1",
"typescript": "^5.4.3"
}
}
Loading