Skip to content

Commit

Permalink
Address PR feedback on microsoft#19520 (microsoft#19582)
Browse files Browse the repository at this point in the history
Fixes one package that was inadvertently changed to CJS.

Removes redundant inclusion of "tsconfig.base.json"
  • Loading branch information
DLehenbauer committed Feb 13, 2024
1 parent 937020c commit 2caf72f
Show file tree
Hide file tree
Showing 80 changed files with 100 additions and 275 deletions.
5 changes: 1 addition & 4 deletions azure/packages/azure-client/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions azure/packages/azure-service-utils/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions azure/packages/test/end-to-end-tests/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*", "../*"],
"compilerOptions": {
"rootDir": "../",
Expand Down
5 changes: 1 addition & 4 deletions azure/packages/test/scenario-runner/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*", "../*"],
"compilerOptions": {
"rootDir": "../",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"license": "MIT",
"author": "Microsoft and contributors",
"type": "module",
"scripts": {
"build": "fluid-build . --task build",
"build:compile": "fluid-build . --task compile",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import { StaticCodeLoader, TinyliciousModelLoader } from "@fluid-example/example-utils";

import { PropertyTreeContainerRuntimeFactory, IPropertyTreeAppModel } from "./containerCode";
import { renderApp, renderInspector } from "./view";
import { PropertyTreeContainerRuntimeFactory, IPropertyTreeAppModel } from "./containerCode.js";
import { renderApp, renderInspector } from "./view.js";

/**
* Start the app and render.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ModelContainerRuntimeFactory, getDataStoreEntryPoint } from "@fluid-exa
import { IContainer } from "@fluidframework/container-definitions";
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions";

import { IPropertyTree, PropertyTreeInstantiationFactory } from "./dataObject";
import { IPropertyTree, PropertyTreeInstantiationFactory } from "./dataObject.js";

/**
* The data model for our application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License.
*/
import { DataBinding } from "@fluid-experimental/property-binder";
import { Square } from "../views/square";
import { Square } from "../views/square.js";

export class ColoredSquareBinding extends DataBinding {
private updatePosition(values: any) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Licensed under the MIT License.
*/
import { DataBinding } from "@fluid-experimental/property-binder";
import { SquaresBoard } from "../views/squaresBoard";
import { Square } from "../views/square";
import { SquaresBoard } from "../views/squaresBoard.js";
import { Square } from "../views/square.js";

export class SquaresBoardBinding extends DataBinding {
public board: SquaresBoard;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { DataBinder } from "@fluid-experimental/property-binder";
import _ from "lodash";
import { SQUARES_DEMO_SCHEMAS } from "@fluid-example/schemas";
import { assert } from "@fluidframework/core-utils";
import { IPropertyTree } from "../dataObject";
import { renderMoveButton } from "../view";
import { SquaresBoard } from "./views/squaresBoard";
import { IPoint2D, Square } from "./views/square";
import { IPropertyTree } from "../dataObject.js";
import { renderMoveButton } from "../view.js";
import { SquaresBoard } from "./views/squaresBoard.js";
import { IPoint2D, Square } from "./views/square.js";

import { ColoredSquareBinding } from "./bindings/coloredSquareBinding";
import { SquaresBoardBinding } from "./bindings/squaresBoardBinding";
import { ColoredSquareBinding } from "./bindings/coloredSquareBinding.js";
import { SquaresBoardBinding } from "./bindings/squaresBoardBinding.js";

export function moveSquares(propertyNode: any, guid: string) {
const board = propertyNode.get(guid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { SquaresBoard } from "./squaresBoard";
import { SquaresBoard } from "./squaresBoard.js";

export interface IPoint2D {
x: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { Square } from "./square";
import { Square } from "./square.js";

export class SquaresBoard {
static HEIGHT = 400;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import {
import { SharedPropertyTree } from "@fluid-experimental/property-dds";
import { PropertyProxy } from "@fluid-experimental/property-proxy";
import { DataBinder } from "@fluid-experimental/property-binder";
import { SquaresApp, randomSquaresBoardGenerator, moveSquares } from "./demo/squaresApp";
import { SquaresApp, randomSquaresBoardGenerator, moveSquares } from "./demo/squaresApp.js";

import { IPropertyTree } from "./dataObject";
import { IPropertyTree } from "./dataObject.js";

/**
* Render an IDiceRoller into a given div as a text character, with a button to roll it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@

import { SessionStorageModelLoader, StaticCodeLoader } from "@fluid-example/example-utils";

import { PropertyTreeContainerRuntimeFactory, IPropertyTreeAppModel } from "../src/containerCode";
import { renderApp } from "../src/view";
import {
PropertyTreeContainerRuntimeFactory,
IPropertyTreeAppModel,
} from "../src/containerCode.js";
import { renderApp } from "../src/view.js";

/**
* This is a helper function for loading the page. It's required because getting the Fluid Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ module.exports = (env) => {
loader: "ts-loader",
},
{
// Required until all transitive dependencies are fully ESM.
// https://webpack.js.org/configuration/module/#resolvefullyspecified
test: /\.m?js/,
resolve: {
fullySpecified: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ module.exports = (env) => {
test: /\.m?js$/,
use: ["source-map-loader"],
resolve: {
// Required until all transitive dependencies are fully ESM.
// https://webpack.js.org/configuration/module/#resolvefullyspecified
fullySpecified: false,
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"compilerOptions": {
"experimentalDecorators": true,
"allowJs": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"compilerOptions": {
"rootDir": "./",
"outDir": "../../dist/test",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module.exports = (env) => {
{
test: /\.m?js/,
resolve: {
// Required until all transitive dependencies are fully ESM.
// https://webpack.js.org/configuration/module/#resolvefullyspecified
fullySpecified: false,
},
},
Expand Down
5 changes: 1 addition & 4 deletions experimental/dds/ot/ot/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"compilerOptions": {
"rootDir": "./",
"outDir": "../../dist/test",
Expand Down
5 changes: 1 addition & 4 deletions experimental/dds/ot/sharejs/json1/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../../common/build/build-common/tsconfig.test.json"],
"compilerOptions": {
"rootDir": "./",
"outDir": "../../dist/test",
Expand Down
5 changes: 1 addition & 4 deletions experimental/dds/sequence-deprecated/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"compilerOptions": {
"rootDir": "./",
"outDir": "../../dist/test",
Expand Down
5 changes: 1 addition & 4 deletions packages/common/client-utils/src/test/jest/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/common/client-utils/src/test/mocha/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/common/client-utils/src/test/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"exclude": ["dist", "node_modules"],
"references": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/common/core-interfaces/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/common/core-utils/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/cell/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/counter/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/ink/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/map/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/matrix/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/merge-tree/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/ordered-collection/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/pact-map/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/register-collection/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/sequence/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
5 changes: 1 addition & 4 deletions packages/dds/shared-object-base/src/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": [
"../../../../../common/build/build-common/tsconfig.base.json",
"../../../../../common/build/build-common/tsconfig.test.json",
],
"extends": ["../../../../../common/build/build-common/tsconfig.test.json"],
"include": ["./**/*"],
"references": [
{
Expand Down
Loading

0 comments on commit 2caf72f

Please sign in to comment.