Skip to content

Commit c319f9f

Browse files
committed
switch build/ and dist/ directory
dist/ is the universal convention for actually distributing the library. build/ for temporary build artifacts for tests.
1 parent 030e8c0 commit c319f9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+122
-122
lines changed

packages/amino/karma.conf.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function (config) {
1515
frameworks: ["jasmine"],
1616

1717
// list of files / patterns to load in the browser
18-
files: ["dist/web/tests.js"],
18+
files: ["build/web/tests.js"],
1919

2020
client: {
2121
jasmine: {

packages/amino/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
],
88
"license": "Apache-2.0",
99
"exports": {
10-
"types": "./build/index.d.ts",
11-
"default": "./build/index.js"
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/index.js"
1212
},
1313
"files": [
14-
"build/",
14+
"dist/",
1515
"*.md",
1616
"!*.spec.*",
1717
"!**/testdata/"
@@ -33,7 +33,7 @@
3333
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless karma.conf.cjs",
3434
"test": "yarn build-or-skip && yarn test-node",
3535
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
36-
"build": "rm -rf ./build && tsc",
36+
"build": "rm -rf ./dist/ && tsc",
3737
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
3838
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.cjs"
3939
},

packages/amino/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"outDir": "build",
5+
"outDir": "dist",
66
"rootDir": "src"
77
},
88
"include": [

packages/amino/webpack.web.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ const path = require("path");
33
const webpack = require("webpack");
44

55
const target = "web";
6-
const distdir = path.join(__dirname, "dist", "web");
6+
const distdir = path.join(__dirname, "build", "web");
77

88
module.exports = [
99
{
1010
// bundle used for Karma tests
1111
target: target,
12-
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
12+
entry: globSync("./dist/**/*.spec.js", { dotRelative: true }).sort(),
1313
output: {
1414
asyncChunks: false,
1515
path: distdir,

packages/cosmwasm-stargate/karma.conf.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function (config) {
1515
frameworks: ["jasmine"],
1616

1717
// list of files / patterns to load in the browser
18-
files: ["dist/web/tests.js"],
18+
files: ["build/web/tests.js"],
1919

2020
client: {
2121
jasmine: {

packages/cosmwasm-stargate/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
],
88
"license": "Apache-2.0",
99
"exports": {
10-
"types": "./build/index.d.ts",
11-
"default": "./build/index.js"
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/index.js"
1212
},
1313
"files": [
14-
"build/",
14+
"dist/",
1515
"*.md",
1616
"!*.spec.*",
1717
"!**/testdata/"
@@ -28,7 +28,7 @@
2828
"docs": "typedoc",
2929
"format": "prettier --write --log-level warn \"./src/**/*.ts\"",
3030
"format-text": "prettier --write \"./*.md\"",
31-
"build": "rm -rf ./build && tsc",
31+
"build": "rm -rf ./dist/ && tsc",
3232
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
3333
"test-node": "yarn node jasmine-testrunner.cjs",
3434
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox karma.conf.cjs",

packages/cosmwasm-stargate/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"outDir": "build",
5+
"outDir": "dist",
66
"experimentalDecorators": true,
77
"rootDir": "src"
88
},

packages/cosmwasm-stargate/webpack.web.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ const path = require("path");
33
const webpack = require("webpack");
44

55
const target = "web";
6-
const distdir = path.join(__dirname, "dist", "web");
6+
const distdir = path.join(__dirname, "build", "web");
77

88
module.exports = [
99
{
1010
// bundle used for Karma tests
1111
target: target,
12-
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
12+
entry: globSync("./dist/**/*.spec.js", { dotRelative: true }).sort(),
1313
output: {
1414
asyncChunks: false,
1515
path: distdir,

packages/crypto/karma.conf.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function (config) {
1515
frameworks: ["jasmine"],
1616

1717
// list of files / patterns to load in the browser
18-
files: ["dist/web/tests.js"],
18+
files: ["build/web/tests.js"],
1919

2020
client: {
2121
jasmine: {

packages/crypto/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
],
99
"license": "Apache-2.0",
1010
"exports": {
11-
"types": "./build/index.d.ts",
12-
"default": "./build/index.js"
11+
"types": "./dist/index.d.ts",
12+
"default": "./dist/index.js"
1313
},
1414
"files": [
15-
"build/",
15+
"dist/",
1616
"*.md",
1717
"!*.spec.*",
1818
"!**/testdata/"
@@ -34,7 +34,7 @@
3434
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless karma.conf.cjs",
3535
"test": "yarn build-or-skip && yarn test-node",
3636
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
37-
"build": "rm -rf ./build && tsc",
37+
"build": "rm -rf ./dist/ && tsc",
3838
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
3939
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.cjs"
4040
},

0 commit comments

Comments
 (0)