Skip to content

Commit 85364e8

Browse files
committed
Moved Source Files to src/ Directory and added @ts-nocheck
- Moved entire `lib/` directory to `src/` directory to follow TypeScript convention - Updated test files to use the new path - Added @ts-nocheck to skip type-check - Updated `index.js` to use compiled output instead of TypeScript source
1 parent d2e686f commit 85364e8

File tree

80 files changed

+91
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+91
-48
lines changed

packages/url-utils/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
module.exports = require('./lib/UrlUtils');
1+
module.exports = require('./cjs/UrlUtils');
2+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
// Contains all path information to be used throughout the codebase.
23
const _ = require('lodash');
34
const utils = require('./utils');

packages/url-utils/lib/utils/absolute-to-relative.js renamed to packages/url-utils/src/utils/absolute-to-relative.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
// require the whatwg compatible URL library (same behaviour in node and browser)
23
const {URL} = require('url');
34
const stripSubdirectoryFromPath = require('./strip-subdirectory-from-path');

packages/url-utils/lib/utils/absolute-to-transform-ready.js renamed to packages/url-utils/src/utils/absolute-to-transform-ready.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
const absoluteToRelative = require('./absolute-to-relative');
23

34
const absoluteToTransformReady = function (url, root, _options) {

packages/url-utils/lib/utils/deduplicate-double-slashes.js renamed to packages/url-utils/src/utils/deduplicate-double-slashes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
function deduplicateDoubleSlashes(url) {
23
// Preserve protocol slashes (e.g., http://, https://) and only deduplicate
34
// slashes in the path portion. The pattern (^|[^:])\/\/+ matches double slashes

packages/url-utils/lib/utils/deduplicate-subdirectory.js renamed to packages/url-utils/src/utils/deduplicate-subdirectory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
const {URL} = require('url');
23

34
/**

packages/url-utils/lib/utils/html-absolute-to-relative.js renamed to packages/url-utils/src/utils/html-absolute-to-relative.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
const htmlTransform = require('./html-transform');
23
const absoluteToRelative = require('./absolute-to-relative');
34

packages/url-utils/lib/utils/html-absolute-to-transform-ready.js renamed to packages/url-utils/src/utils/html-absolute-to-transform-ready.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
const htmlTransform = require('./html-transform');
23
const absoluteToTransformReady = require('./absolute-to-transform-ready');
34

packages/url-utils/lib/utils/html-relative-to-absolute.js renamed to packages/url-utils/src/utils/html-relative-to-absolute.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
const htmlTransform = require('./html-transform');
23
const relativeToAbsolute = require('./relative-to-absolute');
34

packages/url-utils/lib/utils/html-relative-to-transform-ready.js renamed to packages/url-utils/src/utils/html-relative-to-transform-ready.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
const htmlTransform = require('./html-transform');
23
const relativeToTransformReady = require('./relative-to-transform-ready');
34

0 commit comments

Comments
 (0)