|
11 | 11 | "url": "https://github.com/observablehq/framework.git"
|
12 | 12 | },
|
13 | 13 | "files": [
|
14 |
| - "build/**/*.js", |
15 |
| - "build/**/*.css", |
| 14 | + "dist/**/*.js", |
| 15 | + "dist/**/*.css", |
16 | 16 | "templates"
|
17 | 17 | ],
|
18 | 18 | "bin": {
|
19 |
| - "observable": "build/bin/observable.js" |
| 19 | + "observable": "dist/bin/observable.js" |
20 | 20 | },
|
21 | 21 | "scripts": {
|
22 | 22 | "dev": "rimraf --glob docs/themes.md docs/theme/*.md && (tsx watch docs/theme/generate-themes.ts & tsx watch --no-warnings=ExperimentalWarning ./src/bin/observable.ts preview --no-open)",
|
23 | 23 | "docs:themes": "rimraf --glob docs/themes.md docs/theme/*.md && tsx docs/theme/generate-themes.ts",
|
24 |
| - "docs:build": "yarn docs:themes && rimraf dist && tsx --no-warnings=ExperimentalWarning ./src/bin/observable.ts build", |
| 24 | + "docs:build": "yarn docs:themes && rimraf docs/.observablehq/dist && tsx --no-warnings=ExperimentalWarning ./src/bin/observable.ts build", |
25 | 25 | "docs:deploy": "yarn docs:themes && tsx --no-warnings=ExperimentalWarning ./src/bin/observable.ts deploy",
|
26 |
| - "build": "rimraf build && node build.js --outdir=build --outbase=src \"src/**/*.{ts,js,css}\" --ignore \"**/*.d.ts\"", |
| 26 | + "build": "rimraf dist && node build.js --outdir=dist --outbase=src \"src/**/*.{ts,js,css}\" --ignore \"**/*.d.ts\"", |
27 | 27 | "test": "concurrently npm:test:mocha npm:test:tsc npm:test:lint npm:test:prettier",
|
28 | 28 | "test:coverage": "c8 --check-coverage --lines 80 --per-file yarn test:mocha",
|
29 |
| - "test:build": "rimraf build.test && node build.js --sourcemap --outdir=build.test \"{src,test}/**/*.{ts,js,css}\" --ignore \"test/input/**\" --ignore \"test/output/**\" --ignore \"test/preview/dashboard/**\" --ignore \"**/*.d.ts\" && cp -r templates build.test", |
30 |
| - "test:mocha": "yarn test:build && rimraf --glob test/.observablehq/cache test/input/build/*/.observablehq/cache && cross-env OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles mocha -p \"build.test/test/**/*-test.js\"", |
31 |
| - "test:mocha:serial": "yarn test:build && rimraf --glob test/.observablehq/cache test/input/build/*/.observablehq/cache && cross-env OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles mocha \"build.test/test/**/*-test.js\"", |
| 29 | + "test:build": "rimraf test/build && node build.js --sourcemap --outdir=test/build \"{src,test}/**/*.{ts,js,css}\" --ignore \"test/input/**\" --ignore \"test/output/**\" --ignore \"test/preview/dashboard/**\" --ignore \"**/*.d.ts\" && cp -r templates test/build", |
| 30 | + "test:mocha": "yarn test:build && rimraf --glob test/.observablehq/cache test/input/build/*/.observablehq/cache && cross-env OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles mocha -p \"test/build/test/**/*-test.js\"", |
| 31 | + "test:mocha:serial": "yarn test:build && rimraf --glob test/.observablehq/cache test/input/build/*/.observablehq/cache && cross-env OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles mocha \"test/build/test/**/*-test.js\"", |
32 | 32 | "test:lint": "eslint src test --max-warnings=0",
|
33 | 33 | "test:prettier": "prettier --check src test",
|
34 | 34 | "test:tsc": "tsc --noEmit",
|
|
38 | 38 | "c8": {
|
39 | 39 | "all": true,
|
40 | 40 | "include": [
|
41 |
| - "build.test/src/**/*.js" |
| 41 | + "test/build/src/**/*.js" |
42 | 42 | ],
|
43 | 43 | "exclude": [
|
44 |
| - "build.test/src/bin/", |
45 |
| - "build.test/src/client/", |
46 |
| - "build.test/src/convert.js", |
47 |
| - "build.test/src/observableApiConfig.js", |
48 |
| - "build.test/src/preview.js" |
| 44 | + "test/build/src/bin/", |
| 45 | + "test/build/src/client/", |
| 46 | + "test/build/src/convert.js", |
| 47 | + "test/build/src/observableApiConfig.js", |
| 48 | + "test/build/src/preview.js" |
49 | 49 | ],
|
50 | 50 | "reporter": [
|
51 | 51 | "text",
|
|
0 commit comments