packages/cli: target modern browsers and switch output to module

This commit is contained in:
Patrik Oldsberg
2020-04-26 21:10:53 +02:00
parent 4c7a9784cc
commit b87d266c74
15 changed files with 17 additions and 16 deletions
+2 -1
View File
@@ -6,7 +6,8 @@
"noEmit": false,
"declarationMap": true,
"incremental": true,
"module": "es6",
"target": "ES2019",
"module": "ESNext",
"resolveJsonModule": true,
"esModuleInterop": true,
"types": ["node", "jest"]
@@ -27,8 +27,8 @@ import { paths } from 'lib/paths';
export default {
input: 'src/index.ts',
output: {
file: 'dist/index.cjs.js',
format: 'cjs',
file: 'dist/index.esm.js',
format: 'module',
},
plugins: [
peerDepsExternal({
@@ -1,7 +1,7 @@
{
"name": "plugin-welcome",
"version": "0.0.0",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"private": true,
"scripts": {
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-{{id}}",
"version": "{{version}}",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
"private": true,
+1 -1
View File
@@ -16,7 +16,7 @@
"backstage"
],
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "backstage-cli plugin:build",
+1 -1
View File
@@ -16,7 +16,7 @@
"backstage"
],
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "backstage-cli plugin:build",
+1 -1
View File
@@ -16,7 +16,7 @@
"backstage"
],
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "backstage-cli plugin:build",
+1 -1
View File
@@ -16,7 +16,7 @@
"backstage"
],
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "backstage-cli plugin:build",
+1 -1
View File
@@ -16,7 +16,7 @@
"backstage"
],
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "backstage-cli plugin:build",
+1 -1
View File
@@ -16,7 +16,7 @@
"backstage"
],
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "backstage-cli plugin:build",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-home-page",
"version": "0.1.1-alpha.4",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
"private": true,
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-inventory",
"version": "0.1.1-alpha.4",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
"private": true,
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-lighthouse",
"version": "0.1.1-alpha.4",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
"private": true,
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-tech-radar",
"version": "0.1.1-alpha.4",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
"private": true,
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-welcome",
"version": "0.1.1-alpha.4",
"main": "dist/index.cjs.js",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"private": true,
"license": "Apache-2.0",