Skip to content

Commit

Permalink
build: patch fmin and pack
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Nov 17, 2024
1 parent ab2fdd5 commit a69abf2
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .yarn/patches/fmin-npm-0.0.4-e439f499bd.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ index da5504ab16463811c1aff42ac0458ca6b7378d28..506ceefaef866275ea1f48b34384fd99
weightedSum(simplex[i], 1 - sigma, simplex[0], sigma, simplex[i]);
simplex[i].fx = f(simplex[i]);
}
diff --git a/package.json b/package.json
index 9378ea45918a9879f0daf01b5742416cb84fd774..5d9e373425655c66193e5c490b8be5d09349225a 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,6 @@
"name": "fmin",
"version": "0.0.4",
"description": "Unconstrained funcion minimization in Javascript",
- "type": "module",
"keywords": [
"fmin",
"optimization",
@@ -11,6 +10,7 @@
],
"license": "BSD-3-Clause",
"main": "build/fmin.js",
+ "module": "index.js",
"jsnext:main": "index",
"homepage": "https://github.com/benfred/fmin",
"repository": {
diff --git a/src/nelderMead.js b/src/nelderMead.js
index fe38e9104920d7cf77156b53f627855796b5a225..1cc99b6ff81c489f622fbea354b40759fe9e8445 100644
--- a/src/nelderMead.js
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,10 @@
"build": "rollup -c",
"format": "prettier --write examples \"*.{md,json,js,yml}\" \"{.github,src,examples}/**\""
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"dependenciesMeta": {
"[email protected]": {
"unplugged": true
}
}
}
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default [
{
input: 'src/index.js',
output: [{
file: pkg.module,
file: pkg.require,
name: 'venn',
format: 'umd',
}, {
Expand All @@ -27,7 +27,7 @@ export default [
{
input: 'src/index.js',
output: {
file: pkg.require,
file: pkg.module,
format: 'esm',
},
external: Object.keys(pkg.peerDependencies || {}).concat(Object.keys(pkg.dependencies || {})),
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export default defineConfig({
test: {
environment: 'jsdom',
root: './src',
},
}
});
6 changes: 4 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,8 @@ __metadata:
optional: true
d3-transition:
optional: true
[email protected]:
unplugged: true
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3611,10 +3613,10 @@ __metadata:

"fmin@patch:fmin@npm%3A0.0.4#~/.yarn/patches/fmin-npm-0.0.4-e439f499bd.patch":
version: 0.0.4
resolution: "fmin@patch:fmin@npm%3A0.0.4#~/.yarn/patches/fmin-npm-0.0.4-e439f499bd.patch::version=0.0.4&hash=668960"
resolution: "fmin@patch:fmin@npm%3A0.0.4#~/.yarn/patches/fmin-npm-0.0.4-e439f499bd.patch::version=0.0.4&hash=a251e6"
dependencies:
contour_plot: "npm:^0.0.1"
checksum: 10c0/6fd049102d976ccdf0f884d5920b2398e6b31f19fecde0a1beacfef20df88dc9e8c1f62e2859f349eb39add9fa86276f34c26058053a2dc25491224f02de25ad
checksum: 10c0/2fe9e2a175772f3a3d90b38004d7bbd0e75e8a4d274ad1ed8349c54769a90fd3cc9c5034da513a5850502d8245de9d97caf0f088c2635f4d5969c2d21e6729fa
languageName: node
linkType: hard

Expand Down

0 comments on commit a69abf2

Please sign in to comment.