Skip to content

Commit

Permalink
Specifically adding type: module for all packages and changing main -…
Browse files Browse the repository at this point in the history
…> module
  • Loading branch information
weaverryan committed Oct 22, 2023
1 parent 77b916a commit 592be5e
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/Autocomplete/assets/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@symfony/ux-autocomplete",
"description": "JavaScript-powered autocompletion functionality for forms.",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"version": "1.0.0",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/Chartjs/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Chart.js integration for Symfony",
"license": "MIT",
"version": "1.1.0",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"symfony": {
"controllers": {
Expand Down
3 changes: 2 additions & 1 deletion src/Cropperjs/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Cropper.js integration for Symfony",
"license": "MIT",
"version": "1.1.0",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"config": {
"css_source": "src/style.css"
Expand Down
3 changes: 2 additions & 1 deletion src/Dropzone/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "File input dropzones for Symfony Forms",
"license": "MIT",
"version": "1.1.0",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"config": {
"css_source": "src/style.css"
Expand Down
3 changes: 2 additions & 1 deletion src/LazyImage/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Lazy image loader and utilities for Symfony",
"license": "MIT",
"version": "1.1.0",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"symfony": {
"controllers": {
Expand Down
3 changes: 2 additions & 1 deletion src/LiveComponent/assets/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@symfony/ux-live-component",
"description": "Live Component: bring server-side re-rendering & model binding to any element.",
"main": "dist/live_controller.js",
"module": "dist/live_controller.js",
"type": "module",
"types": "dist/live_controller.d.ts",
"version": "1.0.0",
"config": {
Expand Down
3 changes: 2 additions & 1 deletion src/Notify/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Native notification integration for Symfony using Mercure",
"license": "MIT",
"version": "1.0.0",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"symfony": {
"controllers": {
Expand Down
3 changes: 2 additions & 1 deletion src/React/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Integration of React in Symfony",
"license": "MIT",
"version": "1.0.0",
"main": "dist/register_controller.js",
"module": "dist/register_controller.js",
"type": "module",
"types": "dist/register_controller.d.ts",
"symfony": {
"controllers": {
Expand Down
2 changes: 2 additions & 0 deletions src/StimulusBundle/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"description": "Integration of @hotwired/stimulus into Symfony",
"version": "1.0.0",
"license": "MIT",
"module": "dist/loader.js",
"type": "module",
"symfony": {
"needsPackageAsADependency": false,
"importmap": {
Expand Down
3 changes: 1 addition & 2 deletions src/Svelte/assets/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "@symfony/ux-svelte",
"description": "Integration of Svelte in Symfony",
"main": "dist/register_controller.js",
"module": "dist/register_controller.js",
"type": "module",
"version": "1.0.0",
"license": "MIT",
"type": "module",
"symfony": {
"controllers": {
"svelte": {
Expand Down
3 changes: 2 additions & 1 deletion src/Swup/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Swup integration for Symfony",
"license": "MIT",
"version": "1.1.0",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"symfony": {
"controllers": {
Expand Down
3 changes: 2 additions & 1 deletion src/TogglePassword/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Toggle visibility of password inputs for Symfony Forms",
"license": "MIT",
"version": "1.0.0",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"config": {
"css_source": "src/style.css"
Expand Down
3 changes: 2 additions & 1 deletion src/Translator/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Symfony Translator for JavaScript",
"license": "MIT",
"version": "1.0.0",
"main": "dist/translator_controller.js",
"module": "dist/translator_controller.js",
"type": "module",
"types": "dist/translator_controller.d.ts",
"symfony": {
"importmap": {
Expand Down
3 changes: 2 additions & 1 deletion src/Turbo/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"license": "MIT",
"private": true,
"version": "0.1.0",
"main": "dist/turbo_controller.js",
"module": "dist/turbo_controller.js",
"type": "module",
"types": "dist/turbo_controller.d.ts",
"symfony": {
"controllers": {
Expand Down
3 changes: 2 additions & 1 deletion src/Typed/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Typed integration for Symfony",
"license": "MIT",
"version": "1.0.0",
"main": "dist/controller.js",
"module": "dist/controller.js",
"type": "module",
"types": "dist/controller.d.ts",
"symfony": {
"controllers": {
Expand Down
3 changes: 2 additions & 1 deletion src/Vue/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Integration of Vue.js in Symfony",
"license": "MIT",
"version": "1.0.0",
"main": "dist/register_controller.js",
"module": "dist/register_controller.js",
"type": "module",
"types": "dist/register_controller.d.ts",
"symfony": {
"controllers": {
Expand Down

0 comments on commit 592be5e

Please sign in to comment.