Skip to content

Commit

Permalink
fix(inject): fix inject script public path (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentlp committed Feb 15, 2022
1 parent bc7521e commit 6736b59
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dist/
bin/
*.log
.parcel-cache
parcel-bundle-reports
.cache
coverage/
storybook-static/
Expand Down
6 changes: 4 additions & 2 deletions packages/inject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
"version": "0.1.0",
"license": "AGPL-3.0",
"scripts": {
"build": "yarn && yarn run -T parcel build src/index.html src/inject.js",
"build": "yarn && yarn run -T parcel build src/index.html src/inject.js --public-url ./",
"watch": "yarn && yarn run -T parcel watch src/index.html src/inject.js",
"dev": "yarn && yarn run -T parcel src/index.html src/inject.js",
"prepublish": "yarn run -T rimraf dist && yarn --immutable && yarn run -T parcel build src/index.html src/inject.js"
"prepublish": "yarn run -T rimraf dist && yarn --immutable && yarn run -T parcel build src/index.html src/inject.js",
"analyze": "yarn run -T parcel build src/index.html --reporter @parcel/reporter-bundle-analyzer"
},
"files": [
"dist"
],
"devDependencies": {
"@parcel/config-default": "^2.2.1",
"@parcel/reporter-bundle-analyzer": "2.2.1",
"@parcel/transformer-typescript-tsc": "^2.2.1",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11"
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2395,6 +2395,7 @@ __metadata:
dependencies:
"@botpress/webchat": 0.1.0
"@parcel/config-default": ^2.2.1
"@parcel/reporter-bundle-analyzer": 2.2.1
"@parcel/transformer-typescript-tsc": ^2.2.1
"@types/react": ^17.0.38
"@types/react-dom": ^17.0.11
Expand Down Expand Up @@ -3717,6 +3718,17 @@ __metadata:
languageName: node
linkType: hard

"@parcel/reporter-bundle-analyzer@npm:2.2.1":
version: 2.2.1
resolution: "@parcel/reporter-bundle-analyzer@npm:2.2.1"
dependencies:
"@parcel/plugin": ^2.2.1
"@parcel/utils": ^2.2.1
nullthrows: ^1.1.1
checksum: 577d117e198e9d353bbd416b4f8005209db23933a43a74888d63858b1724d732534ea826434747310929e02ecfafd9cc7f2d0f6cc6aabee3af576622a90c6d86
languageName: node
linkType: hard

"@parcel/reporter-cli@npm:^2.2.1":
version: 2.2.1
resolution: "@parcel/reporter-cli@npm:2.2.1"
Expand Down

0 comments on commit 6736b59

Please sign in to comment.