Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/fix ts default export error #29

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import os from 'os';
import path from 'path';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';

import { TerraContext } from '@agoraio-extensions/terra-core';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import os from 'os';
import path from 'path';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';

import { ClangASTStructConstructorParser } from '../../src/constructor_initializer_parser';

Expand Down
6 changes: 3 additions & 3 deletions cxx-parser/__tests__/unit_test/cxx_parser.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { execSync } from 'child_process';
import fs from 'fs';
import os from 'os';
import path from 'path';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';

import { TerraContext } from '@agoraio-extensions/terra-core';

Expand Down
6 changes: 3 additions & 3 deletions cxx-parser/__tests__/unit_test/cxx_parser_configs.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import os from 'os';
import path from 'path';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';

import { CXXParserConfigs } from '../../src/cxx_parser_configs';

Expand Down
2 changes: 1 addition & 1 deletion cxx-parser/src/constructor_initializer_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { strict as assert } from 'assert';

import { execSync } from 'child_process';
import * as fs from 'fs';
import path from 'path';
import * as path from 'path';

import { ParseResult, visibleForTesting } from '@agoraio-extensions/terra-core';

Expand Down
4 changes: 2 additions & 2 deletions cxx-parser/src/cxx_parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { execSync } from 'child_process';
import crypto from 'crypto';
import * as crypto from 'crypto';
import * as fs from 'fs';
import path from 'path';
import * as path from 'path';

import { ParseResult, TerraContext } from '@agoraio-extensions/terra-core';

Expand Down
2 changes: 1 addition & 1 deletion cxx-parser/src/cxx_terra_node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path';
import * as path from 'path';

import { TerraNode } from '@agoraio-extensions/terra-core';
import './cxx_terra_node_ext';
Expand Down
2 changes: 1 addition & 1 deletion cxx-parser/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path';
import * as path from 'path';

export function getAbsolutePath(
dir: string,
Expand Down
6 changes: 3 additions & 3 deletions terra-core/__tests__/unit_test/path_resolver.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs';
import * as fs from 'fs';

import os from 'os';
import path from 'path';
import * as os from 'os';
import * as path from 'path';

import {
requireModule,
Expand Down
6 changes: 3 additions & 3 deletions terra-core/src/path_resolver.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs';
import * as fs from 'fs';

import os from 'os';
import path from 'path';
import * as os from 'os';
import * as path from 'path';

/**
* Resolve the schema: `<module_name>:<path>`, or absolute path, or relative path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'fs';
import os from 'os';
import path from 'path';
import * as os from 'os';
import * as path from 'path';

import { ParseResult, TerraContext } from '@agoraio-extensions/terra-core';

Expand Down
2 changes: 1 addition & 1 deletion terra/bin/terra
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env ts-node -T --skipIgnore
#!/usr/bin/env -S ts-node -T --skipIgnore
require('../src/bin');
2 changes: 1 addition & 1 deletion terra/src/base/iris_doc_script.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { execSync } from 'child_process';
import path from 'path';
import * as path from 'path';

// import { getAppRootPath } from '@agoraio-extensions/terra-core';

Expand Down
4 changes: 2 additions & 2 deletions terra/src/base/terra_configs.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from 'fs';
import * as fs from 'fs';

import { resolvePath } from '@agoraio-extensions/terra-core';

import YAML from 'yaml';
import * as YAML from 'yaml';

export interface TerraLoaderConfig {
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion terra/src/commands/run_command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from 'fs';
import path from 'path';
import * as path from 'path';

import { TerraContext, resolvePath } from '@agoraio-extensions/terra-core';

Expand Down
4 changes: 2 additions & 2 deletions terra/src/loader/terra_config_loader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import path from 'path';
import * as fs from 'fs';
import * as path from 'path';

import {
ParseResult,
Expand Down
2 changes: 1 addition & 1 deletion terra/src/renderers/dump_json_renderer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from 'fs';
import path from 'path';
import * as path from 'path';

import {
ParseResult,
Expand Down
Loading