Skip to content

Commit

Permalink
Fix global.d.ts rename, Windows build issue, missing adapter-node (#1095
Browse files Browse the repository at this point in the history
)
  • Loading branch information
GrygrFlzr authored Apr 18, 2021
1 parent d3abd97 commit a84cb88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-planets-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Fix global.d.ts rename, Windows build issue, missing adapter-node
7 changes: 2 additions & 5 deletions packages/create-svelte/scripts/build-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ async function generate_templates(shared) {
// also needed for JS projects if people turn on "checkJs" in their jsonfig
if (file.name.endsWith('.d.ts')) {
if (file.name.endsWith('global.d.ts')) js.push(file);
continue;
}

if (file.name.endsWith('.ts')) {
} else if (file.name.endsWith('.ts')) {
const transformed = transform(file.contents, {
transforms: ['typescript']
});
Expand Down Expand Up @@ -161,7 +158,7 @@ async function generate_shared() {
let name = file;

if (file.startsWith('+') || file.startsWith('-')) {
const [conditions, ...rest] = file.split('/');
const [conditions, ...rest] = file.split(path.sep);

const pattern = /([+-])([a-z]+)/g;
let match;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start": "svelte-kit start"
},
"devDependencies": {
"@sveltejs/adapter-node": "workspace:*",
"@sveltejs/kit": "workspace:*",
"svelte": "^3.29.0",
"vite": "^2.1.0"
Expand Down

1 comment on commit a84cb88

@vercel
Copy link

@vercel vercel bot commented on a84cb88 Apr 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.