Skip to content

Commit 5fbb27f

Browse files
committed
Updated index.js to index.ts
- Moved index.ts from root to src/index.ts to align with TypeScript structure - Updated package.json
1 parent 9d3d43c commit 5fbb27f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/url-utils/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/url-utils/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,19 @@
88
},
99
"author": "Ghost Foundation",
1010
"license": "MIT",
11-
"main": "index.js",
12-
"types": "lib/UrlUtils.d.ts",
11+
"main": "lib/index.js",
12+
"types": "lib/index.d.ts",
1313
"scripts": {
1414
"dev": "echo \"Implement me!\"",
1515
"pretest": "yarn build",
1616
"test": "NODE_ENV=testing c8 --src lib --all --reporter text --reporter cobertura --reporter html mocha './test/**/*.test.js'",
1717
"build": "tsc -p tsconfig.json",
18-
"lint": "eslint src test index.js --ext .js,.ts --cache",
18+
"lint": "eslint src test --ext .js,.ts --cache",
1919
"prepare": "NODE_ENV=production yarn build",
2020
"posttest": "yarn lint"
2121
},
2222
"files": [
23-
"lib/",
24-
"index.js"
23+
"lib/"
2524
],
2625
"publishConfig": {
2726
"access": "public"

packages/url-utils/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import UrlUtils from './UrlUtils';
2+
3+
export = UrlUtils;

0 commit comments

Comments
 (0)