Skip to content

Commit e20dc6c

Browse files
committed
enablig CI standalone testing
1 parent 7fc3f84 commit e20dc6c

File tree

3 files changed

+26
-30
lines changed

3 files changed

+26
-30
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ jobs:
2323
- name: lint
2424
run: npm run lint
2525

26-
# test_bundle:
27-
# name: Test production
28-
# runs-on: ubuntu-latest
29-
# steps:
30-
# - uses: actions/checkout@v3
31-
# - uses: actions/setup-node@v3
32-
# with:
33-
# node-version: 16
34-
# cache: 'npm'
35-
# - name: Install
36-
# run: npm install
37-
# - name: Build
38-
# run: npm run build
39-
# - name: Build test app
40-
# run: npm run build:test
41-
# - name: Run tests
42-
# run: npm run test:standalone
26+
test_bundle:
27+
name: Test production
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v3
31+
- uses: actions/setup-node@v3
32+
with:
33+
node-version: 16
34+
cache: 'npm'
35+
- name: Install
36+
run: npm install
37+
- name: Build
38+
run: npm run build
39+
- name: Build test app
40+
run: npm run build:test
41+
- name: Run tests
42+
run: npm run test:standalone
4343

4444
test_prettier_v2:
4545
name: Prettier V2
@@ -56,10 +56,10 @@ jobs:
5656
run: npm run build
5757
- name: Downgrade Prettier to V2
5858
run: npm install [email protected]
59-
# - name: Build test app
60-
# run: npm run build:test
61-
# - name: Run standalone tests
62-
# run: npm run test:standalone
59+
- name: Build test app
60+
run: npm run build:test
61+
- name: Run standalone tests
62+
run: npm run test:standalone
6363

6464
test_linux:
6565
name: Test on Linux with Node ${{ matrix.node }}

package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44
"description": "A Prettier Plugin for automatically formatting your Solidity code.",
55
"type": "module",
66
"main": "./dist/index.js",
7-
"browser": "./dist/standalone.cjs",
8-
"unpkg": "./dist/standalone.cjs",
7+
"browser": "./dist/standalone.js",
8+
"unpkg": "./dist/",
99
"exports": {
10-
".": {
11-
"import": "./dist/index.js",
12-
"require": "./dist/standalone.cjs"
13-
},
14-
"./standalone": {
15-
"default": "./dist/standalone.cjs"
16-
}
10+
".": "./dist/index.js",
11+
"./standalone": "./dist/standalone.js"
1712
},
1813
"scripts": {
1914
"build": "webpack --env production",

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default (webpackEnv) => {
4545
optimization: { minimize: isEnvProduction },
4646
target: ['browserslist'],
4747
output: {
48+
chunkFormat: false,
4849
path: path.resolve(__dirname, 'dist'),
4950
filename: 'standalone.js',
5051
clean: true,

0 commit comments

Comments
 (0)