From 9478a38fc1215f3b6bdee22a6681e252310618c2 Mon Sep 17 00:00:00 2001 From: Mat Hansen Date: Tue, 10 Jul 2018 18:14:42 +0200 Subject: [PATCH] Remove uneccessary relative paths form package.json scripts * This restores the ability to run scripts on windows --- packages/angular-material/package.json | 16 ++++++++-------- packages/angular/package.json | 14 +++++++------- packages/core/package.json | 14 +++++++------- packages/examples/package.json | 6 +++--- packages/i18n/package.json | 14 +++++++------- packages/material-tree-renderer/package.json | 12 ++++++------ packages/material/package.json | 12 ++++++------ packages/react/package.json | 14 +++++++------- packages/test/package.json | 2 +- packages/vanilla/package.json | 16 ++++++++-------- packages/webcomponent/package.json | 14 +++++++------- 11 files changed, 67 insertions(+), 67 deletions(-) diff --git a/packages/angular-material/package.json b/packages/angular-material/package.json index b1d1987640..5071c729d8 100644 --- a/packages/angular-material/package.json +++ b/packages/angular-material/package.json @@ -14,15 +14,15 @@ "main": "./lib/index.js", "typings": "./lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config webpack/webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", - "dev": "../../node_modules/.bin/webpack --config webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline", + "bundle": "webpack --config webpack/webpack.build.js --env=production --display-error-details", + "build": "tsc", + "dev": "webpack --config webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "test": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/ava", - "test-cov": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/nyc ../../node_modules/.bin/ava", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Core' --mode file --out docs src" + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "report": "nyc report --reporter=html", + "test": "tsc --project test/tsconfig.test.json && ava", + "test-cov": "tsc --project test/tsconfig.test.json && nyc ava", + "doc": "typedoc --name 'JSON Forms Core' --mode file --out docs src" }, "ava": { "verbose": true, diff --git a/packages/angular/package.json b/packages/angular/package.json index 4e2c496c26..8a8ec5650a 100644 --- a/packages/angular/package.json +++ b/packages/angular/package.json @@ -14,14 +14,14 @@ "main": "./lib/index.js", "typings": "./lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config ./webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", + "bundle": "webpack --config ./webpack.build.js --env=production --display-error-details", + "build": "tsc", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "test": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/ava", - "test-cov": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/nyc ../../node_modules/.bin/ava", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Core' --mode file --out docs src" + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "report": "nyc report --reporter=html", + "test": "tsc --project test/tsconfig.test.json && ava", + "test-cov": "tsc --project test/tsconfig.test.json && nyc ava", + "doc": "typedoc --name 'JSON Forms Core' --mode file --out docs src" }, "nyc": { "reporter": [ diff --git a/packages/core/package.json b/packages/core/package.json index 9d13f0cdce..6bae3e3cac 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -16,14 +16,14 @@ "main": "./lib/index.js", "typings": "./lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config ./webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", + "bundle": "webpack --config ./webpack.build.js --env=production --display-error-details", + "build": "tsc", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "test": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/ava", - "test-cov": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/nyc ../../node_modules/.bin/ava", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Core' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "report": "nyc report --reporter=html", + "test": "tsc --project test/tsconfig.test.json && ava", + "test-cov": "tsc --project test/tsconfig.test.json && nyc ava", + "doc": "typedoc --name 'JSON Forms Core' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" }, "ava": { "verbose": true, diff --git a/packages/examples/package.json b/packages/examples/package.json index 8e7cd9ef83..af119bb7e5 100644 --- a/packages/examples/package.json +++ b/packages/examples/package.json @@ -19,11 +19,11 @@ "main": "lib/index.js", "typings": "lib/ts-build/index.d.ts", "scripts": { - "build": "../../node_modules/.bin/tsc", + "build": "tsc", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", "test": "echo 'Nothing to do for `examples` package'", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Examples' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" + "doc": "typedoc --name 'JSON Forms Examples' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" }, "dependencies": { "@jsonforms/core": "^2.0.2", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 9c455d7613..5df17a222f 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -14,14 +14,14 @@ "main": "./lib/index.js", "typings": "./lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config ./webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", + "bundle": "webpack --config ./webpack.build.js --env=production --display-error-details", + "build": "tsc", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "test": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/ava", - "test-cov": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/nyc ../../node_modules/.bin/ava", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms I18n' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "report": "nyc report --reporter=html", + "test": "tsc --project test/tsconfig.test.json && ava", + "test-cov": "tsc --project test/tsconfig.test.json && nyc ava", + "doc": "typedoc --name 'JSON Forms I18n' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" }, "ava": { "verbose": true, diff --git a/packages/material-tree-renderer/package.json b/packages/material-tree-renderer/package.json index 5853ce9d39..7dd6a5845d 100644 --- a/packages/material-tree-renderer/package.json +++ b/packages/material-tree-renderer/package.json @@ -17,16 +17,16 @@ "main": "./lib/index.js", "typings": "./lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config ./webpack/webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", + "bundle": "webpack --config ./webpack/webpack.build.js --env=production --display-error-details", + "build": "tsc", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "dev": "../../node_modules/.bin/webpack --config webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json", + "dev": "webpack --config webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline", + "lint": "tslint --project ../../tslint.json", "start": "npm run dev", "test": "jest --no-cache", "test-cov": "jest --no-cache", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Material Tree Renderer' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" + "report": "nyc report --reporter=html", + "doc": "typedoc --name 'JSON Forms Material Tree Renderer' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" }, "jest": { "moduleFileExtensions": [ diff --git a/packages/material/package.json b/packages/material/package.json index 8466426db5..7e5bb3134e 100644 --- a/packages/material/package.json +++ b/packages/material/package.json @@ -14,15 +14,15 @@ "main": "lib/index.js", "typings": "lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config ./webpack/webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", - "dev": "../../node_modules/.bin/webpack --config webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline", + "bundle": "webpack --config ./webpack/webpack.build.js --env=production --display-error-details", + "build": "tsc", + "dev": "webpack --config webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", "test": "jest --no-cache", "test-cov": "jest --no-cache", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Material Renderers' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" + "report": "nyc report --reporter=html", + "doc": "typedoc --name 'JSON Forms Material Renderers' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" }, "ava": { "verbose": true, diff --git a/packages/react/package.json b/packages/react/package.json index 9b96cabd54..c1c704034d 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -16,14 +16,14 @@ "main": "./lib/index.js", "typings": "./lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config ./webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", + "bundle": "webpack --config ./webpack.build.js --env=production --display-error-details", + "build": "tsc", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "test": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/ava", - "test-cov": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/nyc ../../node_modules/.bin/ava", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Core' --mode file --out docs src" + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "report": "nyc report --reporter=html", + "test": "tsc --project test/tsconfig.test.json && ava", + "test-cov": "tsc --project test/tsconfig.test.json && nyc ava", + "doc": "typedoc --name 'JSON Forms Core' --mode file --out docs src" }, "ava": { "verbose": true, diff --git a/packages/test/package.json b/packages/test/package.json index b5428ec326..d2748341ee 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -4,7 +4,7 @@ "version": "2.0.2", "description": "Test utilities for JSON Forms", "scripts": { - "build": "../../node_modules/.bin/tsc", + "build": "tsc", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", "test": "echo 'Nothing to do for `test` package'" }, diff --git a/packages/vanilla/package.json b/packages/vanilla/package.json index 3e7b2a34d6..d6ad6b50bc 100644 --- a/packages/vanilla/package.json +++ b/packages/vanilla/package.json @@ -5,15 +5,15 @@ "main": "lib/index.js", "typings": "lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config ./webpack/webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", - "dev": "../../node_modules/.bin/webpack --config ./webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline", + "bundle": "webpack --config ./webpack/webpack.build.js --env=production --display-error-details", + "build": "tsc", + "dev": "webpack --config ./webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "test": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/ava", - "test-cov": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/nyc ../../node_modules/.bin/ava ", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Vanilla Renderers' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "report": "nyc report --reporter=html", + "test": "tsc --project test/tsconfig.test.json && ava", + "test-cov": "tsc --project test/tsconfig.test.json && nyc ava ", + "doc": "typedoc --name 'JSON Forms Vanilla Renderers' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" }, "dependencies": { "@jsonforms/core": "^2.0.2", diff --git a/packages/webcomponent/package.json b/packages/webcomponent/package.json index f2bcb179f0..c493a466b9 100644 --- a/packages/webcomponent/package.json +++ b/packages/webcomponent/package.json @@ -16,14 +16,14 @@ "main": "./lib/index.js", "typings": "./lib/index.d.ts", "scripts": { - "bundle": "../../node_modules/.bin/webpack --config ./webpack.build.js --env=production --display-error-details", - "build": "../../node_modules/.bin/tsc", + "bundle": "webpack --config ./webpack.build.js --env=production --display-error-details", + "build": "tsc", "clean": "rm -rf lib coverage dist .nyc_output 2> /dev/null", - "lint": "../../node_modules/.bin/tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", - "report": "../../node_modules/.bin/nyc report --reporter=html", - "test": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/ava", - "test-cov": "../../node_modules/.bin/tsc --project test/tsconfig.test.json && ../../node_modules/.bin/nyc ../../node_modules/.bin/ava", - "doc": "../../node_modules/.bin/typedoc --name 'JSON Forms Web Component Wrapper' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" + "lint": "tslint --project ../../tslint.json --exclude src/models/jsonSchema.ts", + "report": "nyc report --reporter=html", + "test": "tsc --project test/tsconfig.test.json && ava", + "test-cov": "tsc --project test/tsconfig.test.json && nyc ava", + "doc": "typedoc --name 'JSON Forms Web Component Wrapper' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" }, "ava": { "verbose": true,