Skip to content

Commit

Permalink
Merge pull request #187 from terrestris/fix-paths-and-add-dist
Browse files Browse the repository at this point in the history
Build fix
  • Loading branch information
Unraveler committed Oct 11, 2022
2 parents 2ffe27a + ca8d945 commit f4d1774
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 14 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"description": "A set of helper classes for working with d3 charts.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"src",
"dist"
],
"scripts": {
"prerelease": "npm run build:dist && npm run compile",
"release": "np --no-yarn && git push https://github.com/terrestris/d3-util.git master --tags",
"lint": "eslint --ext js src/",
"test": "jest --maxWorkers=4 --coverage",
Expand All @@ -13,7 +18,8 @@
"clean:dist": "rimraf ./dist/*",
"build:dist": "npm run clean:dist && webpack --config browser-build.config.js",
"build:dev": "npm run clean:dist && webpack --mode=development",
"start:dev": "webpack --config dev-build.config.js --watch --mode=development"
"start:dev": "webpack --config dev-build.config.js --watch --mode=development",
"compile": "tsc --project tsconfig.json"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/AxesUtil/AxesUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { ScaleLinear, ScaleLogarithmic } from 'd3-scale';
import { FormatLocaleDefinition, formatLocale } from 'd3-format';
import { select } from 'd3-selection';
import * as moment from 'moment';
import { Scale } from 'src/ScaleUtil/ScaleUtil';
import { NodeSelection } from 'src/BaseUtil/BaseUtil';
import { Scale } from '../ScaleUtil/ScaleUtil';
import { NodeSelection } from '../BaseUtil/BaseUtil';
import deDE from '../locales/de-DE';
import enUS from '../locales/en-US';

Expand Down
2 changes: 1 addition & 1 deletion src/ChartRenderer/ChartRenderer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { select } from 'd3-selection';
import { NodeSelection } from 'src/BaseUtil/BaseUtil';
import { NodeSelection } from '../BaseUtil/BaseUtil';

export type ZoomType = 'transform' | 'rerender' | 'none';

Expand Down
2 changes: 1 addition & 1 deletion src/LabelUtil/LabelUtil.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { select } from 'd3-selection';
import { NodeSelection } from 'src/BaseUtil/BaseUtil';
import { NodeSelection } from '../BaseUtil/BaseUtil';

/**
* Utilities to word wrap labels automatically.
Expand Down
4 changes: 2 additions & 2 deletions src/LegendComponent/LegendComponent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import LabelUtil from '../LabelUtil/LabelUtil';
import { event } from 'd3-selection';
import { ChartComponent } from 'src/ChartRenderer/ChartRenderer';
import { NodeSelection } from 'src/BaseUtil/BaseUtil';
import { ChartComponent } from '../ChartRenderer/ChartRenderer';
import { NodeSelection } from '../BaseUtil/BaseUtil';

const SVG_DEFS = {
LEGEND_ICON_BACKGROUND: 'M-3 -14 h 25 v 16 h -25 Z',
Expand Down
6 changes: 3 additions & 3 deletions src/ScaleUtil/ScaleUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
ScaleLogarithmic,
ScaleTime
} from 'd3-scale';
import { AxisConfiguration } from 'src/AxesUtil/AxesUtil';
import { TimeseriesConfiguration } from 'src/TimeseriesComponent/TimeseriesComponent';
import { BarConfiguration } from 'src/BarComponent/BarComponent';
import { AxisConfiguration } from '../AxesUtil/AxesUtil';
import { TimeseriesConfiguration } from '../TimeseriesComponent/TimeseriesComponent';
import { BarConfiguration } from '../BarComponent/BarComponent';

export type Scale = ScaleLinear<number, number>
| ScaleBand<string>
Expand Down
2 changes: 1 addition & 1 deletion src/TimeseriesComponent/TimeseriesComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
line as d3line,
area as d3area
} from 'd3-shape';
import { ChartComponent, ZoomType } from 'src/ChartRenderer/ChartRenderer';
import { ChartComponent, ZoomType } from '../ChartRenderer/ChartRenderer';

export type TimeseriesDatum = [number, number, Function | undefined, any | undefined];

Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"checkJs": false,
"declaration": true,
"outDir": "dist",
Expand All @@ -12,7 +11,6 @@
"allowJs": false,
"jsx": "react",
"moduleResolution": "node",
"rootDir": "./",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Expand All @@ -23,7 +21,7 @@
"resolveJsonModule": true
},
"include": [
"src/**/*.ts",
"./src/**/*.ts",
"oltypes.d.ts"
],
"exclude": [
Expand Down

0 comments on commit f4d1774

Please sign in to comment.