Skip to content

Commit

Permalink
build: remove top level index.js files
Browse files Browse the repository at this point in the history
Co-authored-by: Taranveer Virk <[email protected]>
  • Loading branch information
biniam and virkt25 committed Feb 1, 2018
1 parent eea1e15 commit eb4237a
Show file tree
Hide file tree
Showing 46 changed files with 51 additions and 297 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"build": "lerna run build --parallel --loglevel=silent",
"build:current": "lerna run build:current --parallel --loglevel=silent",
"build:full": "npm run clean:lerna && npm run bootstrap && npm run build && npm run mocha && npm run lint",
"pretest": "npm run clean && npm run build:current",
"pretest": "npm run clean && npm run build",
"test": "node packages/build/bin/run-nyc npm run mocha",
"mocha": "node packages/build/bin/run-mocha \"packages/*/DIST/test/**/*.js\" \"packages/cli/test/*.js\"",
"posttest": "npm run lint"
Expand Down
6 changes: 0 additions & 6 deletions packages/authentication/index.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/authentication/index.js

This file was deleted.

7 changes: 3 additions & 4 deletions packages/authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
"engines": {
"node": ">=6"
},
"main": "dist/index.js",
"scripts": {
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:apidocs": "lb-apidocs",
"clean": "lb-clean loopback-authentication*.tgz dist package api-docs",
"integration": "lb-mocha \"DIST/test/integration/**/*.js\"",
"prepublishOnly": "npm run build && npm run build:apidocs",
"pretest": "npm run build:current",
"pretest": "npm run build",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/integration/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
"verify": "npm pack && tar xf loopback-authentication*.tgz && tree package && npm run clean"
Expand Down
6 changes: 0 additions & 6 deletions packages/context/index.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/context/index.js

This file was deleted.

7 changes: 3 additions & 4 deletions packages/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"engines": {
"node": ">=6"
},
"main": "dist/index.js",
"scripts": {
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:apidocs": "lb-apidocs",
"clean": "lb-clean loopback-context*.tgz dist package api-docs",
"prepublishOnly": "npm run build && npm run build:apidocs",
"pretest": "npm run build:current",
"pretest": "npm run build",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
"verify": "npm pack && tar xf loopback-context*.tgz && tree package && npm run clean"
Expand Down
6 changes: 0 additions & 6 deletions packages/core/index.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/core/index.js

This file was deleted.

7 changes: 3 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"engines": {
"node": ">=6"
},
"main": "dist/index.js",
"scripts": {
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:apidocs": "lb-apidocs",
"clean": "lb-clean loopback-core*.tgz dist package api-docs",
"prepublishOnly": "npm run build && npm run build:apidocs",
"pretest": "npm run build:current",
"pretest": "npm run build",
"integration": "lb-mocha \"DIST/test/integration/**/*.js\"",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/integration/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
Expand Down
6 changes: 0 additions & 6 deletions packages/example-getting-started/index.d.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/example-getting-started/index.js

This file was deleted.

8 changes: 3 additions & 5 deletions packages/example-getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
"version": "1.0.1-alpha.4",
"description": "An application and tutorial on how to build with LoopBack 4.",
"private": true,
"main": "index.js",
"main": "dist/index.js",
"engines": {
"node": ">=8"
},
"scripts": {
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:apidocs": "lb-apidocs",
"clean": "lb-clean *example-getting-started*.tgz dist package api-docs",
"prepublishOnly": "npm run build && npm run build:apidocs",
"pretest": "npm run build:current",
"pretest": "npm run build",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
"verify": "npm pack && tar xf loopback-getting-started*.tgz && tree package && npm run clean",
Expand Down
6 changes: 0 additions & 6 deletions packages/example-hello-world/index.d.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/example-hello-world/index.js

This file was deleted.

6 changes: 2 additions & 4 deletions packages/example-hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
"version": "4.0.0-alpha.1",
"description": "A simple hello-world Application using LoopBack 4",
"private": true,
"main": "index.js",
"main": "dist/index.js",
"engines": {
"node": ">=6"
},
"scripts": {
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:apidocs": "lb-apidocs",
"clean": "lb-clean *example-hello-world*.tgz dist package api-docs",
"prepublishOnly": "npm run build && npm run build:apidocs",
Expand Down
6 changes: 0 additions & 6 deletions packages/example-log-extension/index.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/example-log-extension/index.js

This file was deleted.

8 changes: 3 additions & 5 deletions packages/example-log-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"version": "4.0.0-alpha.4",
"description": "An example extension project for LoopBack 4",
"private": true,
"main": "index.js",
"main": "dist/index.js",
"engines": {
"node": ">=6"
},
"scripts": {
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:apidocs": "lb-apidocs",
"build:watch": "lb-tsc --watch",
"clean": "lb-clean *example-log-extension-*.tgz dist package api-docs",
Expand All @@ -22,7 +20,7 @@
"tslint": "lb-tslint",
"tslint:fix": "npm run tslint -- --fix",
"prepublishOnly": "npm run build",
"pretest": "npm run clean && npm run build:current",
"pretest": "npm run clean && npm run build",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"posttest": "npm run lint",
"verify": "npm pack && tar xf *example-log-extension*.tgz && tree package && npm run clean"
Expand Down
6 changes: 0 additions & 6 deletions packages/example-rpc-server/index.d.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/example-rpc-server/index.js

This file was deleted.

9 changes: 3 additions & 6 deletions packages/example-rpc-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
"engines": {
"node": ">=6"
},
"main": "dist/index.js",
"scripts": {
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:watch": "lb-tsc --watch",
"clean": "lb-clean",
"lint": "npm run prettier:check && npm run tslint",
Expand All @@ -23,7 +22,7 @@
"prettier:fix": "npm run prettier:cli -- --write",
"tslint": "lb-tslint",
"tslint:fix": "npm run tslint -- --fix",
"pretest": "npm run clean && npm run build:current",
"pretest": "npm run clean && npm run build",
"test": "lb-dist mocha --opts node_modules/@loopback/build/mocha.opts DIST/test",
"posttest": "npm run lint",
"start": "npm run build && node .",
Expand All @@ -37,8 +36,6 @@
"license": "MIT",
"files": [
"README.md",
"index.js",
"index.d.ts",
"dist"
],
"dependencies": {
Expand Down
6 changes: 0 additions & 6 deletions packages/metadata/index.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/metadata/index.js

This file was deleted.

10 changes: 4 additions & 6 deletions packages/metadata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"engines": {
"node": ">=6"
},
"main": "dist/index.js",
"scripts": {
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:apidocs": "lb-apidocs",
"clean": "lb-clean loopback-metadata*.tgz dist package api-docs",
"prepublishOnly": "npm run build && npm run build:apidocs",
"pretest": "npm run build:current",
"pretest": "npm run build",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
"verify": "npm pack && tar xf loopback-metadata*.tgz && tree package && npm run clean"
Expand All @@ -39,8 +38,7 @@
],
"files": [
"README.md",
"index.js",
"index.d.ts",
"dist/index.js",
"dist/src",
"api-docs",
"src"
Expand Down
6 changes: 0 additions & 6 deletions packages/openapi-spec-builder/index.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/openapi-spec-builder/index.js

This file was deleted.

8 changes: 3 additions & 5 deletions packages/openapi-spec-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"engines": {
"node": ">=6"
},
"main": "dist/index.js",
"scripts": {
"build": "npm run build:dist",
"build:current": "lb-tsc",
"build:dist": "lb-tsc es2017",
"build": "lb-tsc",
"build:apidocs": "lb-apidocs",
"clean": "lb-clean loopback-openapi-spec*.tgz dist package api-docs",
"prepublishOnly": "npm run build && npm run build:apidocs",
Expand All @@ -32,8 +31,7 @@
},
"files": [
"README.md",
"index.js",
"index.d.ts",
"dist/index.js",
"dist/src",
"api-docs",
"src"
Expand Down
6 changes: 0 additions & 6 deletions packages/openapi-spec/index.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/openapi-spec/index.js

This file was deleted.

Loading

0 comments on commit eb4237a

Please sign in to comment.