Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 988336d

Browse files
fix(templates): add main entry point (#447)
1 parent 17f8cc9 commit 988336d

File tree

10 files changed

+18
-0
lines changed

10 files changed

+18
-0
lines changed

e2e/__snapshots__/templates.test.js.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,7 @@ exports[`Templates Autocomplete.js File content: package.json 1`] = `
10941094
\\"name\\": \\"autocomplete.js-app\\",
10951095
\\"version\\": \\"1.0.0\\",
10961096
\\"private\\": true,
1097+
\\"main\\": \\"src/app.js\\",
10971098
\\"scripts\\": {
10981099
\\"start\\": \\"parcel index.html --port 3000\\",
10991100
\\"build\\": \\"parcel build index.html\\",
@@ -2813,6 +2814,7 @@ exports[`Templates InstantSearch.js 2 File content: package.json 1`] = `
28132814
\\"name\\": \\"instantsearch.js-app\\",
28142815
\\"version\\": \\"1.0.0\\",
28152816
\\"private\\": true,
2817+
\\"main\\": \\"src/app.js\\",
28162818
\\"scripts\\": {
28172819
\\"start\\": \\"parcel index.html --port 3000\\",
28182820
\\"build\\": \\"parcel build index.html\\",
@@ -3146,6 +3148,7 @@ exports[`Templates InstantSearch.js File content: package.json 1`] = `
31463148
\\"name\\": \\"instantsearch.js-app\\",
31473149
\\"version\\": \\"1.0.0\\",
31483150
\\"private\\": true,
3151+
\\"main\\": \\"src/app.js\\",
31493152
\\"scripts\\": {
31503153
\\"start\\": \\"parcel index.html --port 3000\\",
31513154
\\"build\\": \\"parcel build index.html\\",
@@ -3445,6 +3448,7 @@ exports[`Templates JavaScript Client File content: package.json 1`] = `
34453448
\\"name\\": \\"javascript-client-app\\",
34463449
\\"version\\": \\"1.0.0\\",
34473450
\\"private\\": true,
3451+
\\"main\\": \\"src/app.js\\",
34483452
\\"scripts\\": {
34493453
\\"start\\": \\"parcel index.html --port 3000\\",
34503454
\\"build\\": \\"parcel build index.html\\",
@@ -3753,6 +3757,7 @@ exports[`Templates JavaScript Helper 2 File content: package.json 1`] = `
37533757
\\"name\\": \\"javascript-helper-app\\",
37543758
\\"version\\": \\"1.0.0\\",
37553759
\\"private\\": true,
3760+
\\"main\\": \\"src/app.js\\",
37563761
\\"scripts\\": {
37573762
\\"start\\": \\"parcel index.html --port 3000\\",
37583763
\\"build\\": \\"parcel build index.html\\",
@@ -4059,6 +4064,7 @@ exports[`Templates JavaScript Helper File content: package.json 1`] = `
40594064
\\"name\\": \\"javascript-helper-app\\",
40604065
\\"version\\": \\"1.0.0\\",
40614066
\\"private\\": true,
4067+
\\"main\\": \\"src/app.js\\",
40624068
\\"scripts\\": {
40634069
\\"start\\": \\"parcel index.html --port 3000\\",
40644070
\\"build\\": \\"parcel build index.html\\",
@@ -4295,6 +4301,7 @@ exports[`Templates React InstantSearch File content: package.json 1`] = `
42954301
\\"name\\": \\"react-instantsearch-app\\",
42964302
\\"version\\": \\"1.0.0\\",
42974303
\\"private\\": true,
4304+
\\"main\\": \\"src/App.js\\",
42984305
\\"scripts\\": {
42994306
\\"start\\": \\"react-scripts start\\",
43004307
\\"build\\": \\"react-scripts build\\",
@@ -4949,6 +4956,7 @@ exports[`Templates Vue InstantSearch 1 File content: package.json 1`] = `
49494956
\\"name\\": \\"vue-instantsearch-app\\",
49504957
\\"version\\": \\"1.0.0\\",
49514958
\\"private\\": true,
4959+
\\"main\\": \\"src/App.vue\\",
49524960
\\"scripts\\": {
49534961
\\"start\\": \\"vue-cli-service serve --port 3000\\",
49544962
\\"build\\": \\"vue-cli-service build\\",
@@ -5271,6 +5279,7 @@ exports[`Templates Vue InstantSearch File content: package.json 1`] = `
52715279
\\"name\\": \\"vue-instantsearch-app\\",
52725280
\\"version\\": \\"1.0.0\\",
52735281
\\"private\\": true,
5282+
\\"main\\": \\"src/App.vue\\",
52745283
\\"scripts\\": {
52755284
\\"start\\": \\"vue-cli-service serve --port 3000\\",
52765285
\\"build\\": \\"vue-cli-service build\\",

src/templates/Autocomplete.js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/app.js",
56
"scripts": {
67
"start": "parcel index.html --port 3000",
78
"build": "parcel build index.html",

src/templates/InstantSearch.js 2/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/app.js",
56
"scripts": {
67
"start": "parcel index.html --port 3000",
78
"build": "parcel build index.html",

src/templates/InstantSearch.js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/app.js",
56
"scripts": {
67
"start": "parcel index.html --port 3000",
78
"build": "parcel build index.html",

src/templates/JavaScript Client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/app.js",
56
"scripts": {
67
"start": "parcel index.html --port 3000",
78
"build": "parcel build index.html",

src/templates/JavaScript Helper 2/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/app.js",
56
"scripts": {
67
"start": "parcel index.html --port 3000",
78
"build": "parcel build index.html",

src/templates/JavaScript Helper/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/app.js",
56
"scripts": {
67
"start": "parcel index.html --port 3000",
78
"build": "parcel build index.html",

src/templates/React InstantSearch/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/App.js",
56
"scripts": {
67
"start": "react-scripts start",
78
"build": "react-scripts build",

src/templates/Vue InstantSearch 1/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/App.vue",
56
"scripts": {
67
"start": "vue-cli-service serve --port 3000",
78
"build": "vue-cli-service build",

src/templates/Vue InstantSearch/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5+
"main": "src/App.vue",
56
"scripts": {
67
"start": "vue-cli-service serve --port 3000",
78
"build": "vue-cli-service build",

0 commit comments

Comments
 (0)