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

Export node module as esm #2163

Closed
wants to merge 7 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
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
"name": "@weaveworks/weave-gitops",
"version": "0.10.2-rc.1",
"description": "Weave GitOps core",
"module": "index.js",
"type": "module",
"exports": {
".": {
"import": "./index.js"
}
},
"targets": {
"default": {
"distDir": "bin/dist",
Expand All @@ -11,7 +18,8 @@
"lib": {
"includeNodeModules": false,
"isLibrary": true,
"outputFormat": "commonjs",
"optimize": false,
"outputFormat": "esmodule",
"distDir": "dist",
"source": "ui/index.ts",
"sourceMap": false
Expand Down
2 changes: 0 additions & 2 deletions ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import { Core as coreClient } from "./lib/api/core/core.pb";
import { Kind } from "./lib/api/core/types.pb";
import { formatURL } from "./lib/nav";
import {
Automation,
Bucket,
GitRepository,
HelmChart,
Expand All @@ -81,7 +80,6 @@ export {
Auth,
AuthCheck,
AuthContextProvider,
Automation,
AutomationsTable,
Bucket,
BucketDetail,
Expand Down
20 changes: 10 additions & 10 deletions ui/lib/images.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/* eslint-disable */
// @ts-nocheck

import bg from "data-url:../images/bg-circles.png";
import failedSrc from "data-url:../images/failed.svg";
import fluxIconHoverSrc from "data-url:../images/flux-icon-hover.svg";
import fluxIconSrc from "data-url:../images/flux-icon.svg";
import logoSrc from "data-url:../images/logo.svg";
import reconcileSrc from "data-url:../images/reconcile.svg";
import signInWheel from "data-url:../images/SignInWheel.svg";
import successSrc from "data-url:../images/success.svg";
import suspendedSrc from "data-url:../images/suspended.svg";
import weaveLogo from "data-url:../images/WeaveLogo.svg";
import bg from "../images/bg-circles.png";
import failedSrc from "../images/failed.svg";
import fluxIconHoverSrc from "../images/flux-icon-hover.svg";
import fluxIconSrc from "../images/flux-icon.svg";
import logoSrc from "../images/logo.svg";
import reconcileSrc from "../images/reconcile.svg";
import signInWheel from "../images/SignInWheel.svg";
import successSrc from "../images/success.svg";
import suspendedSrc from "../images/suspended.svg";
import weaveLogo from "../images/WeaveLogo.svg";

export default {
bg,
Expand Down
3 changes: 2 additions & 1 deletion ui/pages/SignIn.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Divider, IconButton, Input, InputAdornment } from "@material-ui/core";
import { Visibility, VisibilityOff } from "@material-ui/icons";
import Visibility from "@material-ui/icons/Visibility";
import VisibilityOff from "@material-ui/icons/VisibilityOff";
import * as React from "react";
import styled from "styled-components";
import Alert from "../components/Alert";
Expand Down