Skip to content

Commit

Permalink
merge master -> gh-349
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 10, 2021
2 parents f156c78 + 1ec8fb9 commit c547829
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-tools-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

app.js -> app.cjs
2 changes: 2 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"calm-pens-prove",
"chatty-mangos-raise",
"chilled-starfishes-jog",
"clever-tools-enjoy",
"cyan-roses-act",
"cyan-seals-trade",
"dirty-ligers-protect",
Expand Down Expand Up @@ -61,6 +62,7 @@
"thick-meals-attend",
"thirty-windows-cheer",
"three-dingos-scream",
"tidy-boats-listen",
"tidy-books-reply",
"tiny-starfishes-exist",
"tricky-avocados-smile",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/tidy-boats-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/snowpack-config': patch
---

Make `@snowpack/plugin-svelte` use `svelte.config.cjs`
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ pnpm build

You should now be able to run the [examples](examples) by navigating to one of the directories and doing `pnpm dev`.

### Version bumps

You can bump the package versions by running `pnpx changeset` followed by `pnpx changeset version`.

## Testing

Run `pnpm test` to run the tests from all subpackages. Browser tests live in subpackages of `test/` such as `test/apps/basics/`. To run a single test, open up the file and change `test` to `test.only` for the relevant test.
2 changes: 1 addition & 1 deletion packages/adapter-netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = async function adapter(builder) {

if (!netlify_config.build || !netlify_config.build.publish || !netlify_config.build.functions) {
throw new Error(
'You must specify build.publish and build.functions in netlify.toml. Consult https://github.com/sveltejs/adapter-netlify#configuration'
'You must specify build.publish and build.functions in netlify.toml. Consult https://github.com/sveltejs/kit/tree/master/packages/adapter-netlify#configuration'
);
}

Expand Down
6 changes: 6 additions & 0 deletions packages/kit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sveltejs/kit

## 1.0.0-next.31

### Patch Changes

- b6c2434: app.js -> app.cjs

## 1.0.0-next.30

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/kit",
"version": "1.0.0-next.30",
"version": "1.0.0-next.31",
"type": "module",
"dependencies": {
"cheap-watch": "^1.0.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/kit/src/api/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ export async function build(config) {
dir: `${OPTIMIZED}/server`,
format: 'esm',
exports: 'named',
entryFileNames: '[name].js',
chunkFileNames: 'chunks/[name].js',
assetFileNames: 'assets/[name].js',
entryFileNames: '[name].cjs',
chunkFileNames: 'chunks/[name].cjs',
assetFileNames: 'assets/[name].cjs',
sourcemap: true
});

Expand Down
6 changes: 6 additions & 0 deletions packages/snowpack-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sveltejs/snowpack-config

## 1.0.0-next.3

### Patch Changes

- 7175368: Make `@snowpack/plugin-svelte` use `svelte.config.cjs`

## 1.0.0-next.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/snowpack-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/snowpack-config",
"version": "1.0.0-next.2",
"version": "1.0.0-next.3",
"scripts": {
"lint": "eslint --ignore-pattern node_modules/ \"**/*.{ts,js,cjs,svelte}\" && npm run check-format",
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore",
Expand Down
3 changes: 2 additions & 1 deletion packages/snowpack-config/snowpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = {
{
compilerOptions: {
hydratable: true
}
},
configFilePath: 'svelte.config.cjs'
}
]
],
Expand Down

0 comments on commit c547829

Please sign in to comment.