Skip to content

Commit

Permalink
path-functions.js → paths.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jeetiss authored and molefrog committed May 23, 2023
1 parent 8bdf23e commit 30362e2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ preact/index.js
preact/matcher.js
preact/use-location.js
preact/static-location.js
preact/path-functions.js
preact/paths.js
preact/types/*.d.ts

# type definitions in the project root are copied from types/ folder
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"lint-types": "npm run lint-types-react && npm run lint-types-preact",
"lint-types-react": "dtslint types/ts4.1 --localTs ./node_modules/typescript/lib && dtslint types/ts3.9.4 --localTs ./node_modules/typescript-3.9.4/lib",
"lint-types-preact": "npm run preact && npm run types-preact && dtslint preact/types/ts4.1 --localTs ./node_modules/typescript/lib && dtslint preact/types/ts3.9.4 --localTs ./node_modules/typescript-3.9.4/lib",
"preact": "copyfiles -f {index,matcher,use-location,static-location,path-functions}.js preact/",
"preact": "copyfiles -f {index,matcher,use-location,static-location,paths}.js preact/",
"types-preact": "copyfiles -f types/{matcher,use-location,static-location,router}.d.ts preact/types",
"bundle": "rollup -c && echo '{\"type\": \"commonjs\"}' > ${DIR}cjs/package.json",
"prepublishOnly": "npm run clean && npm run preact && npm run types-preact && npm run bundle && DIR=./preact/ npm run bundle"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion static-location.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { absolutePath, relativePath } from "./path-functions.js";
import { absolutePath, relativePath } from "./paths.js";

// Generates static `useLocation` hook. The hook always
// responds with initial path provided.
Expand Down
2 changes: 1 addition & 1 deletion use-location.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSyncExternalStore, useEvent } from "./react-deps.js";
import { absolutePath, relativePath } from "./path-functions.js";
import { absolutePath, relativePath } from "./paths.js";

/**
* History API docs @see https://developer.mozilla.org/en-US/docs/Web/API/History
Expand Down

0 comments on commit 30362e2

Please sign in to comment.