Skip to content

Commit

Permalink
Fixed issues with the published npm package.
Browse files Browse the repository at this point in the history
1. Updated main file in package.json
2. Moved js files from src to lib. Because we don't transpile anything, a source directory doesn't make sense.
3. Renamed Compute.js and Compute.test.js to index.js and index.test.js.
4. Added an npmignore file.
  • Loading branch information
akshat1 committed May 28, 2024
1 parent 9bb7e5e commit 1168128
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jsdoc.conf.json
.github
docs
coverage
lcov.info
2 changes: 1 addition & 1 deletion jsdoc.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dictionaries": ["jsdoc","closure"]
},
"source": {
"include": ["src"],
"include": ["lib"],
"includePattern": ".+\\.js(doc|x)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Compute.test.js → lib/index.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from "node:test";
import assert from "node:assert";
import { gather, isObservable, observable, from } from "./Compute.js";
import { gather, isObservable, observable, from } from "./index.js";

test("Compute", async (t) => {
await t.test("gather", async (t1) => {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"homepage": "http://akshat1.github.io/compute/",
"license": "MIT",
"author": "akshat1",
"version": "1.0.1",
"main": "dist/compute-debug.js",
"version": "1.0.2",
"main": "lib/index.js",
"type": "module",
"bugs": {
"url": "https://github.com/akshat1/compute/issues",
Expand All @@ -20,7 +20,7 @@
"url": "https://github.com/akshat1/compute"
},
"scripts": {
"clean": "rm -rf dist docs",
"clean": "rm -rf docs coverage lcov.info",
"test": "node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info",
"cov-html": "genhtml --output-directory=./coverage lcov.info",
"doc": "jsdoc -c jsdoc.conf.json"
Expand Down

0 comments on commit 1168128

Please sign in to comment.