Skip to content

Commit 02d6727

Browse files
committed
test: use dev build for the tests
1 parent c92fc03 commit 02d6727

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
"scripts": {
1616
"clean": "shx rm -rf dist",
1717
"build": "run-s clean lib:js:build",
18+
"build:dev": "run-s clean lib:js:build:dev",
1819
"dev": "run-p lib:watch lib:test:watch",
1920
"serve": "serve dist -p 8080",
20-
"test": "run-s build test:lib test:quickstart",
21+
"test": "run-s build:dev test:lib test:quickstart",
2122
"test:lib": "node ./test/test-runner.mjs",
2223
"test:quickstart": "(cd examples/quickstart && pnpm install && npm run test)",
2324
"lint": "prettier --write **/*.js **/*.ts **/*.json !build/**/* !dist/**/*",

rollup.lib.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ const libBundles = [
7272
input: "transform.ts",
7373
output: {
7474
file: "dist/transform.cjs.js",
75-
format: "cjs"
75+
format: "cjs",
76+
sourcemap: sourcemapOption
7677
},
7778
external: ["assemblyscript", "visitor-as/as"],
7879
plugins
@@ -81,7 +82,8 @@ const libBundles = [
8182
input: "transform.ts",
8283
output: {
8384
file: "dist/transform.amd.js",
84-
format: "amd"
85+
format: "amd",
86+
sourcemap: sourcemapOption
8587
},
8688
external: ["assemblyscript", "visitor-as/as"],
8789
plugins

0 commit comments

Comments
 (0)