packages/cli: enable TS isolatedModules

This commit is contained in:
Patrik Oldsberg
2020-05-29 12:00:26 +02:00
parent 7da845e844
commit f9e4e557f8
6 changed files with 11 additions and 28 deletions
+4 -3
View File
@@ -14,7 +14,8 @@
* limitations under the License.
*/
import type { ComponentV1beta1 } from './ComponentV1beta1';
export type {
ComponentV1beta1,
ComponentV1beta1 as Component,
} from './ComponentV1beta1';
export { ComponentV1beta1Policy } from './ComponentV1beta1';
export { ComponentV1beta1 as Component };
export { ComponentV1beta1 };
+2
View File
@@ -13,3 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export {};
+1 -1
View File
@@ -9,7 +9,7 @@
"forceConsistentCasingInFileNames": true,
"importHelpers": false,
"incremental": true,
"isolatedModules": false,
"isolatedModules": true,
"jsx": "react",
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2019"],
"module": "ESNext",
+1 -2
View File
@@ -20,8 +20,7 @@ import { paths } from '../lib/paths';
export default async (cmd: Command) => {
const args = [
'--ext',
'js,jsx,ts,tsx',
'--ext=js,jsx,ts,tsx',
'--max-warnings=0',
'--format=codeframe',
paths.targetDir,
@@ -1,21 +0,0 @@
/*
* Copyright 2020 Spotify AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
describe('OAuthProvider', () => {
it('unbreak test runner', () => {
expect(true).toBeTruthy();
});
});
@@ -14,8 +14,10 @@
* limitations under the License.
*/
import { defaultRouter } from '.';
describe('test', () => {
it('unbreaks the test runner', () => {
expect(true).toBeTruthy();
expect(defaultRouter).toBeDefined();
});
});