Skip to content

Commit

Permalink
Fixed perspective-jupyterlab asset leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Jan 28, 2019
1 parent ca6355e commit 627ac48
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions packages/perspective-jupyterlab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"version": "0.2.12",
"description": "Perspective.js",
"files": [
"dist/*.d.ts",
"dist/*.js.map",
"dist/*.js",
"dist/*.wasm",
"build/*.d.ts",
"build/*.js.map",
"build/*.js",
"build/*.wasm",
"src/css/*.css",
"babel.config.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "build/index.js",
"types": "build/index.d.ts",
"directories": {
"dist": "dist/"
"build": "build/"
},
"license": "Apache-2.0",
"publishConfig": {
Expand Down Expand Up @@ -53,6 +53,6 @@
"webpack": "^2.2.1"
},
"jupyterlab": {
"extension": "dist/index.js"
"extension": "build/index.js"
}
}
2 changes: 1 addition & 1 deletion packages/perspective-jupyterlab/src/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
transform: {"^.+\\.(ts|tsx)$": "ts-jest", ".+\\.(css|styl|less|sass|scss)$": "jest-transform-css"},
cache: false,
testMatch: ["<rootDir>/test/ts/*.test.ts"],
testPathIgnorePatterns: ["<rootDir>/dist", "<rootDir>/test/js"],
testPathIgnorePatterns: ["<rootDir>/build", "<rootDir>/test/js"],
transformIgnorePatterns: ["node_modules"],
moduleNameMapper: {
"\\.(css|less)$": "<rootDir>/test/js/styleMock.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ module.exports = {
output: {
filename: "index.js",
libraryTarget: "umd",
path: path.resolve(__dirname, "../../dist")
path: path.resolve(__dirname, "../../build")
}
};
2 changes: 1 addition & 1 deletion packages/perspective-jupyterlab/test/ts/view.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Object.defineProperty(window, 'MutationObserver', { value: class {
observe(element: any, initObject: any) {}
}});

import {PerspectiveView} from '../../dist/index';
import {PerspectiveView} from '../../build/index';

describe('Checks view interface', () => {
test("Check dom", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-jupyterlab/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"resolveJsonModule": true,
"allowJs": true,
"target": "es2016",
"outDir": "./dist",
"outDir": "./build",
"lib": ["es2016", "ES2015.Promise", "DOM"],
"types": ["jest"]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective/src/loader/file_worker_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ exports.default = function loader(content) {
.replace(/(cjs\/js)/, "build");
}
content = fs.readFileSync(inputPath).toString();
if (!options.compiled) {
if (!options.inline) {
this.emitFile(outputPath, "" + content);
const map_file = `${inputPath}.map`;
if (fs.existsSync(map_file)) {
Expand Down

0 comments on commit 627ac48

Please sign in to comment.