Skip to content

Commit

Permalink
chore: rename node-binding entry name
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 29, 2021
1 parent 3547411 commit 54143d1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ prebuilds/
.rollup.cache

index.js
index.d.ts
*.d.ts
index.js.map
tsconfig.tsbuildinfo

Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"native.build:debug": "node-gyp configure --debug && node-gyp build --debug",
"native.prebuild": "prebuildify --napi -t 12.0.0 -t [email protected] -t [email protected] --strip",
"native.prebuild-ia32": "prebuildify --napi --arch=ia32 -t 12.0.0 -t [email protected] -t [email protected] --strip",
"js.clean": "shx rm -rf dist dist-test .rollup.cache .parcel-cache **/tsconfig.tsbuildinfo ./index.js ./index.js.map ./index.d.ts",
"js.clean": "shx rm -rf dist dist-test .rollup.cache .parcel-cache **/tsconfig.tsbuildinfo ./index.* ./*.d.ts",
"js.dev": "npm run js.types && cross-env NODE_ENV=development rollup -c -w",
"js.build": "npm run js.types && cross-env NODE_ENV=production rollup -c",
"js.types": "(tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly) && (shx mv ./src/binding/node.d.ts index.d.ts)",
"js.types": "tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly && shx mv ./src/binding/*.d.ts .",
"clean": "npm run native.clean && npm run js.clean",
"install": "node-gyp-build",
"build": "npm run native.build && npm run js.build",
Expand All @@ -31,15 +31,14 @@
"benchmark": "npm run benchmark.small && npm run benchmark.regular && npm run benchmark.large && npm run benchmark.tree",
"examples.cpp": "cmake -S . -B ./build && cmake --build ./build --config Debug",
"bump": "ncu -u --greatest",
"prepare": "npm run build"
"prepare": "npm run js.clean && npm run build"
},
"prettier": "prettier-config-atomic",
"files": [
"src",
"prebuilds",
"index.js",
"index.d.ts",
"index.js.map",
"index.*",
"*.d.ts",
"binding.gyp"
],
"gypfile": true,
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const plugins = createPlugins(["ts", "js"])

const RollupConfig = [
{
input: "src/binding/node.ts",
input: "src/binding/index.ts",
output: [
{
file: "./index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/binding/binding.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Tree, TreeFilterResult } from "./node"
import type { Tree, TreeFilterResult } from "./index"

export declare class Zadeh {
constructor()
Expand Down
File renamed without changes.

0 comments on commit 54143d1

Please sign in to comment.