Skip to content

Commit

Permalink
Removed dual output
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jul 5, 2024
1 parent fd5ff47 commit bbb6e4f
Show file tree
Hide file tree
Showing 76 changed files with 322 additions and 1,084 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Fixed event dispatching for providers in `piral-blazor`
- Fixed navigation storm in angular pilets (#672)
- Fixed declaration merging for `moduleResolution` set to `bundler` (#701)
- Removed legacy `require` (CommonJS) output in `piral-core` and related libs
- Improved setup of event listeners in `piral-blazor` (#696)
- Improved fallback signature in `piral-translate`
- Improved streaming update in `piral-update`
Expand Down
10 changes: 1 addition & 9 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"cacheableOperations": [
"build",
"build:convert",
"build:commonjs",
"build:esnext",
"build:commonjs:tsc",
"build:commonjs:system",
"build:esnext:tsc",
"build:esnext:system",
"build:codegen",
Expand All @@ -35,14 +32,9 @@
"{projectRoot}/convert.d.ts"
]
},
"build:commonjs": {
"outputs": [
"{projectRoot}/lib"
]
},
"build:esnext": {
"outputs": [
"{projectRoot}/esm"
"{projectRoot}/lib"
]
},
"build:docs": {
Expand Down
2 changes: 1 addition & 1 deletion src/converters/piral-aurelia/convert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createConverter } from './esm/converter';
import { createConverter } from './lib/converter';

export interface HtmlComponent<TProps> {
component: {
Expand Down
28 changes: 6 additions & 22 deletions src/converters/piral-aurelia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,17 @@
"author": "smapiot",
"homepage": "https://piral.io",
"license": "MIT",
"module": "esm/index.js",
"module": "lib/index.js",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./lib/index.js"
},
"./convert": {
"import": "./convert.js"
},
"./esm/*": {
"import": "./esm/*"
},
"./lib/*": {
"require": "./lib/*"
},
"./_/*": {
"import": "./esm/*.js",
"require": "./lib/*.js"
},
".": "./lib/index.js",
"./convert": "./convert.js",
"./lib/*": "./lib/*",
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"esm",
"lib",
"src",
"convert.d.ts",
Expand All @@ -56,10 +41,9 @@
},
"scripts": {
"cleanup": "rimraf esm lib convert.d.ts convert.js",
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
"build": "yarn build:esnext && yarn build:convert",
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
"build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
"typedoc": "typedoc --json ../../../docs/types/piral-aurelia.json src --exclude \"src/**/*.test.*\"",
"test": "echo \"Error: run tests from root\" && exit 1"
},
Expand Down
6 changes: 3 additions & 3 deletions src/converters/piral-blazor/convert.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createConverter } from './esm/converter';
import { createDependencyLoader } from './esm/dependencies';
import type { BlazorOptions } from './esm/types';
import { createConverter } from './lib/converter';
import { createDependencyLoader } from './lib/dependencies';
import type { BlazorOptions } from './lib/types';

export interface HtmlComponent<TProps> {
component: {
Expand Down
28 changes: 6 additions & 22 deletions src/converters/piral-blazor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,18 @@
"author": "smapiot",
"homepage": "https://piral.io",
"license": "MIT",
"module": "esm/index.js",
"module": "lib/index.js",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./lib/index.js"
},
"./convert": {
"import": "./convert.js"
},
"./esm/*": {
"import": "./esm/*"
},
"./lib/*": {
"require": "./lib/*"
},
"./_/*": {
"import": "./esm/*.js",
"require": "./lib/*.js"
},
".": "./lib/index.js",
"./convert": "./convert.js",
"./lib/*": "./lib/*",
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"infra.codegen",
"esm",
"lib",
"src",
"convert.d.ts",
Expand All @@ -59,10 +44,9 @@
},
"scripts": {
"cleanup": "rimraf esm lib convert.d.ts convert.js",
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
"build": "yarn build:esnext && yarn build:convert",
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
"build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
"typedoc": "typedoc --json ../../../docs/types/piral-blazor.json src --exclude \"src/**/*.test.*\"",
"test": "echo \"Error: run tests from root\" && exit 1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/converters/piral-cycle/convert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createConverter } from './esm/converter';
import { createConverter } from './lib/converter';

export interface HtmlComponent<TProps> {
component: {
Expand Down
28 changes: 6 additions & 22 deletions src/converters/piral-cycle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,17 @@
"author": "smapiot",
"homepage": "https://piral.io",
"license": "MIT",
"module": "esm/index.js",
"module": "lib/index.js",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./lib/index.js"
},
"./convert": {
"import": "./convert.js"
},
"./esm/*": {
"import": "./esm/*"
},
"./lib/*": {
"require": "./lib/*"
},
"./_/*": {
"import": "./esm/*.js",
"require": "./lib/*.js"
},
".": "./lib/index.js",
"./convert": "./convert.js",
"./lib/*": "./lib/*",
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"esm",
"lib",
"src",
"convert.d.ts",
Expand All @@ -56,10 +41,9 @@
},
"scripts": {
"cleanup": "rimraf esm lib convert.d.ts convert.js",
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
"build": "yarn build:esnext && yarn build:convert",
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
"build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
"typedoc": "typedoc --json ../../../docs/types/piral-cycle.json src --exclude \"src/**/*.test.*\"",
"test": "echo \"Error: run tests from root\" && exit 1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/converters/piral-elm/convert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createConverter } from './esm/converter';
import { createConverter } from './lib/converter';

export interface HtmlComponent<TProps> {
component: {
Expand Down
28 changes: 6 additions & 22 deletions src/converters/piral-elm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,17 @@
"author": "smapiot",
"homepage": "https://piral.io",
"license": "MIT",
"module": "esm/index.js",
"module": "lib/index.js",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./lib/index.js"
},
"./convert": {
"import": "./convert.js"
},
"./esm/*": {
"import": "./esm/*"
},
"./lib/*": {
"require": "./lib/*"
},
"./_/*": {
"import": "./esm/*.js",
"require": "./lib/*.js"
},
".": "./lib/index.js",
"./convert": "./convert.js",
"./lib/*": "./lib/*",
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"esm",
"lib",
"src",
"convert.d.ts",
Expand All @@ -56,10 +41,9 @@
},
"scripts": {
"cleanup": "rimraf esm lib convert.d.ts convert.js",
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
"build": "yarn build:esnext && yarn build:convert",
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
"build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
"typedoc": "typedoc --json ../../../docs/types/piral-elm.json src --exclude \"src/**/*.test.*\"",
"test": "echo \"Error: run tests from root\" && exit 1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/converters/piral-ember/convert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createConverter } from './esm/converter';
import { createConverter } from './lib/converter';

export interface HtmlComponent<TProps> {
component: {
Expand Down
28 changes: 6 additions & 22 deletions src/converters/piral-ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,17 @@
"author": "smapiot",
"homepage": "https://piral.io",
"license": "MIT",
"module": "esm/index.js",
"module": "lib/index.js",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./lib/index.js"
},
"./convert": {
"import": "./convert.js"
},
"./esm/*": {
"import": "./esm/*"
},
"./lib/*": {
"require": "./lib/*"
},
"./_/*": {
"import": "./esm/*.js",
"require": "./lib/*.js"
},
".": "./lib/index.js",
"./convert": "./convert.js",
"./lib/*": "./lib/*",
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"esm",
"lib",
"src",
"convert.d.ts",
Expand All @@ -56,10 +41,9 @@
},
"scripts": {
"cleanup": "rimraf esm lib convert.d.ts convert.js",
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
"build": "yarn build:esnext && yarn build:convert",
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
"build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
"typedoc": "typedoc --json ../../../docs/types/piral-ember.json src --exclude \"src/**/*.test.*\"",
"test": "echo \"Error: run tests from root\" && exit 1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/converters/piral-hyperapp/convert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createConverter } from './esm/converter';
import { createConverter } from './lib/converter';

export interface HtmlComponent<TProps> {
component: {
Expand Down
28 changes: 6 additions & 22 deletions src/converters/piral-hyperapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,17 @@
"author": "smapiot",
"homepage": "https://piral.io",
"license": "MIT",
"module": "esm/index.js",
"module": "lib/index.js",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./lib/index.js"
},
"./convert": {
"import": "./convert.js"
},
"./esm/*": {
"import": "./esm/*"
},
"./lib/*": {
"require": "./lib/*"
},
"./_/*": {
"import": "./esm/*.js",
"require": "./lib/*.js"
},
".": "./lib/index.js",
"./convert": "./convert.js",
"./lib/*": "./lib/*",
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"esm",
"lib",
"src",
"convert.d.ts",
Expand All @@ -56,10 +41,9 @@
},
"scripts": {
"cleanup": "rimraf esm lib convert.d.ts convert.js",
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
"build": "yarn build:esnext && yarn build:convert",
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
"build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
"typedoc": "typedoc --json ../../../docs/types/piral-hyperapp.json src --exclude \"src/**/*.test.*\"",
"test": "echo \"Error: run tests from root\" && exit 1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/converters/piral-inferno/convert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createConverter } from './esm/converter';
import { createConverter } from './lib/converter';

export interface HtmlComponent<TProps> {
component: {
Expand Down
Loading

0 comments on commit bbb6e4f

Please sign in to comment.