-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(branches): Setup Next branch * fix(Resovler): Refactor resolver and module loader to prevent loading of URLs and already discovered javascript files (#28) * refactor: Remove Node 13.7/13.8 from supported versions * chore(release): 1.3.2 [skip ci] ## [1.3.2](v1.3.1...v1.3.2) (2020-03-30) ### Bug Fixes * **Resovler:** Refactor resolver and module loader to prevent loading of URLs and already discovered javascript files ([#28](#28)) ([4825f19](4825f19)) * fix: Readd JS_EXTS to findFIles to allow for post build JS support * chore(release): 1.3.3 [skip ci] ## [1.3.3](v1.3.2...v1.3.3) (2020-03-30) ### Bug Fixes * Readd JS_EXTS to findFIles to allow for post build JS support ([82b27c0](82b27c0)) * chore(deps-dev): bump @types/node from 13.9.5 to 13.9.8 (#29) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.5 to 13.9.8. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * chore(deps-dev): bump @types/node from 13.9.8 to 13.11.0 (#30) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.8 to 13.11.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * tests(Similar Folder): Add a test for similar folder names when searching for a file (should fail currently) * fix(findFiles): Fix the discovery of files when a directory of partial name match occurs * chore(release): 1.3.4 [skip ci] ## [1.3.4](v1.3.3...v1.3.4) (2020-04-05) ### Bug Fixes * **findFiles:** Fix the discovery of files when a directory of partial name match occurs ([2f108e2](2f108e2)) * fix(resolve): Don't run findFiles if we can already see an extension. * chore(release): 1.3.5 [skip ci] ## [1.3.5](v1.3.4...v1.3.5) (2020-04-05) ### Bug Fixes * **resolve:** Don't run findFiles if we can already see an extension. ([b0e2b85](b0e2b85)) * chore(deps-dev): bump @types/node from 13.11.0 to 13.11.1 (#35) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.11.0 to 13.11.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * chore(deps-dev): bump prettier from 2.0.2 to 2.0.4 (#33) Bumps [prettier](https://github.com/prettier/prettier) from 2.0.2 to 2.0.4. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](prettier/prettier@2.0.2...2.0.4) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * chore(deps-dev): bump typescript from 3.8.3 to 3.9.2 (#50) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * chore(deps-dev): bump conventional-changelog-conventionalcommits (#49) Bumps [conventional-changelog-conventionalcommits](https://github.com/conventional-changelog/conventional-changelog) from 4.2.3 to 4.3.0. - [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases) - [Commits](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@[email protected]) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * fix(dynamicInstantiate): works with pnpm (#45) * chore(release): 1.3.6 [skip ci] ## [1.3.6](v1.3.5...v1.3.6) (2020-05-12) ### Bug Fixes * **dynamicInstantiate:** works with pnpm ([#45](#45)) ([5c0fadf](5c0fadf)) * chore(deps-dev): bump prettier from 2.0.4 to 2.0.5 (#41) Bumps [prettier](https://github.com/prettier/prettier) from 2.0.4 to 2.0.5. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/2.0.5/CHANGELOG.md) - [Commits](prettier/prettier@2.0.4...2.0.5) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * chore(deps-dev): bump semantic-release from 17.0.4 to 17.0.7 (#42) Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.0.4 to 17.0.7. - [Release notes](https://github.com/semantic-release/semantic-release/releases) - [Commits](semantic-release/semantic-release@v17.0.4...v17.0.7) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * fix(dot import): Fix `import XYZ from '.'` (#52) closes issue #34 * chore(release): 1.3.7 [skip ci] ## [1.3.7](v1.3.6...v1.3.7) (2020-05-12) ### Bug Fixes * **dot import:** Fix `import XYZ from '.'` ([#52](#52)) ([19df585](19df585)), closes [#34](#34) Co-authored-by: KJDev-Bots <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Junxiao Shi <[email protected]>
- Loading branch information
1 parent
2ad52fa
commit 5cb58c4
Showing
27 changed files
with
589 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,16 @@ jobs: | |
Test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: ['13.9', '13.10', '13.11'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: k-foss/npm-run-action@master | ||
- uses: actions/[email protected] | ||
with: | ||
scriptName: 'test' | ||
node-version: ${{ matrix.node }} | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run Tests | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,25 @@ on: | |
push: | ||
branches: | ||
- master | ||
- next | ||
|
||
jobs: | ||
Test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: ['13.9', '13.10', '13.11'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: k-foss/npm-run-action@master | ||
- uses: actions/[email protected] | ||
with: | ||
scriptName: 'test' | ||
node-version: ${{ matrix.node }} | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run Tests | ||
run: npm run test | ||
|
||
Publish: | ||
name: NPM Publish | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "dotimport", | ||
"version": "0.0.0", | ||
"description": "", | ||
"main": "src/index.ts", | ||
"type": "module", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DotImport/src/Hello/helloWorld.ts | ||
import { helloString } from '.'; | ||
import { deepEqual } from 'assert'; | ||
|
||
deepEqual(helloString, 'helloWorld', 'helloString does not equal helloWorld'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// src/Hello/index.ts | ||
export const helloString = 'helloWorld'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Template/src/index.ts | ||
|
||
export async function startApp(): Promise<void> { | ||
console.log('Starting DotImport test'); | ||
|
||
console.log('Loading randomLoader'); | ||
|
||
const { loadRandom } = await import('./randomLoader'); | ||
|
||
console.log('Running loadRandom()'); | ||
|
||
const result = await loadRandom(); | ||
|
||
console.log('loadRandom() result: ', result); | ||
|
||
console.debug('Done'); | ||
} | ||
|
||
startApp(); | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// DotImport/src/randomLoader.ts | ||
export async function loadRandom(): Promise<boolean> { | ||
console.log('Importing Hello/helloWorld.ts'); | ||
|
||
await import('./Hello/helloWorld'); | ||
|
||
console.log('Imported Hello/helloWorld.ts'); | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"allowSyntheticDefaultImports": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This tests if the findFiles folder detection takes into account non exact folder names when the expected file is part of the name of the folder. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "test-similar-find-files-folder", | ||
"version": "0.0.0", | ||
"description": "", | ||
"main": "src/index.ts", | ||
"type": "module", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// SimilarFindFileFolder/src/Library/React.ts | ||
export const helloWorld = 'helloWorld'; |
6 changes: 6 additions & 0 deletions
6
Testing/Tests/SimilarFindFileFolder/src/Library/ReactFlight/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// SimilarFindFileFolder/src/Library/ReactFlight/index.ts | ||
export async function stuff(): Promise<'reactFlight'> { | ||
console.log(`I'm react Flight`); | ||
|
||
return 'reactFlight'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Template/src/index.ts | ||
import assert from 'assert'; | ||
import * as React from './Library/React'; | ||
import { stuff } from './Library/ReactFlight'; | ||
|
||
assert.equal(React.helloWorld, 'helloWorld'); | ||
|
||
stuff().then((result) => assert.equal(result, 'reactFlight')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"allowSyntheticDefaultImports": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.